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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

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"

2
votes
1answer
30 views

Error using ps2pdf

I used to work on linux in a virtual Box and now I'm using a computer with Ubuntu 16.04. I have some ps files I need to convert to pdf and I used to run the command ps2pdf file.ps file.pdf in my ...
0
votes
0answers
11 views

mixing `lp -o raw` with other options

The problem is that our printers have very bad printing quality by default, printing quality of pdfs can be improved by using lp -o raw. Is it generally possible to mix other options, especially -o ...
2
votes
0answers
31 views

How to write romanian special characters with groff?

I've got myself into experimenting with groff and from the start I found out the romanian special characters I type in vim are all fine (I ran setxkbmap ro), but get messed up in the pdf export. ...
1
vote
1answer
17 views

PDF metadata editor - GUI - FEDORA

I can't find a graphical pdf metadata editor for Fedora (Fedora 30). I found "PDFMtEd" which doesn't work in Fedora because it needs "exiftool" but I can't install that. Is there any solution to this?...
1
vote
0answers
31 views

Ubuntu for Windows — Can't open PDF files via xdg-open

My default application for opening PDF files is Adobe Acrobat XI Pro. I would like to be able to open PDF files using this program via the Windows Subsystem for Linux. Currently when I run xdg-open ...
0
votes
0answers
19 views

How can i reduce the size of CentOS OS for it to still work? [duplicate]

So I have a clean installation of CentOS 7 on a virtual machine. The thing is I need to shrink the size of the thing to the lowest and still be able to have javascript supporting browser and a PDF ...
0
votes
0answers
13 views

Convert multi pages PDF to multi images with Inkscape command line

I would like to convert a PDF of X pages into X images with Inkscape command line. I know how to do it with convert : convert myfile.pdf -density 300 -alpha off export/myfile-%02d The result will ...
0
votes
0answers
25 views

Merge multiples PDF with different width into one page

I have three pdf files containing the front page (firstpage.pdf), the last page (lastpage.pdf) and the spin (tranche.pdf) like this: So, the goal is to concatenate the three files into only one ...
0
votes
0answers
13 views

How do I append whitespace to single-page pdf?

Consider the following two pdf files. $ pdfinfo coreBasedAPI.pdf Creator: TeX Producer: pdfTeX-1.40.18 CreationDate: Thu Mar 21 15:56:46 2019 PDT ModDate: Thu Mar 21 15:56:46 ...
2
votes
0answers
24 views

PDF is corrupted after compressing with Ghostscript

Is there a way to revert a PDF after it is compressed? Every PDF is getting corrupted when it gets compressed with our script, which runs gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/...
0
votes
0answers
18 views

Non rendered pdf/raw pdf?

If you have an html-file you get two versions, a raw format with tags and warts or the rendered version. What would be the equivalent in the case of pdf? How could you work with the raw form, for ...
0
votes
1answer
14 views

CUPS-PDF not outputting

I have set up a CUPS print server on Raspbian that prints to cups-pdf. I can print to the pdf printer without any trouble from the CUPS settings page. I am not receiving files when I print from ...
0
votes
0answers
6 views

PDF reader with searching word in selected text

I'm reading a 1000+ pages PDF file (for example, a draft of C++ standard document), using evince. This works well, but I often want to search a word in selected text rather than the whole file. For ...
0
votes
0answers
27 views

Preview Pane for PDF Documents in File Manager

Is there a program (e.g., file manager or PDF viewer) that provides a split view having a folder view and preview pane for PDF documents (ideally with the ability to scroll through the document like ...
0
votes
0answers
23 views

Split pdf based on keyword

Is there an utility that would split PDF file based on keyword? I can only find split by pages (e.g. QPDF). I can also see pdfgrep, but I don't know whether this has been already combined in some ...
2
votes
0answers
26 views

Replace Scanned Text with OCRed Text in PDF

I have a scanned book as a PDF. When viewed in Evince, the book appears as it did when scanned, with old fashioned fonts that appear as they were scanned. However, Evince recognises the letters as ...
0
votes
1answer
28 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 ...
0
votes
1answer
24 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
vote
1answer
49 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
39 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
60 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
60 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
58 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
39 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
113 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
44 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
65 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
82 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
131 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
38 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
57 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
58 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
257 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
76 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
133 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
156 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
26 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
30 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
237 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
62 views

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

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 into a CSV file, i.e. <filename>,<number_of_pages>. I have ...
0
votes
1answer
59 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
1k 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
91 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
239 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
56 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
501 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
121 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
32 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
39 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 ...
1
vote
1answer
41 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 ...