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 ...

learn more… | top users | synonyms

2
votes
3answers
47 views

Convert text to fit the page (from commandline)

How to scale short texts (from one word, up to couple of short lines) to fit the page (nice to have choice if centred or aligned to left etc) ? (from commandline) Command: echo Audio | lpr -P ...
2
votes
0answers
17 views

pdfimages wont extract all images

I'm using pdfimages to extract images from a PDF File. I've counted at last 10 images. But the program will only extract 4. pdfimages -all file.pdf i Generates -rw-rw-r-- 1 victor victor ...
0
votes
1answer
23 views

PDF stamp with angle using cli

I use something like: pdftk in.pdf multistamp watermark.pdf output out.pdf to add watermarks to PDFs. The watermark.pdf I usually create in Inkscape. This is somewhat cumbersome, especially as I ...
0
votes
2answers
33 views

xreader closes after pdflatex compilation

I just installed Linux Mint 18 and began using the default pdf reader: xreader. However, sometimes when I leave a pdf open and compile it using pdflatex the program closes with this message: (...
1
vote
2answers
67 views

Looking for a PDF reader that handle large files

I run on Debian testing / GNOME and I have to work with a pdf file of ~500 pages. The default software, evince, cannot do the job, it is too slow because it reloads the page every time I scroll ...
2
votes
0answers
40 views

evince: Bad PDF font rendering

I have a few PDF files which suffer the problem shown in the image: (the blue part is mouse-selected, the right part in black is how the entire document looks!) I tried /prepressing and even -...
1
vote
2answers
22 views

Merge PDF document but with conditions

I make bus timetable booklets for drivers every day, and I have 4 PDF files: Special Instruction Sheet (Every day different) Bus daily timetable (which is always different) Bus Assistant daily ...
1
vote
1answer
35 views

How to merge pdf file so that each file starts with file name?

I have around 500+ files and I know how to merge them. But the problem is I would like to merge them in such a way that every file starts with the file neme in its first page. For example I have 3 ...
0
votes
1answer
74 views

Proper way to convert PDF to word from bash command-line

I need to convert 1K pdf files to doc on a debian server. I can convert a PDF to word using libreoffice commandline: libreoffice --headless --invisible --convert-to doc Sample-doc-file-100kb.pdf Or ...
0
votes
0answers
27 views

pdfmod: the culled output file is just as big as the input file

Situation. I started off with a 30 M large PDF document of about 300 pages and used pdfmod 0.9.1 to create an excerpt of about 30 pages. Problem. The output document is still 30M big in spite of ...
0
votes
0answers
12 views

PDF-PRESENTER-CONSOLE + XQuartz

I am wondering when I try to launch pdf file (slides) with PDF-PRESENTER-CONSOLE (https://pdfpc.github.io). The XQuartz is launching in the same time, but I only get a black screen without the slides. ...
0
votes
1answer
30 views

Is conversion between images and a text PDF possible

I have a scanned book as images compressed into a PDF file and I want to keep the book as is, but would like to extract the text from the images, so that it would be possible to select/copy it. Is ...
1
vote
1answer
46 views

How to pdfjam by Filename Numbering?

My files masi1.jpg masi2.jpg masi3-1.jpg masi4.jpg ... masi10.jpg masi11.jpg ... Command pdfjam *.jpg. Output: random. Expected output: as the list. There is no parameters in man pdfjam, only ...
3
votes
3answers
63 views

Convert output of script(1) to pdf

You supposedly can make some sort of low-tech replacement to screencasts of your terminal sessions with script(1): DESCRIPTION script makes a typescript of everything displayed on your terminal. It ...
1
vote
0answers
9 views

Export comments only from Okular Pdf-reader (tangling)

I use Okular annotations for my Pdfs and use the highlighting and underline-features quite frequently. From some documents it would be nice to export all the passages, that have been highlighted to a ...
2
votes
0answers
50 views

Cannot print pdf from applicaton, lp works fine

Running Linux Mint 17.3 and I have installed a RICOH MP C3003 printer using cups with drivers obtained from http://www.openprinting.org PDF. The speciality may be that I have to use locked print at my ...
3
votes
0answers
61 views

Unix way to extract vectorised image and its graph from a PDF file?

Data: one LHC thesis' page 16, where the picture is vectorised (most probably .eps). I am reviewing the answer here of the thread Software needed to scrape data from graph. I cannot find any tool ...
0
votes
2answers
87 views

Why does this gs command fail on --filename.pdf?

System: Ubuntu 16.04 64 bit. Code from here gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=newfile.pdf badfile.pdf Outputs: Usage: gs ... -- file.ps arg1 ... argn The expected ...
1
vote
0answers
54 views

collect and print multiple pages to single pdf file in linux

I have to print multiple documents from different applications (browsers, pdf readers etc) and print to a pdf file. What I want to do is collect the documents when i 'print' from these applications ...
3
votes
1answer
102 views

PDF output with correct spaces in code examples

I have been using rst2pdf and pandoc to convert the following reStructuredText into PDF: This is a python example:: def main(): print("Hello World!") if __name__ == '__main__': main(...
32
votes
7answers
5k views

How do I create a blank PDF from the command line?

I recently needed a single blank PDF page (8.5" x 11" size) and realized that I didn't know how to make one from the command line. Issuing touch blank.pdf produces an empty PDF file. Is there a ...
3
votes
0answers
49 views

How to extract hocr file from PDF?

I'm creating an OCR-ed PDF through tesseract: tesseract input.tif out pdf But I also need the hocr and txt files. Recent versions of tesseract already solved this but because it requires compiling ...
1
vote
3answers
125 views

Why 'cat' can't read content of pdf files?

When tried the command cat < 1.pdf it printed a very large output, which was totally incomprehensible to me. The content of 1.pdf was abc. The output was like this: ÀýÓëöûcÎ=ÉÐÎTaüÍ8]ö¹mg:=Rú*@...
2
votes
0answers
25 views

How do I trace why printing pdf from Ghostscript vs Evince is different?

I'm trying to get a better sense of how the "Print to File" option works on Linux Mint. Basically, when I open a PDF with Evince and print it to PDF, the output is different from the original, and ...
0
votes
0answers
12 views

llpp shortcut for duplicating window

I'm using llpp to view PDFs. I'd like to have a keyboard shortcut (like Ctrl+n) which will open the current PDF in a new window. Any ideas?
3
votes
3answers
125 views

Recover just deleted scanned pdf without unmounting

I have just deleted a scanned pdf file. I'm trying to recover it with scalpel. The problem is that scalpel will recover many deleted files and names them numerically (e.g. 0001.pdf, 0002.pdf, ... ...
3
votes
1answer
54 views

Command line: crop PDF to paper size (Fedora)

Tools like pdfcrop (from texlive) are great but they seem to be too focused on removing margins/white space. I'm trying to crop a set of letter pages (8.5x11 inches) to a size of 6x9 inches. I want ...
1
vote
1answer
79 views

How do I reduce the size of a pdf file that contains images?

I have a pdf file that contains images and I want to reduce its size in order to upload it to a site with a size limit. So, how can I reduce the size of a pdf file from the command-line?
1
vote
0answers
19 views

Is there any way to recover unsaved annotations in Okular after system crash

Other popular PDF software such as Adobe Reader or Skim (on OS X) offer a functionality to restore your annotations after a system crash even if you haven't saved the file manually yet. Does Okular ...
1
vote
0answers
38 views

How to preserve clearness while converting jpg to pdf file?

I would like convert a jpg file (a photo taken of two pages of a book) to a pdf file, with the goal of making the pdf file look like pages of a regular ebook file in terms of page size and ...
3
votes
2answers
65 views

detect if PDF file is made from images

I'm trying to pre-process a huge amount of PDF files, many of them not actually text but images in order to move them to a proper location to OCR processing. The problem is I've tried to detect if ...
2
votes
0answers
22 views

epstopdf loose greek symbole

I'm generating a pdf using gnuplot this way: set term postscript color eps enhanced 15 set out '| epstopdf --filter --outfile=SD.pdf' replot set out Whereas the eps file generated contains the ...
3
votes
2answers
37 views

Concatenate PDFs but extend pdf's to be even number of pages

I want to concatenate a bunch of PDFs but for printing purposes I would prefer that empty pages are added to each document that have an odd number of pages. Can I do this with PDFTK?
0
votes
1answer
33 views

Create a pdf from which images cannot be extracted [closed]

I would like to make a PDF (of a Libre-Office document) that has the following properties: The images it contains cannot be extracted and saved; It contains hyperlinks that should be keep on working....
1
vote
0answers
33 views

Is there a common way to render out pdf files in a human-readable format on the command-line and keep the general layout?

I'm imagining something deeper than pdftotext (part of poppler-utils), because what I was imaging would be possible, would be to retain most of the layout on a virtual page, e.g. pipe this through a ...
1
vote
1answer
59 views

Is Evince a secure way to view malicious PDF?

I've seen that PDF's can contain malicious Javascript that operates in the background and can do bad things. This is primarily a problem for Adobe Acrobat. However, is this problem also for Evince? I ...
0
votes
0answers
44 views

How to split a A4 Letter page pdf into 2 4x6 pdfs

I get pdfs in A4 Letter size in portrait orientation, they have 2 sections top and bottom each 4x6. Right side of pdf is blank. I need to spit them into 2 pdfs 4x6 or 2 pages of the same pdf.. Ive ...
1
vote
0answers
42 views

How to remove zoom information from a PDF bookmark

I have a PDF file with bookmarks (aka index and document outline), which seem to specify the zoom in which the document is displayed after the link is followed. I know this because when I view the ...
1
vote
1answer
47 views

pdftoppm (v 3.0) very slow to convert thumbnail in newer version

On one of our local servers, I use pdftoppm (v 0.18.4) to capture the first page of a pdf file as a 1200px wide jpg. It's very quick, and works very well. I'm doing it like so: pdftoppm -f 1 -l 1 -...
0
votes
2answers
170 views

Conversion of PDF to PS

I'm quite new to shell scripting. I need to create a script or reuse a script that converts PDF to PS (Post Script) files, is there anyway this can be done?
1
vote
0answers
16 views

pdf viewer with two-sided option

I am looking for a pdf viewer, that is able to show two pages side-by-side, like they would be printed in a book. (Just like Preview does on Mac OS X) I am using GNOME on Debian and already looked ...
1
vote
1answer
36 views

Highlights cover text in Evince

How can I make Evince show this text properly? The highlights have been taken with PDF XChange Editor, and other software (qpdfview for example) shows them correctly. Evince is v. 3.10.3. This is how ...
2
votes
3answers
1k views

Pdf reader that supports XFA forms (while Adobe Reader is not supported in recent Linux)?

XFA forms are features of a pdf file involving options to complete fields in certain documents - in many cases official documents. These options may open a calendar, for example, in order to select ...
1
vote
1answer
155 views

Write PDF metadata from the file name using Exiftool or PDFtk

I have thousands of PDF files named in the format Author Year Title of the book The first two spaces are relevant: they make a break between the Author, the year and the title. The title could ...
1
vote
2answers
150 views

Create one pdf out of multiple (selected) images

To convert multiple images to pdf this script will do that for all images inside a folder: #!/bin/bash # for f in *.png; do convert ./"$f" ./"${f%.png}.pdf" done But each image is converted into ...
3
votes
1answer
35 views

Is it possible to send an xpdf process a signal that causes it to reload the file being displayed?

On page change, redraw, or Reload command, xpdf will reload the file it is currently displaying. Is it possible to cause xpdf to reload the file by sending a signal? Which signal? (I am basically ...
1
vote
0answers
35 views

concat pdf pages after pdfcrop

I ran pdfcrop to crop the whitespace from pdf. As expected, the result is a pdf with pages of varying sizes. Is there any way to "squash" all these pages so they nicely fit in A4 (or any other format) ...
1
vote
2answers
64 views

How are GNU documents in PDF formats created?

Some GNU software doesn't offer PDF files for its manual, e.g. http://www.gnu.org/software/findutils/manual/find.html Some does, and their PDF files have bookmarks/outlines, e.g. https://www.gnu.org/...
4
votes
2answers
223 views

Printing two pages per sheet from the command line

Say I start off from a PDF document, say of 12 pages, viewed with evince. To produce another PDF of 6 sheets, with a page setup of two pages per side, I normally use the "Print to File" device ...
1
vote
0answers
119 views

CUPS-PDF is very slow

I'm using CUPS-PDF printer to produce PDF files. Everything works properly, but problem is the time which CUPS-PDF printer needed to complete a job. For a PDF file with 25 pages CUPS-PDF need more ...