One new component of the software we're working on provides the ability to look up a list of fields on an arbitrary pdf, and then write to them. I'm well aware that at the moment (as stated on page 390), any pdf that contains an owner password to unlock anything will throw an exception if you try to open it for writing. I'm well aware, also, how easy it is to rebuild from source unofficially and remove all the restrictions, but for obvious reasons, we don't really want to do that.
Can I use iText to extract/parse information from pdf document like text, tables as well as form field values?
Any help is welcome.
I'm trying to create a PDF with some text, and all English text is shown, but all non-English text (Cyrillic, Arabic, Hindic,... languages) isn't shown. Is this a bug?
I want my PDF to have extra usage rights for people opening the document in Adobe Reader, but I can't find how to achieve this using iText.
I am trying to replace images in a pdf with scaled down images (to save space). I am trying to follow the examples in chapters 15 (iterating through images in the doc) and 16 (resizing image). I am testing with a simple one page document generated by pasting a single image into MS Word and converting to pdf using Acrobat. When I try to open the document generated by my program using Acrobat, I get the error message "Insufficient data for an image". I would appreciate any hints on where I am going astray or what avenues of investigation to pursue.
I want to encrypt a Reader enabled PDF without removing the usage rights. As described in the book, I use
PdfStamper in append mode, but I get a
DocumentException with the message "Append mode does not support changing the encryption status." What am I doing wrong?
I have a large collection of PDF files that need to be converted to TIFF.
How can I do this using iText?
I've have a field added on top of a graphic. I've tried the following to cover the graphic:
fields.setFieldProperty(name, "bgcolor", BaseColor.WHITE, null);
and for some reason it has no effect. Can anyone suggest anything?
As stated in a number of places in the book, PDF is not for word processing. That being the case, I'd like clarification on a couple of questions:
1) Even though direct content stream manipulation is not recommended, is there a drawback to grabbing a stream, replacing a word or two, and outputting this to a new file?
2) As an alternative, is it possible with PdfStamper to "stamp" something like a white image on top of existing text to blank it out (not really changing the text, but at least hiding it).