Skip to content

Bump PDF and SVG cinematic universe, adding support for multiple PDF standards - #8294

Merged
laurmaedje merged 13 commits into
mainfrom
bump-krilla
May 29, 2026
Merged

laurmaedje merged 13 commits into
mainfrom
bump-krilla

Conversation

@reknih

@reknih reknih commented May 15, 2026 •

Copy link
Copy Markdown
Member

This PR bumps Krilla to the latest version on its main branch.

It adds the capability to use multiple PDF standards (e.g. PDF/A-2a and PDF/UA-1) at a time.

Some test cases updated. Descriptions as on why can be found in the commit messages.

Closes #7183

Fixes #8154
Fixes #7269
Fixes #7235
Fixes #7990

@reknih reknih added pdf Related to PDF export or PDF embedding. dependencies Pull requests that update a dependency file labels May 15, 2026
@reknih
reknih marked this pull request as ready for review May 15, 2026 17:45
@reknih
reknih force-pushed the bump-krilla branch 3 times, most recently from 6e47d2c to b943421 Compare May 18, 2026 15:49
@LaurenzV

Copy link
Copy Markdown
Collaborator

Just as a heads-up, with LaurenzV/krilla#390 I will be disabling the zlib-rs feature from flate2. The reason is that if we enable this in krilla, others do not have any way of still using the old backend (while if we disable the feature, others still can control whether to use the miniz-oxide or zlib-rs backend).

Therefore, if you want to keep using zlib-rs you will need to enable the feature yourself now here:

flate2 = "1"

Comment thread crates/typst-pdf/src/tags/tree/build.rs Resolved

@saecki saecki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error messages for incompatible standards read nicely!

Comment thread crates/typst-pdf/src/util.rs Resolved
Comment thread crates/typst-pdf/src/convert.rs Resolved
Comment thread crates/typst-render/src/image.rs Resolved
@saecki saecki mentioned this pull request May 22, 2026
2 tasks
@Enivex

Enivex commented May 22, 2026

Copy link
Copy Markdown
Collaborator

It sounds like #7269 is only partially resolved?

@LaurenzV

Copy link
Copy Markdown
Collaborator

Should be fully resolved.

@Enivex

Enivex commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Should be fully resolved.

Alright, i was just basing it on the final two comments there

@laurmaedje laurmaedje changed the title Bump Krilla Bump krilla and add support for multiple PDF standards May 22, 2026
@laurmaedje laurmaedje added the waiting-on-author Pull request waits on author label May 27, 2026
@reknih
reknih force-pushed the bump-krilla branch 2 times, most recently from e8ee4ec to e949f8c Compare May 27, 2026 10:41
Comment thread crates/typst-pdf/Cargo.toml Resolved
@reknih
reknih force-pushed the bump-krilla branch 2 times, most recently from 347d30a to 8b75288 Compare May 27, 2026 13:12
@LaurenzV

Copy link
Copy Markdown
Collaborator

Will make a new krilla release shortly, feel free to ping me when you think it's done then I can take another look.

@LaurenzV LaurenzV left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall!

Comment thread crates/typst-render/src/image.rs Resolved
Comment thread crates/typst-svg/src/image.rs Resolved
@laurmaedje
laurmaedje force-pushed the bump-krilla branch 2 times, most recently from 941f50a to 0c57506 Compare May 29, 2026 08:35
@laurmaedje laurmaedje changed the title Bump krilla and add support for multiple PDF standards Bump PDF and SVG cinematic universe, adding support for multiple PDF standards May 29, 2026
@laurmaedje laurmaedje removed the waiting-on-author Pull request waits on author label May 29, 2026
- bitflags was explicitly set to 2.10 because otherwise, a dependency resolution conflict did not resolve under `cargo update -p`
- hayro, resvg, usvg, roxmltree, and tiny-skia are versioned in lockstep with Krilla and have been updated
- Krilla gained the `pretty` configuration option, which we set to `true` to keep the old behavior
- hayro's `TypedIterator` does not implement `Iterator`, hence the removal of the `flat_map`.
@laurmaedje
laurmaedje force-pushed the bump-krilla branch 2 times, most recently from 945aba7 to 8a65357 Compare May 29, 2026 09:34
@laurmaedje
laurmaedje added this pull request to the merge queue May 29, 2026
Merged via the queue into main with commit 5345633 May 29, 2026
18 checks passed
@laurmaedje
laurmaedje deleted the bump-krilla branch May 29, 2026 10:36
@apcamargo

Copy link
Copy Markdown
Contributor

I don't think #7269 has been fully fixed. The newest version of krilla fixed the issue for SVGs, but not for PDFs.

ParaN3xus added a commit to ParaN3xus/typstyle that referenced this pull request Jun 9, 2026
ParaN3xus added a commit to ParaN3xus/typstyle that referenced this pull request Jun 9, 2026
ParaN3xus added a commit to ParaN3xus/tinymist that referenced this pull request Jun 9, 2026
ParaN3xus added a commit to ParaN3xus/tinymist that referenced this pull request Jun 9, 2026
ParaN3xus added a commit to ParaN3xus/tinymist that referenced this pull request Jun 10, 2026
Myriad-Dreamin pushed a commit to Myriad-Dreamin/tinymist that referenced this pull request Jun 13, 2026
Myriad-Dreamin pushed a commit to Myriad-Dreamin/tinymist that referenced this pull request Jun 13, 2026
Myriad-Dreamin pushed a commit to Myriad-Dreamin/tinymist that referenced this pull request Jun 13, 2026
Myriad-Dreamin added a commit to Myriad-Dreamin/tinymist that referenced this pull request Jun 15, 2026
Part of the Typst 0.15 cleanup stack. This slice covers export option
changes across PNG, SVG, PDF, HTML, CLI rendering, and typlite fixtures.

## Upstream Typst Changes

- [`typst/typst#6357`](typst/typst#6357) changes
page export and render option handling. Tinymist updates PNG/SVG page
export and CLI render option plumbing.
- [`typst/typst#8370`](typst/typst#8370) changes
merged SVG options. Tinymist updates merged SVG export construction.
- [`typst/typst#8371`](typst/typst#8371) changes
generic export options and remaining HTML export paths. Tinymist updates
export computations and HTML export callers to the new option shape.
- [`typst/typst#8294`](typst/typst#8294) changes
PDF standards error handling. Tinymist updates PDF export error
conversion for the new result type.

## Tinymist Changes

- Updates `tinymist-task` PNG, SVG, PDF, and HTML export computations to
the Typst 0.15 option APIs.
- Updates CLI render option forwarding for the new page/export option
surface.
- Updates typlite export tests affected by the Typst 0.15 export option
behavior.

---------

Co-authored-by: paran3xus <[email protected]>
Myriad-Dreamin added a commit to Myriad-Dreamin/tinymist that referenced this pull request Jun 15, 2026
Part of the Typst 0.15 cleanup stack. This slice covers export option
changes across PNG, SVG, PDF, HTML, CLI rendering, and typlite fixtures.

## Upstream Typst Changes

- [`typst/typst#6357`](typst/typst#6357) changes
page export and render option handling. Tinymist updates PNG/SVG page
export and CLI render option plumbing.
- [`typst/typst#8370`](typst/typst#8370) changes
merged SVG options. Tinymist updates merged SVG export construction.
- [`typst/typst#8371`](typst/typst#8371) changes
generic export options and remaining HTML export paths. Tinymist updates
export computations and HTML export callers to the new option shape.
- [`typst/typst#8294`](typst/typst#8294) changes
PDF standards error handling. Tinymist updates PDF export error
conversion for the new result type.

## Tinymist Changes

- Updates `tinymist-task` PNG, SVG, PDF, and HTML export computations to
the Typst 0.15 option APIs.
- Updates CLI render option forwarding for the new page/export option
surface.
- Updates typlite export tests affected by the Typst 0.15 export option
behavior.

---------

Co-authored-by: paran3xus <[email protected]>
Myriad-Dreamin added a commit to Myriad-Dreamin/tinymist that referenced this pull request Jun 15, 2026
Part of the Typst 0.15 cleanup stack. This slice covers export option
changes across PNG, SVG, PDF, HTML, CLI rendering, and typlite fixtures.

## Upstream Typst Changes

- [`typst/typst#6357`](typst/typst#6357) changes
page export and render option handling. Tinymist updates PNG/SVG page
export and CLI render option plumbing.
- [`typst/typst#8370`](typst/typst#8370) changes
merged SVG options. Tinymist updates merged SVG export construction.
- [`typst/typst#8371`](typst/typst#8371) changes
generic export options and remaining HTML export paths. Tinymist updates
export computations and HTML export callers to the new option shape.
- [`typst/typst#8294`](typst/typst#8294) changes
PDF standards error handling. Tinymist updates PDF export error
conversion for the new result type.

## Tinymist Changes

- Updates `tinymist-task` PNG, SVG, PDF, and HTML export computations to
the Typst 0.15 option APIs.
- Updates CLI render option forwarding for the new page/export option
surface.
- Updates typlite export tests affected by the Typst 0.15 export option
behavior.

---------

Co-authored-by: paran3xus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pdf Related to PDF export or PDF embedding.

Projects

None yet

6 participants