PDFsharp & MigraDoc Foundation

Unicode string not handled + patch
Page 1 of 1

Author:  Gerben Vos [ Thu Sep 08, 2016 7:43 pm ]
Post subject:  Unicode string not handled + patch

PdfSharp parses unicode strings and handles them when it encounters them in a content stream, but does not handle them when they occur in a PDF object.

This can result in the error message:
- Unexpected token '<content of string>' in PDF stream. (sample PDF too large, available on request)

Fixed by treating Unicode (and hexadecimal and hexadecimal Unicode) strings in PDF objects the same as plain strings.

Patch attached.

pdfsharp-689.zip [566 Bytes]
Downloaded 495 times

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group