Skip to content

Export specific page / page ranges #3095

Closed

Description

@emilyyyylime

Description

typst compile path/to/proj.pdf --page 2 export.png

Use Case

When exporting to images sometimes it is desirable to only export some of the pages.

Activity

  1. added
    feature request
    on Dec 28, 2023
  2. added
    cli
    on Dec 28, 2023
  3. PgBiel commented on Apr 29, 2024

    @PgBiel
    Contributor

    This should be fairly easy for PNG and SVG exports, but sounds like it can be a bit complex for PDF export. I think the best approach for that would be to ensure typst-pdf doesn't touch things from deleted pages, e.g. excludes headings in those and so on. Still, this would definitely be an interesting feature.

  4. emilyyyylime commented on Apr 30, 2024

    @emilyyyylime
    ContributorAuthor

    If I'm not mistaken PDFs actually have support for starting on page numbers other than 1, so that seems like the best approach to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

clifeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions