lofujie wrote: > Dear all, > I used the IE browser to open the PDF file which is disallowed save or > save as.
Such a PDF doesn't exist. > Then, the file became the allowed save file. > Is it possible to solve this problem or control the menu / tool bar > hide from browser? You can change the viewer preferences so that the toolbar is hidden. See http://itextdocs.lowagie.com/tutorial/objects/bookmarks/ Use for instance writer.setViewerPreferences(PdfWriter.HideMenubar | PdfWriter.HideToolbar); You may find references to a JavaScript method: app.hideToolbarButton("Save") that hides the Save button in the toolbar (this isn't the same as making it impossible for the End User to save the file), but that method can only be used in the config.js file that is loaded when the Reader is opened, or in a console event. br, Bruno ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
