  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-09-05 - By Bruno Lowagie
Back Idees Absurdes wrote: > hi all! > > As the subject says, Is there anyway to copy the info from a PDFTemplate > to a BufferedImage? > > We're writing/rotating a rich text using a pdftemplate, and now we need > it in a BufferedImage 'cause we want to put that BufferedImage into > another BufferedImage to save disk space (we're kinda generating a > "texture" of the whole scene).
I'm not sure if I understand why you want to render the PDF to an Image. Do you need to reuse the PdfTemplate outside the context of a PDF file? Otherwise there's no reason for you to create a BufferedImage, you can easily reuse a PdfTemplate in another PdfTemplate to reduce the file size of the PDF.
If you really need the PdfTemplate to be rendered to an image (rasterized), you'll need another library. br, Bruno
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |