Bruno Lowagie
Tue, 27 May 2008 11:40:30 -0700
[EMAIL PROTECTED] wrote:
> answered in the language of iText, e.g., append = true, not append = false,
> as in the following example, based on the HelloWorldForm class in Chapter 2
> of the book, which correctly preserves the Reader-Enabled capability of the
> PDF:
>
> reader = new PdfReader("t3b8-5x11a.pdf", "ownerpassword".getBytes());
> stamper = new PdfStamper(reader, new FileOutputStream(
> "t3b8-5x11a_filled.pdf"), reader.getPdfVersion(), true);
>
> where "ownerpassword" has been inserted in place of the actual owner password.
> Readers should review the current documentation for PdfStamper to understand
> the above code.
The above response is an example of something I marked in
one of my book copies. Based on this answer, I wrote some
examples about filling Reader Enabled forms:
http://1t3xt.info/examples/browse/?page=toc&id=365
This is how NOT to do it:
http://1t3xt.info/examples/browse/?page=example&id=349
This is how to do it, REMOVING the Reader enabling:
http://1t3xt.info/examples/browse/?page=example&id=350
This is how to do it, KEEPING the usage rights:
http://1t3xt.info/examples/browse/?page=example&id=348
More examples will follow in the iText-Questions example
collection: http://1t3xt.info/examples/questions.php
br,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar