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!