Hello
We are using iText 2.1.2 jar for our project. Issue we are facing is we are
not able to hide the toolbar in the Adobe Reader 10 version. The code works
well for Adobe 9 and lower version to hide the toolbar and menubar. Right
now in Adobe X, the toolbar is enabled and allows the customer to save the
pdf to local desktop. This should not happen. Can you suggest a way ?
Snapshot of code:
--------------------------------
com.lowagie.text.Document document =null;
reader = new PdfReader(outByte);
if (reader.isEncrypted()) {
reader = new PdfReader(outByte, "test".getBytes());
}
int totalPages = reader.getNumberOfPages();
PdfCopy copy = new PdfCopy(document, new FileOutputStream(fileName));
copy.setViewerPreferences(PdfWriter.HideMenubar);
copy.setViewerPreferences(PdfWriter.HideToolbar);
copy.setEncryption(null, "test".getBytes(),
PdfWriter.ALLOW_MODIFY_CONTENTS,
PdfWriter.ENCRYPTION_AES_128);
document.open();
------------------------------------------
--
Regards
Brijoy
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php