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.

1
2
MyJPDFNotesBean.setModified(false);
MyJPDFNotesBean.loadPDF(my_byte_array);

Found this post useful? Buy me a cup of coffee or subscribe to my RSS feeds and Google Friend Connect

Related Posts with Thumbnails

Leave a Reply

Spam protection by WP Captcha-Free