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

3
votes
2answers
298 views

How to change the color of all highlights in a PDF file?

I want to change the color of every highlight in a PDF file (without having it do for every highlight manually). Preferably with a command line command. Here is an example PDF with a highlighted line....
1
vote
1answer
30 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 ...
41
votes
6answers
23k views

Split pages in pdf

I have a scanned pdf file which has scanned two pages on one virtual page (page in pdf file). The resolution is with good quality. The problem is I have to zoom when reading and drag from left to the ...
0
votes
1answer
36 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
26 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 ...
31
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 ...
27
votes
6answers
33k views

convert images to pdf: How to make PDF Pages same size

I did something like convert -page A4 -compress A4 *.png CH00.pdf But the 1st page is much larger than the subsequent pages. This happens even though the image dimensions are similar. These images ...
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
28 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 ...
3
votes
0answers
55 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 ...
10
votes
4answers
3k views

Open signed PDFs in Linux

We have some PDF files which are secured by a .pfx certificate. On Windows we can use Adobe Reader to read these PDF files (with previously imported certificate). I've googled for a long time but I ...
1
vote
1answer
39 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 ...
2
votes
0answers
70 views

How to make a PDF portfolio from merged files

Adobe Acrobat has a feature where PDF files can be merged into a single portfolio document. The various PDF files can be set out with a template, and clicking on its icon views the appropriate PDF. ...
10
votes
7answers
10k views

How can I add a signature .png to a PDF in Linux?

I have a scanned copy of my written signature and I need to apply it to some documents in the signature block. I used to do this on Windows all the time but I now have only Linux. Is this possible? ...
3
votes
3answers
58 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 ...
48
votes
12answers
38k views

How can I grep in PDF files?

Is there a way to search pdf files using the power of grep, without converting to text first in Ubuntu?
1
vote
0answers
7 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 ...
6
votes
4answers
4k views

Split PDF into documents with several pages each

There are several resources on the web explaining how one can split a PDF into many files with on page per file. But how can you split them into chunks of, say, five pages each? I have looked into ...
2
votes
1answer
143 views

List named destinations in a PDF

How can I list the named destinations in a PDF file? Named destinations are the formal name for what you might call anchors. Major browsers jump to the named destination foo when you follow a link to ...
1
vote
2answers
690 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 ...
2
votes
0answers
39 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 ...
10
votes
6answers
1k views

Are there any full featured pdf readers that integrate comment function?

I'm needing reading some research papers whose formats are almost pdf.However I cannot find a good pdf reader which can make some notes while reading. Currently I use xournal however there seems not ...
0
votes
2answers
77 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 ...
4
votes
1answer
448 views

Printing on custom paper size / adding paper size to PPD

I have some trouble when printing to custom paper sizes. Currently, I want to print something to a 21cm x 21cm card. So, I created a document with this size in libre office and exported it to PDF. ...
1
vote
0answers
42 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
96 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(...
5
votes
1answer
353 views

Can Zathura's “dual” page mode use a page offset?

When viewing PDFs that are setup for print, I often want to view facing page spreads. Typically PDFs are typeset such that the first page of the file/part/chapter always starts on a right page so ...
0
votes
1answer
32 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....
10
votes
1answer
1k views

generate a hyperlinked table of contents and insert into existing PDF

I have an existing PDF (without any corresponding source file), and a text file which is a list of items referencing sections within the PDF file, along with a page number for each item. I would like ...
8
votes
1answer
9k views

How do I insert a blank page into a PDF with ghostscript or pdftk?

I have a PDF file that needs a blank page inserted into it every so often. The pattern is unpredictable, so I need a command that will allow me to fit one in wherever necessary. How can i do this?
2
votes
0answers
34 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
2answers
500 views

problem with text added to pdf under Xournal after exporting to pdf

Under Xournal, I add some text to a pdf file, and then I export to a pdf file. In the exported pdf file, the text I added is shown correctly, and selectable, but when I copy and paste the selected ...
20
votes
7answers
43k views

How to convert TXT to PDF?

I want to convert .txt files to .pdf. I'm using this: ls | while read ONELINE; do convert -density 400 "$ONELINE" "$(echo "$ONELINE" | sed 's/.txt/.pdf/g')"; done But this produces one "error" -- ...
3
votes
3answers
118 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, ... ...
1
vote
3answers
110 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
24 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
10 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
1answer
46 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
64 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
15 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
37 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
55 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
21 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
32 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?
1
vote
1answer
37 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 -...
1
vote
0answers
28 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
52 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 ...
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 ...
0
votes
0answers
42 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 ...
19
votes
4answers
24k views

View pdf file in terminal

I want to see pdf files available on our cluster rather than copying them into my local machine and than visualize. Please tell me how can i do this.