Questions tagged [pdf]
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"
733 questions
0 votes
1 answer
28 views
How to proportionally scale all pages in a PDF file to a given width without rotating them
I have some files, each of which consists of several pages. In most of the files the pages have no common width (and height). I'd like to define some common width and then scale all pages ...
7 votes
3 answers
864 views
Open pdf files in the background with fzf
I want to fzf through all the pdf files in a directory, open it and release the terminal. I tried PDF_READER=okular # or evince find -type f -name "*.pdf" -print | fzf --print0 | xargs -0 $...
1 vote
1 answer
81 views
Checking integrity of pdf-files from command line
I have a (visibly) damaged old CD with pdf-files. When trying to read them, non showed anything in the pdf-reader. Is there a way to check all of them via command line? It is tiresome, time-consuming ...
1 vote
1 answer
105 views
Crop pdf removing content cropped away
I do have a pdf that contains a drawing, a part of which I would like to extract. I am able to open the pdf in inkscape. However, it contains a group with 150k items. As far as I see, there are no ...
3 votes
3 answers
1k views
How do I extract some pages of a PDF into another PDF file?
I have a PDF file with multiple pages, and I want to write a command which extracts some of these pages into a new, separate PDF file; and the pages of interest are not necessarily a contiguous range. ...
1 vote
0 answers
68 views
With ghostscript, how to upscale a PDF file that is wider than taller so that the new width matches the width of a portrait A4 sheet of paper?
Let's take a PDF file that is slightly wider than taller, e.g., https://we.tl/t-iihJ3gMsrA : pdfinfo input.pdf | grep "Page size" Page size: 397.349 x 378.153 pts Let's try to upscale ...
-1 votes
2 answers
79 views
Fedora "Files" app gives wrong "Detailed Type" description
I'm on Fedora 41 (Gnome 47). I installed Foxit Reader to read PDFs, didn't like it, and uninstalled it. Now, the Detailed Type description in the Files program for all PDF documents is FoxitReader ...
0 votes
0 answers
30 views
Is there something which lets tesseract tell some OCR-quality measure?
I am on Ubuntu. Most of my scanned documents are German, English or French. This question is related to my other question at Is there an option to let pdfsandwich try 90° rotations automatically ...