<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>I'm looking for a solution to the following situation.</div><div><br></div><div>I've got a number of PDF files that I need to put together into a single document.</div><div><br></div><div>Desiderata:</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>- Have a table of contents at the beginning of the resulting file that lists the PDF collected in the file.</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>- Make the entries in that table of contents clickable so that readers are taken directly to the corresponding, included document.</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>- For each included document, include a link in the table of contents that allows a reader to print just that document (perhaps by pre-populating the print dialog box).</div><div><br></div><div>I'm using the pdfpages package to accomplish the concatenation, and the hyperref package to accomplish the clickable links in the table of contents. But for the life of me, I don't know how to implement the page range restriction. I've tried using the PrintPageRange option in the hyperref package, but that only  sets the page range statically once and for all for the whole document. If I could somehow set this dynamically, that would be awesome. But I'm open to any other solution that can accomplish the desiderata.</div><div><br></div><div>Thanks a lot,</div><div>Bernhard.</div><div><br></div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Gill Sans'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="'Gill Sans'">--<br>Bernhard Nickel<br><a href="http://www.bernhardnickel.net">www.bernhardnickel.net</a><br>------------------------</font></div></span></span>
</div>
<br></div></body></html>