We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Create Pdf bookmarks based on font Style

Is there any way to create bookmarks based on font style from an existent pdf file, or creating a new one?

Thanks!


1 Reply

KK Karthik Krishnaraj Syncfusion Team August 31, 2015 03:36 AM

Hi Sérgio,
Thanks for using Syncfusion product,
We can set the font style of PdfBookmark from the existing bookmark’s text style. Please refer the below code snippet.

PdfBookmark bookmark = document.Bookmarks.Add("New Bookmark");
bookmark.TextStyle = document.Bookmarks[0].TextStyle;
We have attached sample for your reference.
Sample Link:
http://www.syncfusion.com/downloads/support/forum/120083/ze/BookMarkSample503843530
Please try the above sample and let us know your result.
Thanks,
Karthik.


Loader.
Live Chat Icon For mobile
Up arrow icon