  | 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
|
|
|
  | | | Problem with setting default color space. | Problem with setting default color space. 2006-08-31 - By GaneshPrakhya
Back
Hi Bruno,
I am setting the default color space in the following...
BatchFillPDFX batch = new BatchFillPDFX(); Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(targetFile));
writer.setDefaultColorspace(PdfName.DEFAULTCMYK, null); PdfDictionary dic = writer.getDefaultColorspace(); System.out.println(dic + "----" + dic.size());
writer.setPDFXConformance(PdfWriter.PDFX32002); FontFactory.registerDirectories(); writer.setPageEvent(batch); document.open(); //some code. document.newPage(); //at the end document.close();
This throwing an exception at document.newPage(), it is NullPointerException. Is there anything wrong in this code.
-- ganesh. -- View this message in context: http://www.nabble.com/Problem-with-setting -default-color-space.-tf2195184.html#a6074772 Sent from the iText - General forum at Nabble.com.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- 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
|
|
 |