I try to use your evaluation version (1.0.1227.36067)
My code is the following:
Pdf pdf = new Pdf();
string xmlFile = Server.MapPath(ApplicationPath + “/xml/Invoice.xml”); // this is your Invoice.xml file without logo string
pdf.BindXML(xmlFile, null);
HeaderFooter headerFooter = pdf.Sections.GetAt(0).OddHeader;
string fname = getPdfFileName(…
[//pdf.Save](https://pdf.save/)(Server.MapPath(ApplicationPath + Parameters[“PublishDirectory”] + fname));
pdf.Save(Response);
Response.End();
When I start this I receive the following error in my browser: An object reference is invalid.
If I use pds.Save (filename) file is successfully created but it cannot be open bt Acrobar Reader, it gives the following error: “There was an error opening this document. There was aproblem reading this document (130)”
Is your OS non-English or have you set your OS’s Regional Settings to a non-English language? If yes, please download the latest fix and replace the installed Aspose.Pdf.dll with it.
So, it seems it is necessary to add even one Paragraph. Please, explain.
Note: when I try to start an Invoice example from your demo and comment all lines except
Pdf pdf = new Pdf(); string xmlFile = Server.MapPath(ApplicationPath + “/xml/Invoice.xml”); pdf.BindXML(xmlFile, null); pdf.Save(Response); Response.End();