开发者

(pdflib) Table of contents with dynamic page numbers

开发者 https://www.devze.com 2022-12-11 03:35 出处:网络
I\'m on pdflib 7 under php5 and I\'m drawing a statistical report with several sub topics over several pages.

I'm on pdflib 7 under php5 and I'm drawing a statistical report with several sub topics over several pages.

Now, I want to include a table of contents on the first page where every sub topic is listed with it's actual page number. Needles to say that I don't know those page numbers at the tim开发者_如何学Pythone I draw the table of contents.

Is there a way to 'jump' back to the first page after drawing the rest of the document and creating the TOC knowing the actual page numbers for the sub topics?

tia for any hints or ideas

K


use suspend_page() and resume_page(). You might check out the PDFlib Cookbook:

http://www.pdflib.com/pdflib-cookbook/pagination/

0

精彩评论

暂无评论...
验证码 换一张
取 消