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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create Pdf bookmarks based on font Style

Thread ID:

Created:

Updated:

Platform:

Replies:

120083 Aug 28,2015 11:11 AM UTC Aug 31,2015 08:36 AM UTC WinForms 1
loading
Tags: PDF
Sérgio Rodrigues Costa
Asked On August 28, 2015 11:11 AM UTC

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

Thanks!


Karthik Krishnaraj [Syncfusion]
Replied On 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:
http://www.syncfusion.com/downloads/support/forum/120083/ze/BookMarkSample503843530
Please try the above sample and let us know your result.
Thanks,
Karthik.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;