lossless img to pdf

This commit is contained in:
lhark 2021-08-27 20:19:02 +02:00
parent ace145a64d
commit 10a8b4c991

4
how_to
View file

@ -234,6 +234,9 @@ PDF :
convert [jpg|png|txt|pdf|...] output.pdf convert [jpg|png|txt|pdf|...] output.pdf
# Might need to tweak /etc/ImageMagick-7/policy.xml # Might need to tweak /etc/ImageMagick-7/policy.xml
# https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion # https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
Create pdf from images losslessly:
pacman -S img2pdf
img2pdf -o <out.pdf> <in1.jpg..inN.jpg>
Fill form & annotate: Fill form & annotate:
For well formatted interactive forms: For well formatted interactive forms:
evince evince
@ -245,6 +248,7 @@ PDF :
inkscape inkscape
Batch mode with pdftk: Batch mode with pdftk:
# http://www.myown1.com/linux/pdf_formfill.shtml # http://www.myown1.com/linux/pdf_formfill.shtml
# https://blog.nemirwen.me/posts/batch-pdf-form-filling
Finding the fields: Finding the fields:
# pdftk needs java-commons-lang # pdftk needs java-commons-lang
pdftk form.pdf dump_data_fields_utf8 > fields.flds pdftk form.pdf dump_data_fields_utf8 > fields.flds