PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Oct 31, 2025 9:22 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Sep 21, 2012 12:49 pm 
Offline

Joined: Wed Sep 05, 2012 3:27 pm
Posts: 4
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?


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 26, 2012 2:53 pm 
Offline

Joined: Wed Sep 05, 2012 3:27 pm
Posts: 4
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 ...


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 26, 2012 4:42 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 102 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group