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

10
votes
7answers
8k 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? ...
1
vote
0answers
26 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) ...
2
votes
2answers
1k views

How to mount a .jpg centered into a .pdf (using defined page size and borders)?

I'm looking to convert a .jpg into a .pdf, so that the .jpg is positioned at a certain location: centered on (say) an A4 page, with a minimum border of 30 pixels all around between image and page ...
2
votes
3answers
88 views

Searching a keyword in multiple pdf files

I want to search for a specific keyword in multiple pdf file using pdftotext command. Normally we can search inside a single pdf file using the following command: pdftotext file.pdf - | grep keyword ...
2
votes
2answers
239 views

Using Evince instead of Okular for Alpine (MIME configuration for PDF viewers)

Within Alpine, if I hit enter on a PDF attachment, my system brings up Okular. I would prefer if it brought up Evince, because that's the PDF viewer I normally use. How can I do that? This is clearly ...
1
vote
1answer
195 views

Splitting a PDF file with Ghostscript results in one extra blank page

I try to split the pages of one PDF file into a separated one-page PDF files. This command does the job so far: gs \ -q \ -dQUIET \ -dSAFER \ -dBATCH \ -dNOPAUSE \ -dNOPROMPT \ ...
1
vote
2answers
43 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. ...
3
votes
2answers
44 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
49 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 ...
9
votes
5answers
2k views

How to merge 2 PDF files with interleaving pages order?

I've got a double-side-printed multipage document to scan with a linear bulk scanner. So, as the result I get 2 PDF files: one containing all odd pages and the second containing all even pages. I need ...
0
votes
1answer
21 views

How to convert the manpages of git and its subcommands into a pdf file?

There are two places that I can find manpages of git and its subcommands: https://git-scm.com/docs, and the links to all the git subcommands ...
38
votes
6answers
21k 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 ...
1
vote
1answer
63 views

CentOS 7 Encrypt a PDF

I've recently upgraded our server from CentOS 6 to CentOS 7 and I am having issues getting pdf encryption working on it. On CentOS 6 I installed libgcj and then the pdftk package. I could then ...
5
votes
1answer
1k views

Configuring CUPS PDF writer for PDF/A output?

Can the PDF pseudo-printer in CUPS be configured to emit PDF/A files? If so, how to do it? I'm using CUPS 1.5.3-5 and CUPS-PDF 2.6.1-6 as provided by Debian Wheezy/7.0. Despite CUPS PDF Format - ...
1
vote
0answers
32 views

Extract coordinates of matching text in PDF

Basically I want to grep a string in a PDF and get the coordinates of the matching result(s). I already use pdftotext to do the opposite, namely to extract some text given its coordinates. In ...
2
votes
1answer
43 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 ...
4
votes
0answers
64 views

How to convert this chm file to pdf? [closed]

I want to convert a chm file to a pdf file. Calibre's command ebook-convert ebook-convert 1.chm 1.pdf only converts the first 7 pages of the chm file into a pdf file, while the chm file has much more ...
0
votes
0answers
14 views

Formatting lpr output to use a particular font and svg background

I have a somewhat peculiar request. I would like to be able to produce "retro" PDF output of text files (for subsequent printing or e-mailing). So I would like to have some sort of processor which ...
2
votes
0answers
21 views

Set default program for one specific file in Nemo

There's a lot of questions on how to change the default program for a specific file extension, but I want to know if I can change the default program for a specific file. Reason: Some PDFs don't ...
1
vote
0answers
60 views

How do I convert the complete AMD64 Gentoo Handbook into a PDF from the command-line?

I have been writing shell scripts for converting the AMD64 Handbook of Gentoo Linux to PDF and this is my current shell script: function ghand { # Input 1 is the architecture # Input 2 is the ...
2
votes
2answers
27 views

Opening PDFs in existing window

At the moment, I can open a PDF in Evince (say) by typing $ evince document1.pdf Then the command $ evince document2.pdf starts a second instance of Evince and opens the new document in that ...
25
votes
6answers
29k 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 ...
2
votes
1answer
51 views

Script to mail PDF files [closed]

It's a wrong question..please delete itn
6
votes
4answers
3k views

Text annotations and image additions to PDF file using free software

I'm mostly interested in annotating a PDF file with text at a predetermined position. GUIs and command line utilities are both Ok, but only free software solutions, please. However, I included image ...
10
votes
3answers
2k 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 ...
15
votes
4answers
7k views

Is there some sort of PDF to text -converter?

I need PDF files to text so I can search over them in bulk from commandline. Is there some converter for Ubuntu, OBSD or similar distro? Perhaps related post, OCR with ubuntu here.
0
votes
0answers
42 views

Why is JavaScript embedded in a PDF opened with Firefox not executed?

I have embedded a simple JavaScript (app.alert messagebox) in a PDF using Didier Stevens pdf-tools. Then I open that PDF in Firefox in Linux and the Javascript is not executed. The messagebox is not ...
0
votes
0answers
22 views

Installing swftools with dependencies on a server with no internet connection?

I am trying to install a package on a Red Hat server which does not have internet connection by which I could directly download and install dependencies. Where can I download the swftools package ...
2
votes
0answers
96 views

Auto reload of modified file looses pan position in Zathura

I use Zathura as my PDF reader. It is great but I have an issue with the auto-reload. When I compile a .tex file, its associated .pdf file is automatically reloaded in Zathura and correctly displays ...
3
votes
0answers
46 views

How can I calibrate Zathura's zoom levels to my monitors?

I'm using Zathura (using the MuPDF plugin) to review various layouts for printing. It's important to me that I'm looking at things approximately the same size as they will come out on paper. I realize ...
0
votes
1answer
102 views

Password protect a PDF file with AES 256

I can't find a free/open-source software that password protects my PDFs with AES 256. pdftk just offers 128-bit strength.. In fact I didn't find any other tool that encrypts PDFs. What tool may I ...
3
votes
1answer
83 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 ...
8
votes
2answers
1k views

Is there a way to flatten a .pdf image from the command line?

In GIMP, I can import a .pdf, and use the GUI to flatten it (if it was made with many layers) by selecting "Flatten Image" in the "Image" dropdown menu. I can then export the .pdf with a new ...
0
votes
0answers
30 views

Why can't I remove annotations in this PDF document?

I'm using GNOME "Document Viewer" for annotating PDF files. I can add annotations but am unable to remove them, despite following the instructions here. ...
0
votes
1answer
95 views

Overlay text in PDF via command line

The following command produced the result of the following image using convert, where an overlay box containing the letter "A" was layered over the PDF: convert online_gauss.pdf -fill white ...
9
votes
4answers
11k views

How to convert a color pdf to black-white?

I'd like to transform a pdf with some coloured text and images in another pdf with only black&white, in order to reduce its dimensions. Moreover, I would like to keep the text as text, without ...
0
votes
0answers
23 views

Why is my ghostscript output bigger when converting to sRGB?

I have a PDF (made with inkscape) with very high-resolution (4K) images that I'm compressing using ghostscript. When I use this line: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 ...
1
vote
0answers
23 views

Print pdf like paps, but with actual fonts?

So I convert a piece of text to PDF like so: INPUT="this text goes to a pdf file" paps $INPUT 2>/dev/null | ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true - out.pdf Which works ...
1
vote
0answers
20 views

How to cut a really large raster image into smaller chunks?

I have a large poster as a pdf-file. I need to create a raster image from it (for instance because there seems to be no pdf viewer which allows me to zoom sufficiently to see the contents). So I ...
6
votes
3answers
4k views

Storing Okular PDF annotations and metadata in the PDF itself

The PDF viewer Okular (part of KDE desktop) has lots of nice features and supports lots of file formats. One of the things I like about it is the comments and annotations. Unfortunately, all of the ...
-1
votes
1answer
28 views

Create Automate Task to download and search in PDF and notify

I want to create an Automate Task to hourly download a PDF from a specific URL and then search for certain text like "6256896" and then if there was the text inside the PDF,notifies me for example ...
0
votes
1answer
72 views

alternative of pdfinfo to display author and title

I am using pdfinfo to display the title name and author of pdf files. But for some pdf files, it's not working. It's showing all other info like creation date,modification date,pagesize etc except ...
0
votes
1answer
96 views

Modifying the search result of grep

Normally, we can search a keyword in a list of pdf files using the following command: for file in *pdf; do pdftotext "$file" - | grep keyword done Now, from the search result, If I want to find ...
1
vote
0answers
49 views

Run itext script as cups filter

I have an itext script to apply some customisations to pdf files. These need to be done on-the-fly. I can easily do it this way : java -cp ".:itext5.jar" pdflayout input.pdf | lpr -P CP800/print ...
3
votes
0answers
39 views

How can OCRed text be preserved while converting between djvu and pdf files?

Suppose a pdf file has OCRed text. How can we convert it to a djvu file and pass the OCRed text to the djvu file? Conversely, if exchange "pdf" and "djvu" in the above? Thanks!
0
votes
1answer
37 views

How to create a custom command in Linux for a wine pdf application?

I'm using Debian GNU/Linux 7.8 and would like to have PDFXCview.exe as the standard application to open pdfs. Opening a pdf using a small executable file including #!/bin/bash wine ...
2
votes
2answers
192 views

Batch rename according to number of pages in pdf file

I have a lot of papers in pdf files (and also other type of files in the same folder). I'd like to rename them using the pattern <current file name>[<number of pages>].pdf But after ...
4
votes
1answer
2k views

Convert pdf to a different page size (US Letter -> A4)

I'm trying to print a simple US Letter document, but for some reason, I just cannot manage to fit it properly onto A4 when printing multiple pages per-list. I have tried converting the pdf using: gs ...
6
votes
2answers
1k views

What program will save a fillable PDF?

There are several nice fillable PDFs available for the RPG hobby. These have boxes that number values can be entered and simple formulas are calculated throughout the sheet. I'm finding that the ...
4
votes
2answers
828 views

Extract even-numbered and odd-numbered pages of a PDF into two separate PDFs

I have a PDF that consists of several hundred pages of bilingual text. Since I need to use OCR on each language separately, I want to grab the even and odd pages and make two separate PDFs, using ...