Hi! I am experiencing a problem with conversion of some pdf documents to PDF/A format. The same code works for most documents, but sometimes it fails (an example of document causing problems is attached). Have tried both 6.4 and 6.7 versions of Aspose.Pdf.dll.
The following code is used:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(pdfStream);
pdfDocument.Convert(logFilePath, PdfFormat.PDF_A_1A, ConvertErrorAction.None)
It gives the following exception:
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToDouble(String value, IFormatProvider provider)
at . . (String , String , Int32 )
at . . ( )
at . . ( )
at . . ()
at . . (XmlTextWriter , PdfFormat , , Boolean , ConvertErrorAction )
at .œ. (XmlTextWriter , PdfFormat , Boolean , ConvertErrorAction )
at Aspose.Pdf.Document.Convert(String outputLogFileName, PdfFormat format, ConvertErrorAction action)
Log file specified in logFilePath is empty.
Any ideas what causes the problem with conversion?