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