If it doesn't work it's the viewer's fault or the image's fault. Jpeg images 
are passed unaltered to the PDF.

Paulo

----- Original Message ----- 
From: "flanker" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, October 28, 2006 8:02 PM
Subject: [iText-questions] How to load CMYK-Jpeg-s


Hi to all,

1. can you show me an example how to load and insert cmyk-jpegs into pdf 
document?
For example, we have a file "c:/workspace/my_cmyk_jpg.jpg".
following code works not:
----------------------------------------------------------------------------------
Image img = Image.getInstance("c:/workspace/my_cmyk_jpg.jpg");
img.scaleToFit(400.0F, 300.0F);
img.setAbsolutePosition(0, 0);
PdfTemplate pt = contentByte.createTemplate(400.0F, 300.0F);
pt.addImage(img);
contentByte.addTemplate(pt, 50.0F, 400.0F);
----------------------------------------------------------------------------------
I use iText v1.4.5

Thanks in advance

n-jet


--------------------------------------------------------------------------------


> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to