Will itext(sharp) ever support legally writing to protected pdfs?

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 extract/parse information from pdf

Can I use iText to extract/parse information from pdf document like text, tables as well as form field values?

I've tried an example and it doesn't work

Any help is welcome.

Missing characters

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?

Can I create a Reader-enabled PDF using iText?

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.

Image replacement results in "Insufficient data for an image" message

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.

Encrypting a Reader-enabled PDF

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?

How do I convert PDF to TIFF with iText?

I have a large collection of PDF files that need to be converted to TIFF.
How can I do this using iText?

Changing a field property doesn't work

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?

Text Editing Options

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).

Syndicate content