How to set default page transition when viewer loads

PDF.js Express Version - 7.3.1

Detailed description of issue
Looking to set the default page transition as “Page by page” instead of continuous. How to change it, unable to find relevant methods in API. Please help as early as possible.

Expected behaviour

Does your issue happen with every document, or just one?
Yes

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hey there!

You can use the setLayoutMode API for this:

instance.setLayoutMode(instance.LayoutMode.Single);

Thanks,
Logan

Thanks for your response Logan. But your suggestion is to set the “Layout Mode”. I want to set the “Transistion”. Please help me. Thanks

Hi,

It’s a poorly named API, but that does actually set the transition. Transitions and page layouts are very closely related.

Thanks!