Raffaele
Surely the point of a password is to stop people opening it ( or printing it )
without the password?
I wouldn’t be massively impressed if you took one of my documents I has
disallowed printing and then did just that.
And isn’t that error message nothing to do with iText?
john renfrew
Right Way Up
Office +44 1675 475341
Fax +44 1675 475342
Mobile +44 7767 443992
From: ra...@libero.it [mailto:ra...@libero.it]
Sent: 29 August 2012 10:19
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Use of password protected PDFs
Hello.
I've experiencing some problem using protected PDFs.
I've been asked to make a small java program that shows a list of PDFs, allows
the user to see them in a viewer and to print them with the application of a
watermark on the printed copy.
First of all I looked if it was possible to launch the PDFs in acrobat reader
disabling the printing command, but after some search over the internet it
didn't looked possible, so I developed a small viewer using the PDFrenderer
library.
The printing part, I used iText to process the PDF applying a watermark page by
page, save it in a temporary file and then print the temporary file.
With PDFs I printed the program works fine, both the viewer and the printer
work properly, but using PDFs protected, in both the modules I get the same
error:
com.sun.pdfview.PDFParseException: Unknown command: qq
at com.sun.pdfview.PDFParser.iterate(PDFParser.java:800)
at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
at java.lang.Thread.run(Thread.java:662)
when I call the method getPage(int pageNum) of the class PDFFile.
I found on the internet that the problem seem quite common, but couldn't
understand how to get rid of it. Someone can help?
Thanx in advance
Raffaele Mottalini
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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