Hi,
I'm getting an invalid character error when I try and save some PDF documents to HTML using Aspose.Pdf.
'', hexadecimal value 0x01, is an invalid character.; at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
Is there a way of filtering out invalid characters, or validating the original PDF? Code snippet below:
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(inFilepath);
outFilepath = Path.Combine(workingDir, string.Format("{0}.html", Path.GetFileNameWithoutExtension(inFilename)));
pdfDoc.Save(outFilepath, Aspose.Pdf.SaveFormat.Html);
Many thanks!