Bookmarks in PDF file

5 posts, 0 answers
  1. Peter
    Peter avatar
    2 posts
    Member since:
    May 2013

    Posted 08 May 2013 Link to this post

    Hi there!
    Can I get hold of the bookmarks, links in the pdf file from RadPdfViewer or am I just out of luck?
    If I can, how do I do it?
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 09 May 2013 Link to this post

    Hi Peter,

    Please refer to this article which describes the exposed API for retrieving and using Annotations such as Links and Bookmarks. It sounds like it would be just what you need.

    Kind regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Peter
    Peter avatar
    2 posts
    Member since:
    May 2013

    Posted 13 May 2013 Link to this post

    Thanks! That is what I was looking for!
  4. pravin
    pravin avatar
    4 posts
    Member since:
    Jul 2018

    Posted 13 Jul 2018 Link to this post

    Hi,

    I also checked this https://docs.telerik.com/devtools/wpf/controls/radpdfviewer/document-model/annotations link but don't know what to do with this as , "pages" shows "HasContent" as false for each "page"

    I have bookmarks within my pdf and want to list them down to be shown in my pages as information but not sure how to do it using this code in above mentioned URL.

    Please help me with that.
    thanks,
    Pravin Ingle 

  5. Georgi
    Admin
    Georgi avatar
    46 posts

    Posted 17 Jul 2018 Link to this post

    Hi Pravin,

    The bookmarks collection in the PDF document model is a hierarchy of objects where each bookmark item has a destination and title. You can access the destinations collection on document level and use the RadPdfViewer.GoToDestination functionality in order to implement the bookmarks behavior, as can be seen on the Annotations section you referred to.
    You can achieve your own bookmarks implementation by building UI based on the destinations collection. However, as the title and bookmarks hierarchy information are not provided on document import, you should build your own bookmarks structure and visualize it as preferred.

    I am happy to say that the bookmarks implementation for RadPdfViewer is in progress and is scheduled for the upcoming R3 2018 release. We have logged a feature request in our feedback portal, where you can subscribe to be notified for any status updates.

    Regards,
    Georgi
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top