Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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"

0
votes
1answer
9 views

img2pdf batch script

I currently have over 10K folders. Each folder has .png and .jpg images that need to be turned into .pdf files. Files are numerically in order already. I am looking for speed. I can currently cd into ...
-1
votes
0answers
24 views

Appreciating the concept behind file reading from terminals [closed]

I am starting out in Operating Systems module and these question really caught me off-guard. These questions have no solutions, and I do not know what purpose they serve in the module. (a) In Windows,...
0
votes
1answer
16 views

Open pdf as tab in running instance of xpdf

I am really fond of xpdf but would like to have a tab-based workflow. If I open a pdf with xpdf file.pdf and then open another pdf with xpdf file2.pdf the scond file is opened in a new instance of ...
-1
votes
0answers
24 views

Restore PDF accidentally rewrote [duplicate]

We accidentally rewrote some pdfs with this code : f = open(path_file, 'r', encoding='ISO-8859-15') content = f.read() f.close() .... f = open(path_file,'w', encoding='ISO-...
1
vote
1answer
23 views

how do I copy or create a new pdf file without password-protection?

Sometimes I get password-protected pdf files from people with passwords in the mail. It becomes a pain to remember them. The pdf file are usually version 1.4 documents, this information I am sharing ...
0
votes
0answers
33 views

Change text color in PDF files

I want to change some Text-Coloring by regex search in one or more PDFs. for example i want to change the color of all appearances of "A[0-9]+.[0-9]" like A120.1, A600.0 and so on. is it even possible ...
1
vote
2answers
29 views

How to set mupdf-gl as a default application with a fixed resolution

I am using Linux Mint Tara (xfce). I would like to use mupdf-gl as a default application for viewing pdf files and automatically set 150 dpi as the resolution, i.e. when I double click a pdf file, it ...
0
votes
2answers
40 views

Extract Part of a Single PDF Page from Bash

In order to extract a part of a PDF page on a Gnu/Linux machine I use the following command: gs -sDEVICE=pdfwrite -o out.pdf -g2300x2300 input.pdf The -g...x... option lets me choose coordinates on ...
0
votes
2answers
50 views

Is there a way to search (grep/find) a specific word within multiple pdf files located on a specific drive?

I am trying to locate a client's pdf file that was saved on an external backup drive, which contains a little over 8000 pdf files and hundreds of folders. For example, if I want to search all pdf ...
1
vote
1answer
26 views

Rearrange pdf pages (swap odd pages and even pages)

I have a pdf and I am in need to replace even and odd pages. If I want to be more specific, I must replace (2n-1) page numbers with (2n) ones (1-->2, 2-->1, 3-->4, 4-->3, and the like). How should I ...
0
votes
2answers
81 views

PDF reader with option to search multiple words at the time/match any of the words

Are there any PDF readers with advanced search options - searching several words at a time to be exact? Adobe has it by the name match any of the words as explained here. Regular (standard) search ...
1
vote
1answer
20 views

Ranger: Add Foxit pdf reader to rifle.conf

I've Zathura as my default pdf viewer which is fine. I've also installed Foxit Reader but it doesn't show up when I try to open any pdf file in ranger with r key. I tried adding following line in my ...
2
votes
1answer
55 views

“Place” Letter Sized PDF to Larger pdf at specific position

Lulu is a print on-demand service. Part of the creation process is to upload a cover. The "cover" is 1 page that has the dimensions 17.25 inches wide by 11.25 inches high. There is a 0.125 "bleed area"...
0
votes
1answer
39 views

Merging PDF files with similar names

I have a folder populated with PDF files in this format: SI-T-xxxxxx.pdf SI-T-xxxxxx-sol.pdf SI-T-yyyyyy.pdf SI-T-yyyyyy-sol.pdf and so forth, with the middle part being digits. I want a way for ...
2
votes
1answer
110 views

How to print table of contents of a pdf?

I have a pdf kinda-book file which has a table of contents as metadata in file but they are not listed on any page of the document. I want to print the file with table of contents, or print the table ...
0
votes
0answers
31 views

How to fix text opacity issues when converting a PDF to black and white?

I'm trying to convert a PDF to black and white but the colored text becomes almost unreadable. Is there a way to fix this ? Or a better way to make the conversion ? Command used : gs -sDEVICE=...
1
vote
1answer
45 views

Convert scanned image to PDF with fixed DPI

Imagine I have a bunch of JPEG files that I have scanned using a known resolution (300 dpi in this case). However the JPEG file has some additional margin at the border because the scanner's area is ...
2
votes
0answers
37 views

Groff long umlaut

I'm Hungarian and I want to use groff to write good-loking pdf files, the problem is even though I used: groff -k -ms test.ms -T pdf > test.pdf eventhough -k took care of the? é,á,ü,ö characters ...
1
vote
3answers
118 views

Where is metadata for PDF files? Can I insert metadata into any PDF file?

I have many files of music; with the program mp3Tag, I had organized all of it. I have the correct metadata as it allows. I am looking for a free software that does the same, but for PDF files.
0
votes
1answer
44 views

Convert an A4R (A4 lanscape) scanned jpeg, to A4R (A4 lanscape) pdf

I have have scanned an A4R paper sheet to a 2048x1443 jpg file. EDIT1 : It's already rotated to landscape (2048x1443). END OF EDIT1 Now if I try convert it with this command : $ convert -page A4R ...
7
votes
1answer
91 views

How to correctly display Polish diacritic symbols in groff?

I'm playing around with groff and I wanted to generate a pdf from the following test.ms .TL Tytuł .AU Imię Nazwisko .NH Wstęp .PP Pierwszy paragraf. Jakieś informacje, żeby były polskie znaki. .PP ...
1
vote
0answers
103 views

mutool pdf split and order

I have a searchable pdf scan of a book that is two book pages per pdf page, flipped counterclockwise. I want to split the pages so that its one page per page. After reading several other threads here ...
0
votes
0answers
24 views

Crop a non-standard size pdf on the bottom on the command line

I have a non-standard sized PDF (used for an 8cm-printer) and want to crop any white-space on the bottom (thus I want to keep the 8cm width and remove the bottom white space, in fact similar as you ...
1
vote
0answers
13 views

How to see qpdfview annotations in other pdf readers?

I am using qpdfview to create annotations to a PDF. These however cannot be seen in Acrobat Reader, the software the OP to which I'm sending the document is using. How can I produce a document that ...
3
votes
0answers
138 views

RGB color space not permitted on grayscale

I tried to convert PDF to PNGs $ convert linkedList.pdf -quality 300 output.png convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `output.png' @ warning/png.c/...
2
votes
1answer
60 views

Extract the number of pages of PDFs recursively and dump them to a CSV

Apologies for the fairly trivial question but I am a Linux beginner. I need to get a list of PDFs in various sub-folders of a directory structure and the number of pages of each PDF file. All saved ...
0
votes
1answer
33 views

Problem with pdfposter

Using PHP and TCPDF I create A3 portrait PDF document that I need to split in two A4 lanscape. So the top of the A3 must became page 1 of the A4 and the bottom of the A3 must became page 2. As PHP+...
6
votes
2answers
659 views

Convert PDF to images in 1920x1080

i want to convert a PDF to PNG images using convert. The images must fit the 1920x1080 ratio by having a ?x1080 ratio, and have the best quality. Here are many options i can use with convert : https:/...
1
vote
0answers
64 views

What tool can be used to change the orientation of a pdf page without using the `Rotate` key value?

On page 78 of the PDF Specification 2008, it mentions that the PDF's page object has an integer key value Rotate that you can set to tell the software how the page should be displayed. This value ...
1
vote
1answer
161 views

Bash: search for keywords PDF files and return pages [duplicate]

Hopefully somebody can help me out with this, I'm looking for a small script which does a keyword search in a PDF file (actually a folder of PDF files), and it needs to return all pages including the ...
0
votes
1answer
41 views

Why pdftops gives extra padding but pdf2ps doesn't?

I tried both pdftops and pdf2ps to convert a pdf figure(no text) into eps. pdf2ps created a ps figure same to the original one, but the ps file produced by pdftops contains an extra white padding/...
6
votes
1answer
338 views

How shall I generate a pdf file instead of a ps file using enscript?

I was wondering why the following generates a ps file not a pdf file? How can I make it generate a pdf file? Thanks. $ enscript -B -PPDF code/bloom.c -o bloom.pdf [ 2 pages * 1 copy ] left in bloom....
2
votes
3answers
110 views

Mupdf: finding hyphenated words in PDF file

When I search for a word in a PDF file using mupdf. It, only, finds the whole word. For example, searching for the word “meaningless” will find the whole word: This is a short, staggeringly ...
1
vote
1answer
26 views

QPDF renders streams as gibberish

I have been trying to use a variety of programs to render a multilingual pdf (Hebrew/English dictionary) machine readable. QPDF (as well as pretty much every other program) renders the text as ...
1
vote
0answers
34 views

Windows PDF viewer interprets hyperlinks incorrectly from Linux converted PDF?

I am operating on a RPi Model 3B with Jessie OS and Python version 2.7.9. I am using XlsxWriter (ver1.1.0) to write an .xlsx file and then converting it to PDF using LibreOffice's conversion code, as ...
0
votes
0answers
9 views

pdftohtml renders multilingual text as gibberish

I am attempting to convert a multilingual text (a Hebrew-English dictionary) from pdf to html using, you guessed it, pdftohtml. However the pdfs that are being outputted are entirely gibberish, with ...
1
vote
1answer
33 views

Directing output from command to folder

I am using pdfdetach utility which would extract embedded objects in PDF files and dump them to the current folder. Output can be anything such as .doc files or others. All I want to do is that ...
4
votes
2answers
229 views

Printing two pdf on one sheet without scaling

I have a pdf document which covers half of an A4 page. Is there a way to duplicate the text/images of that document, such that I get a single page A4 document (pdf file) with twice the orginal content,...
0
votes
1answer
62 views

pdf-files: results of “pdfid”

Didier Stevens has produced a programme which is called "pdfid" (https://blog.didierstevens.com/2009/03/31/pdfid/ and https://blog.didierstevens.com/programs/pdf-tools/#pdfid). He says: "I’ve ...
4
votes
1answer
48 views

Safely handling PDFs and other ebook formats on Linux [closed]

I'm running Arch Linux and using Okular for opening PDF files and FBReader for other ebook formats (Epub, Mobi, etc.). Simply put, here's my question: Assuming some of those documents come from ...
0
votes
1answer
202 views

What is this GhostScript error? “/undefined in /BXlevel”

At first I thought this might have been a missing font issue but as far as I can tell from the output, GS is finding the font just fine.. Any hints as to what the problem might be? $ /usr/bin/gs -...
2
votes
1answer
98 views

Qpdf view text in text editor

I have used qpdf with qpdf --qdf --object-streams=disable orig.pdf expanded.pdf As reference from https://unix.stackexchange.com/a/109177/306249 I can see all objects in text editor. But I cannot ...
1
vote
0answers
31 views

Is there a tool for searching keywords super fast in many pdfs files?

I have a bunch of technical books, and I have been using pdfgrep for a while, but it takes substantial amount of time for searching all. can somebody recommend me of a cli tool for searching in pdf ...
3
votes
0answers
126 views

How to accept cookie on the wkhtmltopdf command?

I am using the Linux command wkhtmltopdf to convert the HTML page to a PDF file for a report, but the page showing the cookie privacy note on the website which doesn't look good. To convert the ...
1
vote
2answers
142 views

How can I get the page numbers only of a pattern in a pdf file, regardless if the pattern is multiline?

I find the page numbers of a multiline pattern in a pdf file, by How shall I grep a multi-line pattern in a pdf file and in a text file? and How can I search a string in a pdf file, and find the ...
0
votes
0answers
25 views

How shall I grep a multi-line pattern in a pdf file and in a text file? [duplicate]

In the output of less my.pdf, a string image not available appears multiple times, for example: ... Lastly, what remains to ^L image not available ^L Implementations and Systems I ...
0
votes
1answer
37 views

How can I search a string in a pdf file, and find the physical page number of each page where the string appears?

Given a PDF file, I would like to search for a string in its text, and I know pdfgrep can do that. I further would like to have the physical page number of each page where the string appears (as ...
1
vote
0answers
158 views

Zathura shortcut/feedkeys configuration for recolouring

I used to have the following in my .zathurarc config, which used to allow me to change the colour scheme by pressing Shift-1, Shift-2, Shift-3, Shift-4, to switch to original colour scheme, amber on ...
6
votes
2answers
113 views

How to reverse-engineer a CUPS printer/print job?

I have quality issue with PDF printing local (CUPS) vs. Google Cloud Printing. (GCP is better, with CUPS I get wrong size, wrong characters, wrong fonts. So I want to know what CUPS does!) The ...
0
votes
1answer
107 views

using Find -exec to rename a file with the grepped contents of the file

I'm attempting to get a list of files with find and then use pdfgrep to get a string from the file, then rename the file with that string. The commands broken down are: find . -name "*...