Remove Save Dialog Popup If PDF Is Modified in JPDFNotes

Once a PDF file is loaded in your JPDFNotesBean component, anything you do to the any of the pages will activate the save dialog window in case your code will close the PDF file. Say you want to save the modified actions of the PDF file in the database and you want the PDF pages’ display to stay as is and the display changes will take effect through calling your code, you can nullify the save dialog popup from appearing by calling the setModified() method before loading the file.

That way, if an existing file is currently loaded, the setModified() method will treat the currently existing file as having never been modified which can then load the next PDF file without ever prompting the save dialog popup to appear.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *