I have pdf file that fails to save with error:
Invalid year in date string
at spr㖔.ᜂ(String A_0, Int32 A_1)
at spr㖓.ᜀ(String A_0, spr㕴 A_1)
at spr㖝.ᜉ(String A_0, String A_1)
at spr㗎.ᜈ()
at Spire.Pdf.PdfDocumentInformation.ᜄ()
at Spire.Pdf.PdfDocumentInformation.ᜉ()
at Spire.Pdf.PdfDocumentBase.ᜀ()
at Spire.Pdf.PdfDocumentBase.get_DocumentInformation()
at spr㜕.ᜀ(Stream A_0)
at Spire.Pdf.PdfDocumentBase.Save(String filename)
The file is created, but has size 0 KB, see picture attached.
This is the code that fails (I am doing also some manipulation with file before saving - drawing rectangles on it, but it fails also without any manipulation):
- Code: Select all
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(input);
pdf.SaveToFile(output);
Do you know what might be the issue from the error?
If you need the file, how can I send you the file without attaching it here to be publicly available?
Best regards,
Filip