Paulo, many thanks

On 9 Feb 2005, at 17:08, Paulo Soares wrote:

That's quite easy:

PdfReader reader = new PdfReader("f1023.pdf");
PdfDictionary catalog = reader.getCatalog();
PdfDictionary viewerPreferences =
(PdfDictionary)PdfReader.getPdfObject(catalog.get(PdfName.VIEWERPREFERE NCES)
);
if (viewerPreferences != null) {
viewerPreferences.remove(new PdfName("Rights"));
}



It looks a little more controlled than my brute force attempt!


John Wilson The Wilson Partnership http://www.wilson.co.uk



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to