Does PDFJSExpress have pagination or sticky tools?

Which product are you using?
Just the current available free version to download and try out as of 2023Sept01

Detailed description of issue
Im wondering if PDFJSExpress has any support for the following two features: pagination and sticky tools. For pagination, sometimes we have a large collection of images to load from a single endpoint call so we created a feature for our users to only load a few at a time instead of all at once.
For sticky tools, we have several features for our images, like rotating, inversion of the image color, zoom in/out and we give the user the option to toggle a “sticky” button to have these features stay on in between different images. If an image is rotated 90 degrees, sticky tools gets enabled, then the user goes to a new image, the new image would load already rotated 90 degrees.
What capabilities does PDFJSExpress have that could help support these two kinds of features?

Hello bluecolor220,

For pagination, sometimes we have a large collection of images to load from a single endpoint call so we created a feature for our users to only load a few at a time instead of all at once.

Can you elaborate on this point? What would be the expected behaviour? What is the current behaviour?

For sticky tools, we have several features for our images, like rotating, inversion of the image color, zoom in/out and we give the user the option to toggle a “sticky” button to have these features stay on in between different images. If an image is rotated 90 degrees, sticky tools gets enabled, then the user goes to a new image, the new image would load already rotated 90 degrees.

This would be just customizing the tool’s default settings, this would apply them to the newly created annotations. See: Create custom annotation styles | Documentation

Best regards,
Tyler

Sure! So basically, with our current UI, the user can see a collection of images for a individual record. If the amount of images for the record is too large, while scrolling through the images of the record in a thumbnail, there will be an option for the user at the bottom to click a button to load more images. Upon doing so, it will trigger an endpoint call to get more of the images. The user will continue to see this option at the bottom of the most recently loaded collection of images until all the images for the record they’re viewing are loaded.

If I’m understanding the documentation right, this just explains how we can set custom styling to the annotation tool. However, I am asking if there is a way to give some tools (specifically like the rotation button, zoom in, zoom out, and inverse the image color) the option of making them hold their value while switching in-between images until the user decides not to anymore. So if a records image is rotated 90 degrees, sticky tools gets enabled, then the user goes to sort through other records until clicking on a new one, see’s the new records images but it would load rotated 90 degrees. Only after disabling sticky tools would this 90deg rotation no longer apply to new images the user is viewing.

Hello bluecolor220,

Thank you for clarifying, these are not necessarily “tools” but rather buttons that call our APIs.

If you would like to implement this, you may need to add a custom button that implements the functionality: PDF.js Express Viewer Customize Toolbar | Documentation

Best regards,
Tyler