When a named page with landscape orientation is placed among portrait-oriented pages, bookmarks on the landscape page point to the bottom of the page.
When I click on the link to Section One, the PDF reader takes me to the bottom of the Section One page instead. Also, the same thing happens if I click on the PDF bookmark to Section One.
Note that this happens with any page size I try (US-Letter or A4). Also, the actual document isn't nearly so weird as the example code above; I am just trying to reduce the problem to its basic elements.
I did find a workaround: specify the page measurements rather than using "landscape." For example, use "210mm 148mm" instead of "A5 landscape", or "11.0in 8.5in" rather than "US-Letter landscape". You can see this in my example above.
My environment:
I also tested the PDF output in Adobe Reader 9.3.0 on Windows 7. The symptoms were identical.
<html><head>
<style type="text/css">
@page toc { size: A5 }
@page p1 { size: A5 landscape }
@page p2 { size: A5 }
@page p3 { size: 210mm 148mm }
@page p4 { size: A5 }
#toc { page: toc }
#s1 { page: p1 }
#s2 { page: p2 }
#s3 { page: p3 }
#s4 { page: p4 }
</style>
</head><body>
<div id="toc">
<h1>Table of Contents</h1>
<ul>
<li><a href="#s1">Section One</a></li>
<li><a href="#s2">Section Two</a></li>
<li><a href="#s3">Section Three</a></li>
<li><a href="#s4">Section Four</a></li>
</ul>
</div>
<h1 id="s1">One</h1>
<h1 id="s2">Two</h1>
<h1 id="s3">Three</h1>
<h1 id="s4">Four</h1>
</body></html>
When I click on the link to Section One, the PDF reader takes me to the bottom of the Section One page instead. Also, the same thing happens if I click on the PDF bookmark to Section One.
Note that this happens with any page size I try (US-Letter or A4). Also, the actual document isn't nearly so weird as the example code above; I am just trying to reduce the problem to its basic elements.
I did find a workaround: specify the page measurements rather than using "landscape." For example, use "210mm 148mm" instead of "A5 landscape", or "11.0in 8.5in" rather than "US-Letter landscape". You can see this in my example above.
My environment:
- Prince 7.0
Mac OS 10.5.8
Preview 4.2
Adobe Reader 8.1.2
I also tested the PDF output in Adobe Reader 9.3.0 on Windows 7. The symptoms were identical.