You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using JasperReports with OpenPDF and I can not export JasperPrint to PDF/A document.
I'm using jasperreports exportReport() method from JRPdfExporter which calls method com.lowagie.text.pdf.PdfWriter.getInstance(Document document, OutputStream os) in which object com.lowagie.text.pdf.PdfDocument is constructed with constructor :
public PdfDocument() {
super();
}
Problem is that NPE occurs when XMPMeta object is created and populated with properties that consists of XML namespaces, names and values. Two of these properties names are CreateDate and ModifiedDate and their values are read from PdfDictionary com.lowagie.text.pdf.PdfWriter.getInfo() object. These values don't exist in PdfDictionary.
Constructor of net.sf.jasperreports.engine.export.XmpWriter class:
Hello,
I'm using JasperReports with OpenPDF and I can not export JasperPrint to PDF/A document.
I'm using jasperreports exportReport() method from JRPdfExporter which calls method com.lowagie.text.pdf.PdfWriter.getInstance(Document document, OutputStream os) in which object com.lowagie.text.pdf.PdfDocument is constructed with constructor :
Problem is that NPE occurs when XMPMeta object is created and populated with properties that consists of XML namespaces, names and values. Two of these properties names are CreateDate and ModifiedDate and their values are read from PdfDictionary com.lowagie.text.pdf.PdfWriter.getInfo() object. These values don't exist in PdfDictionary.
Constructor of net.sf.jasperreports.engine.export.XmpWriter class:
NPE occurs at these lines of code:
Can you change constructor to (like in iText versions 2.7.1 and 4.2.1) :
I can create Pull-request if needed.
The text was updated successfully, but these errors were encountered: