Does pdf.js support image preview?

using pdf.js Preview in the project pdf, now requires picture preview. Does pdf.js support image preview?

Mar.04,2022

should not be supported. Pdf.js processing type is pdf format, and the picture will report your format error

Invalid PDF structure

Picture Preview, why use this plug-in? Why not render directly, or if you want to render a picture with canvas, use this drawImage

.

Mobile uses this to put the pdfjs-dist
a tag in ios to preview pdf by default. Android downloads
pdfjs-dist to achieve pdf preview, and the principle is also through the combination of pdf.js and canvas

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4ba53-44e3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4ba53-44e3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?