3/12/2024 0 Comments Pdf js loading bar![]() ✔️ Spread - Allows you to change spread to odd or even. ✔️ Scroll □ - Changes the scroll to your choice. ✔️ Change file name - You may set the file name of download to a different one, if user chooses to download. ✔️ Cursor □ - Love the age old hand cursor □ on your pdf? You got it. ✔️ Zoom □ - Several zoom methods, auto, percentage (E.g. ✔️ Navigate ⏩ - Navigate the document using page number, section, or even directly jump to last page if you are expecting a signature from user. ![]() Use relevant features to remove controls from viewer. ![]() ✔️ Show/Hide controls □ - Do not want users to see specific controls (E.g. ✔️ Progress spinner ⏳ - An optional spinner which displays before document renders. ✔️ Smart device friendly zoom □ - A better zooming experience on small devices. ✔️ Side bar □ - Open and show the sidebar with relevant information. ✔️ Custom error ❌ - Hate the defaults pdfjs errors, use this feature to override or append to it. ✔️ Language □ - Set the language of your choice to the viewer controls. ✔️ Auto rotate □ - Rotate the document clockwise or anti-clockwise 90° (+/- 90°) just before displaying. ✔️ Auto download □ - This option allows you to download the pdf file to user device automatically without manually invoking the download. ✔️ Defaults - There are a ton of built in functionality Mozilla's viewer supports such as print, download, bookmark, fullscreen, open file, zoom, search, pan, spread, navigate, attachments etc which is also available as-is in this viewer. ✔️ Print preview □️ - You can set the pdf to open in a new tab or another browser window and provide an immediate print preview, A use case will be a 'Print' button opening pdf in new window with print dialog. ✔️ Events ⚡ - Catch events such as document loaded, page change, before/after print etc.Please make sure to provide viewerId for events to work properly. ✔️ Blob and byte arrays □ - Have pdf as a byte array? Still works. ✔️ Embed pdf □ - Embeds viewer and pdf inside your web page/component. ✔️ Direct access to underlying viewer □□□□- Exposed PDFViewerApplication and PDFViewerApplicationOptions objects opens a whole world of customizable PDFJS and ViewerJS properties and methods, allowing to change them programmatically thus producing a unique viewer experience. Also, you may set all allowable external window options. ✔️ Open pdf in new window □ - Opens pdf viewer in new window. Some of below features are unique to this component, which is unavailable in native viewer or other implementations. Hosted Demo app showing unique use cases: Please make sure to provide viewerId for events to work properly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |