Hi,
I have a problem with PDF created by some HP scanning application. When I convert it to PDF/A and then I try to save it I get this exception:
The added or subtracted value results in an un-representable DateTime.
Parameter name: value at System.DateTime.AddTicks(Int64 value)at .e.a(a )
at ..Save(a , a )
at a..Save()
at a..Save(Stream )
at ..Save(Stream )
at Aspose.Pdf.Document.Save(Stream output)
at ConvertToPDFA.PdfToPDFA.ConvertToPDFA(Byte[] Bytes)
at ConvertToPDFA.PdfToPDFA.ConvertToPDFA(String Path)
at AABase.ConvertToPDFA_Aspose.ConvertFileToPDFA(String FileName)
I found out that the PDF has empty CreationDate and CreationDate–Text value in PdfDocument.Info collection and also empty pdf:CreationDate–Text in Metadata collection. I handled it by Removing the (pdf:)CreationDate–Text from both collections and filling the CreationDate with ModDate value. But I don’t think this is the best solution. Could you please check it and try to handle it somehow in the save method?
Thanks pilscom