Error when saving annotated PDF
Posted: Tue Jul 21, 2015 3:48 am
Hi,
I'm receiving the following error when attempting to save an annotated PDF: "Error emailing support: ' |', hexadecimal value 0x05, is an invalid character. Line 14, position 41." After clicking 'OK' another error dialog comes up: "Unexpected error:Object 2 is not found."
The code i'm using to save:
I have no trouble opening the document, highlighting text and saving with Adobe Reader; so I don't think it's due to the file being corrupted.
Any help would be appreciated. Thanks!
I'm receiving the following error when attempting to save an annotated PDF: "Error emailing support: ' |', hexadecimal value 0x05, is an invalid character. Line 14, position 41." After clicking 'OK' another error dialog comes up: "Unexpected error:Object 2 is not found."
The code i'm using to save:
Code: Select all
Vintasoft.Imaging.Codecs.Encoders.PdfEncoder pdfEncoder = new Vintasoft.Imaging.Codecs.Encoders.PdfEncoder();
pdfEncoder.AnnotationsFormat = AnnotationsFormat.VintasoftBinary;
pdfEncoder.Settings.GenerateAnnotationAppearance = true;
annotationViewer1.Images.SaveSync(_filePath, pdfEncoder);
Any help would be appreciated. Thanks!