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?


1 Reply

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

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:
Please try the above sample and let us know your result.

Live Chat Icon For mobile
Up arrow icon