114 Commits

Author SHA1 Message Date
Tobias Schmitz
1552cdf0f8
WIP [no ci] 2025-06-11 21:05:18 +02:00
Tobias Schmitz
ff8f9768c6
feat: pdf.artifact element 2025-06-11 16:12:29 +02:00
Tobias Schmitz
c9bb9e8981
feat: [no ci] mark artifacts 2025-06-11 14:08:20 +02:00
Tobias Schmitz
9d788cd73d
feat: [WIP] allow specifying alt text for links
skip-checks:true

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Wed May 28 17:47:35 2025 +0200
#
# On branch pdf-accessibility
# Your branch and 'origin/pdf-accessibility' have diverged,
# and have 11 and 5 different commits each, respectively.
#
# Changes to be committed:
#	modified:   crates/typst-ide/src/jump.rs
#	modified:   crates/typst-layout/src/flow/distribute.rs
#	modified:   crates/typst-layout/src/modifiers.rs
#	modified:   crates/typst-library/src/foundations/content.rs
#	modified:   crates/typst-library/src/layout/frame.rs
#	modified:   crates/typst-library/src/model/bibliography.rs
#	modified:   crates/typst-library/src/model/footnote.rs
#	modified:   crates/typst-library/src/model/link.rs
#	modified:   crates/typst-library/src/model/outline.rs
#	modified:   crates/typst-library/src/model/reference.rs
#	modified:   crates/typst-pdf/src/convert.rs
#	modified:   crates/typst-pdf/src/link.rs
#	modified:   crates/typst-render/src/lib.rs
#	modified:   crates/typst-svg/src/lib.rs
#	modified:   tests/src/run.rs
#
2025-06-11 13:55:35 +02:00
Tobias Schmitz
f43599c3da
feat: [WIP] include links in tag tree
skip-checks:true
2025-06-11 13:55:35 +02:00
Tobias Schmitz
211feb91ff
feat: [WIP] write tags
skip-checks:true
2025-06-11 13:55:35 +02:00
Tobias Schmitz
c8f0e86e75
feat: [draft] generate accessibility tag tree for headings
skip-checks:true
2025-06-11 13:55:35 +02:00
Max
44d410dd00
Use the shaper in math (#6336) 2025-06-10 14:44:38 +00:00
Tobias Schmitz
26c19a49c8
Use the infer crate to determine if pdf embeds should be compressed (#6256) 2025-05-12 08:07:43 +00:00
Laurenz Stampfl
96dd67e011
Switch PDF backend to krilla (#5420)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-01 14:42:52 +00:00
Eduardo Sánchez Muñoz
38213ed534
Use u64 instead of usize to store counter and enumeration item numbers, so behavior does not vary from 64-bit to 32-bit platforms (#6026) 2025-03-24 18:16:33 +00:00
Caleb Maclennan
bd531e08dc
Bump rustybuzz (and adjacent crates) (#5407) 2025-03-10 12:45:08 +00:00
Laurenz
69c3f95705
Bump MSRV to 1.83 and Rust in CI to 1.85 (#5946) 2025-02-24 12:28:01 +00:00
Laurenz
12dbb012b1
Revert adding flatten-text to image (#5789) 2025-02-02 19:25:58 +00:00
frozolotl
3eb6e87af1
Include images from raw pixmaps and more (#5632)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-31 09:56:25 +00:00
Laurenz
6b9b78596a
Don't generate accessors for required fields (#5680) 2025-01-10 16:54:11 +00:00
Laurenz
e2b37fef33
Revamp data loading and deprecate decode functions (#5671) 2025-01-09 09:34:16 +00:00
Niklas Eicker
0a374d2380
Embed files associated with the document as a whole (#5221)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-08 09:38:34 +00:00
Emmanuel Lesueur
257764181e
New curve element that supersedes path (#5323)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-18 15:58:57 +00:00
Zhuofeng Wang
54cee16c31
Add timezone to PDF's default timestamp. (#5564)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 09:43:01 +00:00
Laurenz
1346385255
Rename pattern to tiling (#5590) 2024-12-17 09:25:27 +00:00
Laurenz Stampfl
67ef6066f4
Add support for converting text in SVGs to paths (#5390) 2024-12-08 17:06:25 +00:00
Laurenz
497446944c Add document.description field 2024-12-04 10:12:07 +01:00
Laurenz
f8f2ba6a5f Rename Document to PagedDocument 2024-12-04 10:12:07 +01:00
Laurenz
d40c8ab6ab
Compile-time PicoStr interning (#5491) 2024-11-29 15:03:08 +00:00
Abdul-Rahman Sibahi
b969c01b28
Replace once_cell's Lazy as much as possible (#4617)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 11:52:11 +00:00
Laurenz
be7cfc85d0
Split out four new crates (#5302) 2024-10-27 18:04:55 +00:00
Laurenz
6257e4d6cf
More robust glyph drawing (#5159) 2024-10-10 11:59:00 +00:00
PgBiel
2a40eb518c
Fix excluded PDF pages being written (#5133) 2024-10-07 08:23:59 +00:00
Laurenz
60f9f66950
Serialize and Deserialize for PdfStandard (#5108) 2024-10-03 19:40:42 +00:00
Laurenz
10eff1d6d5
Tweak default ignorable fix (#5105) 2024-10-03 16:16:44 +00:00
Laurenz
0343e038d3
Fix default ignorables (#5099) 2024-10-03 13:00:58 +00:00
Laurenz
a0093ad8a7
Minimal PDF/A support (#5075)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-10-01 09:24:18 +00:00
emilylime
1a24b29d86
Remove Cases from NumberingPatterns (#5059) 2024-09-30 15:22:46 +00:00
Laurenz
788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
Martin Haug
ada9650a06
Write the font name for Type 3 fonts (#5070) 2024-09-30 07:54:08 +00:00
Martin Haug
66147979ba
Do not write empty destination name tree root (#5066) 2024-09-30 07:53:23 +00:00
Josh Soref
ca1f749c08
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-26 17:32:55 +00:00
Bruce Mitchener
f283995c3d
Reduce typo count. (#4923) 2024-09-22 12:14:56 +00:00
Sébastien d'Herbais de Thun
ecad396cc8
Nuked custom PDF Oklab colorspace code (#4871) 2024-09-02 13:16:33 +00:00
Max
cefca7a7d8
Fix typos (#4784) 2024-08-20 15:12:12 +00:00
Laurenz
d97d71948e
Fix document set rules (#4768) 2024-08-16 10:53:12 +00:00
Laurenz
9909f12d4f
Bump to Rust 1.80 (#4681) 2024-08-05 10:54:30 +00:00
Florent Michel
c4dd6fa062
Adjust the number of color components written to the pdf according to the color space (#4568) 2024-07-22 15:05:22 +00:00
HydroH
1d74c8e8bf
Add non-zero and even-odd fill rules to path and polygon (#4580)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-22 14:24:29 +00:00
Y.D.X.
9b001e2112
Use texts of the first occurrences for /ToUnicode CMap (#4585) 2024-07-20 14:13:06 +00:00
Laurenz
0c37a2c233
Support transparent page fill (#4586)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-07-20 12:51:24 +00:00
Eric Biedert
ac322e342b
Save and restore graphics state for every frame (#4496)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-14 14:02:50 +00:00
Laurenz
45366c0112
Bump Rust in CI (#4445) 2024-06-24 20:11:11 +00:00
Laurenz
0d93ccd4bf
Compress CMaps (#4406) 2024-06-16 10:05:13 +00:00