It is a trivial change, so submit a patch that allows the 'convert  
images to jpeg' to be enabled/disabled. You will need to use  
'instance of' in your code.

Probably better though would be to change the drawImage handling so  
that if the incoming image would create a mask if the source image ha  
an alpha channel, or write the image using a image format that  
suports transparency and if supported by PDF.

You should probably check how Distiller is writing the images.

On Jan 20, 2007, at 4:01 PM, Steven Case wrote:

> Yes, there is an option on the PdfGraphics2D object, but that  
> option is
> private and can only be set via the constructor.  Thus, the option  
> cannot be
> changed on an image-by-image basis unless a new PdfGraphcs2D object  
> is created
> prior to drawing each image.  I could do that, of course, but then  
> the code is
> far less consistent with the original AWT-based printing model.
>
> As far as the other suggestions, I'll have to take a look at them.   
> I am also
> of the impression that PDF does not support PNG as a native  
> format.  As far as
> distiller's output, I am also not certain.  Perhaps it is using a  
> mask.  I
> haven't looked that closely.  Even if it was, it's not clear to me  
> how such
> behavior could be simulated using the Graphics2D interfaces to iText.
>
> Regards,
> Steve
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to