Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 22558

PDF (Portable Document Format) is an open standard for fixed format document exchange. Use this tag to indicate questions involving files in this format and also when software is generating/processing this format. When possible and possible relevant indicate the version of the PDF document (as retrieved from the file properties, or using "file document_name.pdf"

3
votes
Best way I found out there, without quality loss, removes shadows, noise, text from the next page bleeding through etc: 1) First convert pdf to individual images pdfimages combined_ocr.pdf page 2 … "#000000" {}.jpg 3) This to make a pdf file out of every jpg image without loss of either resolution or quality: ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf 4) This to concatenate the …
answered Feb 3 '18 by Eduard Florinescu
0
votes
Unfortunately convert changes the image before so to have minimal loss of quality of the original jpg you need to use img2pdf, I use this commands: 1) This to make a pdf file out of every jpg image … without loss of either resolution or quality: ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf 2) This to concatenate the pdfpages into one: pdftk *.pdf cat output combined.pdf 3) And last I …
answered Jan 13 '18 by Eduard Florinescu
0
votes
to_do.pdf burst output pg_%04d.pdf ls ./pg*.pdf | xargs -L1 -I {} inkscape {} -z --export-dpi=300 --export-area-drawing --export-png={}.png rm *.pdf ls ./p*.png | xargs -L1 -I {} convert {} -quality 100 … -density 300 - {}.jpg rm *.pdf ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf rm *.jpg pdftk *.pdf cat output combined.pdf …
answered Feb 8 '18 by Eduard Florinescu
0
votes
I assume you mean tp not convert it on the disk, you can convert them to stdout and then grep it with pdftotext. Grepping the pdf without any sort of conversion is not a practical approach since PDF … is mostly a binary format. In the directory: ls -1 ./*.pdf | xargs -L1 -I {} pdftotext {} - | grep "keyword" or in the directory and its subdirectories: tree -fai . | grep -P ".pdf$" | xargs -L1 …
answered Feb 8 '18 by Eduard Florinescu
19
votes
Best and easyest way out there is to use pypdfocr it doesn't change the pdf. pypdfocr is a python module link here. pypdfocr your_document.pdf At the end you will have another …
answered Feb 3 '18 by Eduard Florinescu
3
votes
Unfortunately convert changes the image before so to have minimal loss of quality, i.e. the quality of the original jpg, you need to use img2pdf, I use this commands: 3 1) This to make a pdf file … out of every jpg image without loss of either resolution or quality: ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf 2) This to concatenate the pdfpages into one: pdftk *.pdf cat output …
answered Jan 13 '18 by Eduard Florinescu
2
votes
The best solution was mutool see above: sudo apt install mupdf-tools pdftk the split: mutool poster -y 2 input.pdf output.pdf but then you need to rotate the pages left: pdftk output.pdf cat 1- …
answered Apr 8 '18 by Eduard Florinescu
4
votes
As student's answer said pdfimages is a good option. From my experience both gs and convert export to poor quality regardless if you specify the right dpi. But if the pdf has multiple layers per … output pg_%04d.pdf ls ./pg*.pdf | xargs -L1 -I {} inkscape {} -z --export-dpi=300 --export-area-drawing --export-png={}.png First command splits all pages second command converts page by page to …
answered Feb 7 '18 by Eduard Florinescu