PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Unicode string not handled + patch
https://forum.pdfsharp.net/viewtopic.php?f=3&t=3450
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.

Attachments:
pdfsharp-689.zip [566 Bytes]
Downloaded 203 times

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/