Bookmarks/Destinations Not There

2 posts, 1 answers
  1. Seth
    Seth avatar
    5 posts
    Member since:
    Oct 2012

    Posted 17 Mar 2014 Link to this post

    I'm trying to use the GetAllBookmarks code from here; http://www.telerik.com/help/wpf/radpdfviewer-document-model-annotations.html

    But the collection of annotations in my document is empty.

    I cannot attach the pdf because it has the wrong file type but Foxit PDF does list and use the bookmarks in the document correctly.

    Here is the code I am using to load the pdf;

    Dim pdfStream As System.IO.FileStream = New System.IO.FileStream("C:\test2.pdf", IO.FileMode.Open)
    pdfStream.Position = 0

    Dim document As RadFixedDocument = New PdfFormatProvider(pdfStream, FormatProviderSettings.ReadOnDemand).Import()
    wpfPrintVersion.pdfViewer.Document = document


    I am on version 2014.1.224.40.

    Thanks.
  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 19 Mar 2014 Link to this post

    Hi,

    Thank you for contacting us.

    At this point RadPdfViewer only supports Link annotations, so in case the annotations in your document are not of this type they might not work properly. Additionally, what most viewers of PDF documents (for example, Adobe Reader) list as "Bookmarks" is a feature called document outline which currently unsupported by RadPdfViewer.

    Let us know if there is anything else we can help you with.

    Regards,
    Petya
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top