I have a txt file which contains data in XML format. My requirement is to read this file and create a pdf.
Sample code :
Pdf pdf = new Pdf();
StringBuffer strBuff = getContentFromFile(); // This method reads the content of the file attached here
pdf.bindXML(new StringBufferInputStream(strBuff.toString()), null);
If I am using Aspose 2.7.0 its working fine in both windows and Linux machine.
But in 2.9.0 this works fine in Windows machine and failing in Linux machine.
The file contains a piece of string :
In this line its throwing the following exception :
Exception Summary: Couldn't convert image stream: null
Exception Cause: null
The Exception stack trace is as follows,
If I remove that particular line then its working fine .