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

1
vote
0answers
33 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 ...
2
votes
3answers
2k 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 ...
0
votes
2answers
113 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
14 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 ...
7
votes
1answer
3k 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 -...
1
vote
1answer
121 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 ...
13
votes
8answers
14k views

Add and edit bookmarks to pdf

By getting metadata from some pdf files with bookmarks by pdftk, I observe the format of bookmarks in pdf metadata. So I am guessing that with pdftk, it is possible to add and edit bookmarks of a pdf ...
3
votes
1answer
33 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
2answers
110 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
3answers
461 views

How can I shuffle pages from a pdf file in a random order?

I would like to shuffle the pages of a pdf document in a random order. How can this be done?
6
votes
2answers
2k views

How to convert libreoffice ODT to PDF in bash

I am using libreoffice under CentOS 6. I can convert ODT files to PDF with: libreoffice --headless --convert-to pdf *.odt but the problem is that it only works when no document is open in libreoffice....
10
votes
1answer
660 views

How do I 'unbook' a pdf

I have a pdf file that was made into a booklet format. It is meant to print on A4 paper in landscape orientation; here are two pages in the pdf, which should correspond to four pages in the actual ...
1
vote
0answers
34 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
3answers
109 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
282 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
550 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 \ -dAutoRotatePages=/...
1
vote
2answers
60 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/...
3
votes
2answers
156 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
103 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
3k 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
28 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 https://www.kernel.org/pub/software/scm/git/docs/git.html,...
1
vote
1answer
240 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
94 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 ...
3
votes
0answers
80 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
20 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
28 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
146 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
31 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 ...
2
votes
1answer
63 views

Script to mail PDF files [closed]

It's a wrong question..please delete itn
8
votes
4answers
5k 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 ...
16
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
64 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
27 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
148 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
106 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
246 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 ...
8
votes
2answers
2k 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 filename....
0
votes
0answers
66 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. https://help.gnome.org/users/evince/stable/...
0
votes
1answer
215 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
13k 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
36 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 -dPDFSETTINGS=/...
1
vote
0answers
43 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 great,...
1
vote
0answers
37 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 ...
7
votes
3answers
5k 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
60 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
123 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
103 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
56 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 ...
4
votes
0answers
43 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!