Hi,
We are using Dynamic PDF for .NET v7.0.1.40 (Build 22435).
We use merger for merging individual PDF documents as a single document with bookmarks. Our customer facing an issue in the merged document with the book marks. When a book mark is clicked, the corresponding page is shown, but instead of showing the top of the page, it shows the middle portion of the page. I have given the steps below.
1. Open the Merged document, the document is opened with Adobe Reader with first page without any issues.
2. Scroll the page using scroll bar; bring to middle of the page.
3. Now expand the book marks and click on any bookmark which shows a different page other than default first page.
4. Now you may notice that the middle portion of the page is shown.
5. Our customer is expecting that it the Step 4 action should show the top of the page, instead of showing the middle part of the page.
Any Ideas how to fix this issue?
Thanks,
Mohan
Merger Bookmarks Issue
Re: Merger Bookmarks Issue
Support · Oct 23, 2013Hello Mohan,
You are seeing this behavior most likely because of the type of action set to the Outline. We have several Action classes and depending on your requirement you have choose the desired action for the bookmarks and outlines. You can refer the documentation on Action classes here
. Also refer documentation on outlines and bookmarks here
.
You can try using the XYDestination action class which takes page number, X position and Y position as arguments and set the X and Y values as zero and set this action to the outline and this will always open the page showing the top of the page. Below is the sample code for it.
XYDestination action1 = new XYDestination(pagenumber, 0, 0);
Outline outline1 = parentOutline.ChildOutlines.Add(file.Name, action1);
Thanks,
ceTe Software Support Team