Sign In  Sign Up Live-Chat

Problem extracting bookmarks

Last post 11-13-2008, 5:39 AM by forever. 5 replies.
Sort Posts: Previous Next
  •  09-03-2008, 6:02 AM 142186

    Problem extracting bookmarks

    Attachment: Present (inaccessible)

    Hi,

    When I use the method PdfContentEditor.ExtractBookMarks on the attached PDF, I get the error:

    An unhandled exception of type 'System.InvalidCastException' occurred in aspose.pdf.kit.dll

    Additional information: Specified cast is not valid.

     

    Here is my code:

    Dim pdf As Aspose.Pdf.Kit.PdfContentEditor

    Dim bookmarks As Aspose.Pdf.Kit.BookMarks

    pdf = New Aspose.Pdf.Kit.PdfContentEditor

    pdf.BindPdf("Bookmark1a.pdf")

    bookmarks = pdf.ExtractBookMarks

     

    Thanks,

    Chris

     

     
  •  09-03-2008, 7:12 AM 142191 in reply to 142186

    Re: Problem extracting bookmarks

    Hello Chris,

    One thing that I have observed is that, the issue seems to be with the Pdf file. Open the Pdf file and select the Bookmark, it shows a prompt "Specified file Bookmark2 does not exist". Which means that the issue is with the pdf file not with the component. Please try using some valid Pdf with valid bookmarks.

    In case you are still facing any problems, please feel free to share.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-03-2008, 10:13 AM 142215 in reply to 142191

    Re: Problem extracting bookmarks

    that's just because I didn't include the pdf it is linked to as I didn't realise that you would require it to investigate this issue.  The bookmark itself is still perfectly valid, you just can't goto it.

    However, if you need the destination link to be able to investigate the issue, it links to page 2 of a file called 'C:\Capgen\Test Data\PDF\Bookmark2.pdf'

    Any PDF with that name will do.

     
  •  09-03-2008, 1:44 PM 142236 in reply to 142215

    Re: Problem extracting bookmarks

    Hi Chris,

    We apologize for your inconvenience. I have tested the issue and I’m able to reproduce the same problem. I have logged it in our issue tracking system as PDFKITNET-5890. We will investigate this issue in detail and will keep you updated on the status of a correction.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-10-2008, 8:05 AM 143330 in reply to 142236

    Re: Problem extracting bookmarks

    Attachment: Present (inaccessible)

    Hi Chris,

    Please download and try the attachment in which is a beta version( 3.2.0.3) of Aspose.Pdf.Kit.dll, and the fix for issue PDFKITNET-5890 is included in the version.


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-13-2008, 5:39 AM 152393 in reply to 142186

    Updated component version is available

    The issues you have found earlier (filed as 5890) have been fixed in this update.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML