Skip to content

how to navigate to a given page number #987

Closed Answered by gmischler
abubelinha asked this question in Q&A
Discussion options

You must be logged in to vote

In its core, fpdf2 is still a very simple system. It was designed a long time ago to process pages in a linear fashion, and that aspect hasn't significantly changed since then. You're looking at a straightforward PDF generator, and not at a content management system.

There are some ways to "hack" around the limitations of the system, either through placeholders like for TOCs or the number of pages, or by manipulating the internal counter self.page. The latter is probably what you're looking for here, but you need to be aware that it is really more of a workaround than a real feature, and may result in unintended consequences if not handled with care. Those consequences may also change in …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@abubelinha
Comment options

@gmischler
Comment options

Answer selected by abubelinha
@abubelinha
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants