[Web_HTML_JavaScript]Switch bookmark

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Justin.Zhou
User
Posts: 2
Joined: Thu Jan 29, 2015 9:18 am

[Web_HTML_JavaScript]Switch bookmark

Post by Justin.Zhou »

Open the PDF file does not modify the PDF bookmark property in Toggle Bookmark, the current view of how to fit the width of
You do not have the required permissions to view the files attached to this post.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: [Web_HTML_JavaScript]Switch bookmark

Post by Stefan - PDF-XChange »

Hello Justin.Zhou,

Welcome to our forums.
I am afraid that the translation tool you used is not quite good - and the question is a bit unclear.
Are you having problems with the visibility of the bookmarks pane or with FitWidth, or maybe with both?

Regards,
Stefan
Justin.Zhou
User
Posts: 2
Joined: Thu Jan 29, 2015 9:18 am

Re: [Web_HTML_JavaScript]Switch bookmark

Post by Justin.Zhou »

Hello Stefan,

If we open the PDF file under HTML without modyfying it's characteristics ,How to set the fit width on the current view when we change the bookmarks ?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: [Web_HTML_JavaScript]Switch bookmark

Post by Stefan - PDF-XChange »

Hello Justin.Zhou

You can try using this before opening a file:

Code: Select all

PDFView.SetProperty('PageDisplay.DefaultZoom', 'FitWidth', 0);
or this after you have already opened the file:

Code: Select all

PDFView.SetDocumentProperty(docID, "Pages.Zoom", "FitWidth", 0);
Regards,
Stefan