I am trying to implement the algorithm suggested in http://www.dynamicpdf.com/Forums/DisplayThread.csp?ForumId=45&ThreadId=3268, and I am running into an issue. For some documents everything works as expected, but for one document I see the value -1 for all TargetPageNumber properties. This document has nested set of bookmarks, and most of them (and perhaps all of them) are not at the page level, but are rather at a specific location within the page. Is there a way to duplicate this kind of bookmark/outline item?
[If it matters, right now I am using .NET 3.5, but I will be targeting .NET 2.0 in the final version]
Thanks,
JR VanMechelen
Getting -1 for TargetPageNumber of Outline
Re: Getting -1 for TargetPageNumber of Outline
Support · Oct 15, 2013Hello JR,
Please send over the problem PDF and the code you have tried so far to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into this further.
Thanks,
ceTe Software Support Team.
Re: Getting -1 for TargetPageNumber of Outline
Support · Oct 16, 2013Hello,
We have reviewed the code and the PDF document you sent. The reason you are seeing -1 returned instead of the page number for certain outlines is because those outlines are pointing to named destinations instead of an actual bookmark. In the cases where are able to retrieve a page number, those outlines are pointing to bookmarks.
Adding and/or reading the named destinations is currently not supported in our API. We have this feature added to our feature request list but at this time we don’t have any immediate plans to implement it.
Thanks,
ceTe Software Support Team.
Re: Getting -1 for TargetPageNumber of Outline
Support · Dec 18, 2013Hello,
We have implemented the feature of retrieving the page numbers of outlines that contain named destinations in our latest release v7.0.3.24843. The TargetPageNumber property available on the PdfOutline class will now return the actual page number instead of -1 for the outlines that point to named destinations.
Customers who own a v7 license can download the latest build from the customer area
. For customers who are evaluating the product, the evaluation edition is available here
.
Thanks,
ceTe Software Support Team.