I have enclosed partials from my code. Basically, my PdfViewer that is called within a JPanel screen that I have. The PdfViewer calls a class PdfWaterMarker which uses iText to add a watermark to the PDF. It recieves a byte[] and returns a new byte[].
My main screen shows me a list of PDFs that I can view. When I click on a pdf the first time, the viewer brings it up WITH the watermark. When I click on another pdf or the same one again (even AFTER closing the pdfviewer window) it does NOT show the watermark anymore. Now the strange thing is, if I modify the code to also print the file out to PDF on my c drive, it will have the watermarks even though the pdfviewer does not have the watermarks showing. Also, I've put System.out.println's in several places before sending over the byte[] to the PdfWatermarker and after it comes back, and the size is growing to the size that includes the watermark even though its not displaying. I'm not sure if the problem lies with iText or Jpedal. Anyone experience anything like this? Thanks for your help. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
PdfViewer.java
Description: 510388714-PdfViewer.java
PdfWaterMarker.java
Description: 106447402-PdfWaterMarker.java
