You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's very convenient to add file attachments to the PDF itself. Not only Acrobat Reader, but also many open source readers support it.
Reacted by Ludwig Austermann, Complex2-老爹, Andrew Voynov, Armin Wehrfritz, Rafael Villar Burke (Pachi), abel1502, Luukas Pörtfors, Noah Jutz, Yumekui, Laurent BIZE and 3 more
This seems like a good-contribution, the relevant sections in the PDF 1.7 spec are 12.5.6.15 and 7.11.4, these features would have to be upstreamed into pdf-wirter before typst can support this.
Reacted by miliog, Zaitara, Ludwig Austermann, Complex2-老爹, Victor L. and Florian Obernberger
#5221 adds support for file embedding associated with the whole document, so I'll close this as resolved! There is still the separate feature of file attachments associated with specific parts of the document, but those can have their own issue. I won't open an issue right away, but if someone has a use case for that, feel free to.
Reacted by Andrew Voynov, Manuel, sitandr, Laurent BIZE, Florian Obernberger and Janus
Activity
[-]PDF attachments[/-][+]PDF file attachments[/+]tingerrr commentedon Oct 26, 2023
This seems like a good-contribution, the relevant sections in the PDF 1.7 spec are 12.5.6.15 and 7.11.4, these features would have to be upstreamed into pdf-wirter before typst can support this.
awehrfritz commentedon Feb 8, 2024
As far as I can tell,
pdf-writerhas support for this already: typst/pdf-writer@ba040acNiklasEi commentedon Oct 15, 2024
An early attempt at implementing file attachments associated with the document as a whole: https://github.com/NiklasEi/typst/tree/file-embedding
There are many workarounds and how I implemented this is surely not the intended way. I would be glad for any constructive feedback 🙂
The document
renders to this PDF with a dummy "factur-x.xml" file with
typst compile embed.typ --pdf-standard a-3b(see the mini Typst project in the tests directory). The file is a valid PDF/A-3 according to an online PDF/A validator and my document viewer can find and download the attachment.laurmaedje commentedon Jan 8, 2025
#5221 adds support for file embedding associated with the whole document, so I'll close this as resolved! There is still the separate feature of file attachments associated with specific parts of the document, but those can have their own issue. I won't open an issue right away, but if someone has a use case for that, feel free to.