We are using the latest 7.0.1.35 dynamic PDF dll. We occasionally get pdf files that throw the following error:
I run the PDF through ghostscript or Adobe Pro Preflight - and both suggest no syntax errors.
any idea's on root cause?
System.Xml.XmlException: Invalid character in the given encoding. Line 5, positi
on 125.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32&
charsCount)
at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char qu
oteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean prese
rveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at zz93.hd.a(DocumentWriter A_0)
at ceTe.DynamicPDF.IO.DocumentResourceList.b(DocumentWriter A_0)
at zz93.no.r()
at ceTe.DynamicPDF.Document.Draw(Stream stream)
at ceTe.DynamicPDF.Document.Draw(String filePath)
at PDFTester.Imprinter.Save(MergeDocument pdfA, String inst, Boolean lin) in
c:\Development\PhlexEview 3\PDFTester\PDFTester\Imprinter.cs:line 1708
at PDFTester.Imprinter.Save(Boolean lin) in c:\Development\PhlexEview 3\PDFTe
ster\PDFTester\Imprinter.cs:line 1679
at PDFTester.Program.Main(String[] args) in c:\Development\PhlexEview 3\PDFTe
ster\PDFTester\Program.cs:line 55Complete, press any key to exit. Output file lo
cated at: C:\jars\PDF-Imprinter-Test-Console\PDFTester\bin\Debug\PDFs\109HV110 S
AP_Final_Signatures_10DEC2013-original-635590886264976280.pdf
Errors on PDF's that pass preflight
Re: Errors on PDF's that pass preflight
Support · Feb 9, 2015Hello,
There is a newer build (v7.0.3 build 27097) and it can be downloaded in the customer area
. Please update your project to use the latest build and see if that resolves the error.
In case the latest build does not resolve the problem, please email the following information referring to this forum post to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into it further.
1. Input PDF(s).
2. Code used to recreate the error.
Thanks,
ceTe Software Support Team.