typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
13 stars 0 forks source link

Wrong page number while WebApp exporting PDF with custom page ranges #399

Open HeZeBang opened 8 months ago

HeZeBang commented 8 months ago

Description

When exporting a PDF with custom page ranges, the Table of Contents (TOC) in the PDF displays the complete outline with incorrect page numbers.

Maybe it should be part of the TOC?

Reproduction URL

No response

Operating system

Web app

Typst version

emilyyyylime commented 8 months ago

It would be useful if you could provide an example Typst source and the generated toc

HeZeBang commented 8 months ago

TestFeat.pdf

Here is the example with following export settings

image

Source File:

= Heading at Page 1

#pagebreak()

== Heading at Page 2

#pagebreak()

== Heading at Page 3

with wrong TOC of PDF

image