  | 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 | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Adding Paragraph to existing pdf | Adding Paragraph to existing pdf 2006-08-14 - By Beate Niendorf
Back
Hello,
I'm trying to add a Paragraph with a list to an existing PDF-File. Therefore I take this example: Paragraph paragraph = new Paragraph("Things to show in the list"); com.lowagie.text.List .html>com.lowagie.text.List com.lowagie.text.List .java.html> ' border=0> list = new com.lowagie.text.List .html>com.lowagie.text.List com.lowagie.text.List .java.html> ' border=0>(false, 10); list.add("first"); list.add("second"); list.add("third"); //... paragraph.add(list);
Now I can add this to a new document like described in the tutorials example. But what I want is to add this paragraph to an existing PDF. This is what I have but I can't add the list:
PdfReader reader2 = new PdfReader(new FileInputStream(formfile)); File tmpFile = new File(formfile + ".tmp"); PdfStamper stamp = new PdfStamper(reader2, new FileOutputStream(tmpFile));
I also tried with PdfContentByte content = stamp.getOverContent(1); to add the list but could find an satisfying solution.
Many thanks for helping in advance, Beate
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- 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
|
|
 |