By Date: <-- -->
By Thread: <-- -->

Image transparency issues related to printing PDF



I am having problems printing PDF generated with iText.  The PDF views
correctly with the Adobe reader but must be printed using
PostScript Level 3 or as image.  The default printing modes result in
image transparency issues, i.e. overlapping images obscure each
other.  I have treid many different permutations but can not seem to get
around the problem.  I am attaching a sample PDF file
stripped down to the offending page content.  It views fine but prints
incorrectly unless it is printed as image or
PostScript Level 3.

I am nor clear on how to set the transparency mask and have been using
more or less a trial and error method! . . . not my preferred
mode of operation. My lack of understanding on how this parameter is
constructed and what it does may be the source of my problems.
The following code snippets are used to add the images to the page:

  if (gray) {
         // 8-bit logic (0 black 255 white/transparent)

         int transparency[] = {255, 255};
         pdfImage =
com.lowagie.text.Image.getInstance(xSize,ySize,1,8,data,transparency);
         }

the above views correctly and prints fine to non-PostScript devices . .
. However when printing to PostScript Level 2  it fails. (I use CutePDF
driver to test this)

else {
         // 1-bit logic (0 black 1 white/transparent)
         //int transparency[] = {1, 1}; // does not work ??? (does not
view or print correctly)
         int transparency[] = {255, 255}; // views but must print as image
         pdfImage = new com.lowagie.text.ImgRaw(xSize,ySize,1,1,data);
         pdfImage.setTransparency(transparency);
         }

The above views correctly but must be printed as image or PostScript
Level 3.  The transparency[] = {1,1; does not work as it should.

I am attaching two 1 page PDFs.  One is a bi-level image the other is 8-bit.

This may be an Adobe reader issue but I would like to make sure there is
not something
else lurking around this problem!

Thanks.

Sincerely
Jerold Sampson




Attachment: bill.8bit.pdf
Description: Adobe PDF document

Attachment: bill.bilevel.pdf
Description: Adobe PDF document

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions