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

I want to add a bookmark with unicode characters
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2148
Page 1 of 1

Author:  przemek123 [ Fri Sep 21, 2012 12:49 pm ]
Post subject:  I want to add a bookmark with unicode characters

Hello. I need to add some bookmarks to my pdf document using PDFSharp.
I looked in the "Unicode" example, but it shows only how to add unicode characters in the document.
So I added this line: (before saving the document)

Code:
PdfPage page0 = document.Pages[0];
PdfOutline outline = document.Outlines.Add("śćąęółżź", page0, true);


And it still doesn't work like I need.

I am kindly asking You for the support. Can you bring me some idea?

Author:  przemek123 [ Wed Sep 26, 2012 2:53 pm ]
Post subject:  Re: I want to add a bookmark with unicode characters

I found a thread: Broken unicode support in bookmarks.
In that thread somebode wrote an answer: Unicode, code modification and library distribution.
Proposed modification doesn't work with my project. I am getting a big image with errors.
At the top it says: "Raw string contains invalid character with a value > 255".
I think it happens, when I try to add a bookmark with Unicode (I wrote this line in previous message).

Please help. It is a very important problem to me ...

Author:  Thomas Hoevel [ Wed Sep 26, 2012 4:42 pm ]
Post subject:  Re: I want to add a bookmark with unicode characters

Hi!

Currently PDFsharp cannot use Unicode characters in bookmarks.
I'm sorry, but I don't know what has to be changed to make it work.

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