Г. Ейск, улица Армавирская, дом 45, этаж II, кабинет № 221
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:pdf [2023/09/19 07:19] – created - external edit 127.0.0.1 | wiki:pdf [2024/10/22 13:42] (current) – serw | ||
---|---|---|---|
Line 2: | Line 2: | ||
[[wiki: | [[wiki: | ||
+ | |||
+ | Страница на моем веб-сайте полиграфии «Ея»: [[https:// | ||
+ | |||
+ | ===== Convert a directory of JPEG files to a single PDF document ===== | ||
+ | |||
+ | < | ||
+ | convert *.jpg -auto-orient imagemagick.pdf | ||
+ | </ | ||
+ | |||
+ | img2pdf - lossless conversion of raster images to pdf | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | < | ||
+ | img2pdf --output out.pdf page1.jpg page2.jpg # https:// | ||
+ | img2pdf --output Untitled.pdf *.jpeg # https:// | ||
+ | img2pdf img1.tif --pagesize 107mmx150mm --imgsize 107mmx150mm --fit shrink --output file1.pdf # | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Наиболее часто встречается: | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | < | ||
+ | img2pdf --output Untitled.pdf *.jpg # https:// | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Создание ПДФ из директории JPG и последующее OCR. | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | < | ||
+ | img2pdf --output Untitled.pdf *.jpg && ocrmypdf -l eng+rus Untitled.pdf 'SerW - OCRmyPDF.pdf' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Extracting embedded images from a PDF ===== | ||
+ | |||
+ | < | ||
+ | pdfimages -all in.pdf /tmp/out # sudo pacman -S poppler | ||
+ | </ | ||
+ | |||
+ | Source: [[https:// | ||
===== Replace all font glyphs in a PDF by converting them to outline shapes ===== | ===== Replace all font glyphs in a PDF by converting them to outline shapes ===== | ||
Line 10: | Line 54: | ||
brew install ghostscript | brew install ghostscript | ||
alias gsu = 'gs -o Untitled-with-outlines.pdf -dNoOutputFonts -sDEVICE=pdfwrite Untitled.pdf' | alias gsu = 'gs -o Untitled-with-outlines.pdf -dNoOutputFonts -sDEVICE=pdfwrite Untitled.pdf' | ||
- | gs -o Untitled-with-outlines.pdf -dNoOutputFonts -sDEVICE=pdfwrite Untitled.pdf | + | gs -o Untitled_with-outlines.pdf -dNoOutputFonts -sDEVICE=pdfwrite Untitled.pdf |
</ | </ | ||
Line 40: | Line 84: | ||
===== ocrmypdf.readthedocs.io ===== | ===== ocrmypdf.readthedocs.io ===== | ||
+ | |||
+ | Оптическое распознавание английского и русского машинописного текста в отсканированных .pdf-документах. | ||
< | < |