We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

PDF viewer preference

How can I setup a pdf created with syncfusion to always open showing the navigation tab "Bookmarks and Page" ?

3 Replies

CG Carlos Guanes November 7, 2009 06:57 PM UTC

Also I'm trying to setup the viewerpreference to PdfPageLayout.SinglePage but it actually always open as OneColumn, is this a bug? I'm using 7.2.0.20.

Thanks

Carlos


KM Karthik M Syncfusion Team November 10, 2009 08:12 AM UTC

Hi Carlos,

Thank you for using Essential PDF.

We need to set the PageMode property of the ViewerPreferences to
'UseOutline' to make the bookmarks displayed by default.

[Codesnippet]

PdfDocument document = new PdfDocument();
document.ViewerPreferences.PageMode = PdfPageMode.UseOutlines;

This is not an issue with our library, basically the "PdfPageLayout.SinglePage" is the default pagelayout of the pdf document which will display the one page at a time.

Please try this and let us know if you have any questions.

Best Regards,
Karthik


IR Ivan Rendulic replied to Karthik M April 4, 2018 10:11 AM UTC

Hi Carlos,

Thank you for using Essential PDF.

We need to set the PageMode property of the ViewerPreferences to
'UseOutline' to make the bookmarks displayed by default.

[Codesnippet]

PdfDocument document = new PdfDocument();
document.ViewerPreferences.PageMode = PdfPageMode.UseOutlines;

This is not an issue with our library, basically the "PdfPageLayout.SinglePage" is the default pagelayout of the pdf document which will display the one page at a time.

Please try this and let us know if you have any questions.

Best Regards,
Karthik

I agree.

Loader.
Live Chat Icon For mobile
Up arrow icon