Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Error saving to HTML: "hexadecimal value 0x01, is an invalid character"

$
0
0
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!

Viewing all articles
Browse latest Browse all 3131

Trending Articles