Is refreshing of a pdf doc possible without OpenDocument?

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

relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Is refreshing of a pdf doc possible without OpenDocument?

Post by relapse »

Hello! If I manipulate a pdf document, am I really forced to store the changes done via SaveDocument (or with PXCp_WriteDocumentW function of the Tools Library), then close the document with CloseDocument method and then load the altered document with OpenDocument? Is there any other way to do it without closing the old document and a new loading of the altered document? Any art of a refresh method?



Thanks!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Is refreshing of a pdf doc possible without OpenDocument

Post by Stefan - PDF-XChange »

Hello Relapse,

If you save the changes to the document - it should directly be showing you the updated document in the Viewer Control, no manual "refresh" should be needed. Irrespective of whether you save the changes to the same file - or to a new one - the saved version will be directly displayed in the Viewer AX.

Best,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Is refreshing of a pdf doc possible without OpenDocument

Post by relapse »

The problem is the pdf viewer hasn't got any function to alter a crop box (, has it?). There is the javascript function setPageBoxes, but it's not supported by the viewer (according to the documentation). So in order to change the crop box I have to use the function PXCp_PageSetBox from the pdf tools library. But I if change the crop box with the tools library, the viewer doesn't notice that. So after such a change I'm forced to reload the document in the viewer.
Last edited by relapse on Fri Apr 20, 2012 6:02 am, edited 2 times in total.