I have stopped using this code, since it completely clears page 1 in some of
the files.
I could not consistently re-create the issue re-processing the same file in
debug environment worked.
Instead - system code changed to locate the "clean" file and add watermark
to it.
PS.
We paid for the iText
Adding fields through javascripts works, but only in acrobat writer.
So I'm back to the code, I'll make the field name change on each page.
Why is the name no problem in iText but not in acrobat writer???
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Add-TextField-
I needed some javascript to activate the fields anyway, so i moved the field
creation to the javascript too.
the fields purpose is to show the file name and print time on the document.
I added this code to the "Document Will Print" document action:
JS
global.d = this.dirty; //save dirty status
v
This is the latest OCG removal code from Bruno:
http://itext-general.2136553.n4.nabble.com/file/n3020962/RemoveChanges1.java
RemoveChanges1.java
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/remove-watermark-layer-tp2264258p3020962.html
Sent from the iText - Gener
I narrowed it down to 4 code lines, and it still throws a
NullPointerException on close line.
if i remove the Map line, i just get a copy of the inFile.
PdfReader reader = new PdfReader(inFile);
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(outFile));
Ma
here it is again - line separated:
Exception in thread "main" java.lang.NullPointerException
at
com.itextpdf.text.pdf.PdfWriter.fillOCProperties(PdfWriter.java:2567)
at com.itextpdf.text.pdf.PdfStamperImp.close(PdfStamperImp.java:189)
at com.itextpdf.text.pdf.PdfStamper.cl
the code blow throws a an exception in the stamper.close line
i see no reason for the exception - any idea??
exception:
Exception in thread "main" java.lang.NullPointerException
at
com.itextpdf.text.pdf.PdfWriter.fillOCProperties(PdfWriter.java:2567)
at com.itextpdf.text.pdf.PdfSta
Hi,
A little background:
I've worked with the adobe SDK in a .NET environment on watermarking a bunch
of PDFs, the watermarks added to the PDFs were not displayed in the layers
listing, and can be removed in acrobat writer menu (Document - Watermark -
Remove...).
Through that SDK I could also chec