Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] byte[] (jpg, tiff) to byte[] (pdf)

Mark Storer

2006-09-07


> p.s.: i have readed the itext tutorial, but there are just
> examples for converting into
> file system, and not to byte array

So you want a byte array of the entire PDF, not just the portion that would represent the image, right?

Just use a ByteArrayOutputStream instead of a file-related one as a parameter to the PdfWriter.

--Mark Storer
Senior Software Engineer
Cardiff Software

#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;

-------------------------------------------------------------------------
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@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.