We are looking at moving a bunch printing code from Postscript to PDF.
We have a large set of monochrome CCITT TIFF images that are used on
various documents. Some of these images need to be screened to appear
gray. In Postscript I was able to accomplish this by adding a Decode to
the image attributes like this:

/Decode [GrayScaleValue 1.0]

Our RIP then sees the gray and does its screening algorithm.  

I see that PDF also supports /Decode and I was able to insert a line of
code into PdfImage.cs that does the job as follows.

Put(PdfName.DECODE, new PdfLiteral("[0.5 1.0]"));

Is there any "official" way to have iTextSharp output that or should I
perhaps be thinking about this in a different way? I tried playing
around with the "Additional" PDFDictionary object that you can set on an
image, but the PdfImage.cs code bypasses that for CCITT images. 

Allen


DISCLAIMER:
This transmission contains information from Custom Direct, Inc. which may be 
confidential and/or privileged.  The information is intended to be for the 
exclusive use of the planned recipient.  If you are not the intended recipient, 
be advised that any disclosure, copying, distribution or other use of this 
information is strictly prohibited.  If you have received this transmission in 
error, please notify the sender immediately.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to