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
Hi there,
I really love this template! I would like to have the possibility to directly include a stamp using the library without having to use external tools (especially since I am using typst in my browser and don't want to do the workflow of downloading the document, looking up the syntax, looking up the download place of the stamp, opening it again, print it...
I achieved this in a rather hacky way by putting place(top + left, image("stamp.svg")) into the background property at this line Would you be open to such an addition? (Obviously in a less hardcoded way)
The text was updated successfully, but these errors were encountered:
I would love to have this option built-in. Unfortunately, I haven't found a good solution for this yet.
Deutsche Post only distributes stamps in the form of PDFs and as far as I can tell, the only sane way to process stamps from them is to use the DIN A4 Normalpapier (Einlegeblatt) format. That means the best solution would be for Typst to have a built-in function to overlay PDFs, just like you can do in LaTeX:
For that to work, you would first need to convert the PDF from Deutsche Post to an SVG. The best solution that I could find was the Inkscape CLI:
$ inkscape TestPrint.pdf -o TestPrint.svg
Now you're able to include the picture in Typst, just like you suggested. This is the resulting address box.
For comparison, here's the resulting address box using qpdf.
Not a bad result, considering this is what the SVG version would look like in earlier Typst versions when I started this project.
Despite the result, I'm still kind of not satisfied with the SVG version. I'm open for any suggestions on this topic. I'm also attaching my benchmark stamp from Deutsche Post.
Hi there,
I really love this template! I would like to have the possibility to directly include a stamp using the library without having to use external tools (especially since I am using typst in my browser and don't want to do the workflow of downloading the document, looking up the syntax, looking up the download place of the stamp, opening it again, print it...
I achieved this in a rather hacky way by putting
place(top + left, image("stamp.svg"))
into thebackground
property at this line Would you be open to such an addition? (Obviously in a less hardcoded way)The text was updated successfully, but these errors were encountered: