Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export specific page / page ranges #3095

Closed
emilyyyylime opened this issue Dec 28, 2023 · 2 comments · Fixed by #4039
Closed

Export specific page / page ranges #3095

emilyyyylime opened this issue Dec 28, 2023 · 2 comments · Fixed by #4039
Assignees
Labels
cli About Typst's command line interface. feature request New feature or request

Comments

@emilyyyylime
Copy link
Contributor

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.

@emilyyyylime emilyyyylime added the feature request New feature or request label Dec 28, 2023
@laurmaedje laurmaedje added the cli About Typst's command line interface. label Dec 28, 2023
@PgBiel
Copy link
Contributor

PgBiel commented Apr 29, 2024

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.

@emilyyyylime
Copy link
Contributor Author

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
Labels
cli About Typst's command line interface. feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants