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
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) ...
1
vote
2answers
44 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
46 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 ...
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 ...
1
vote
1answer
72 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 ...
1
vote
0answers
35 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
45 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
65 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
63 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 ...
3
votes
0answers
50 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
106 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 ...
0
votes
0answers
24 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 ...
3
votes
1answer
88 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
0answers
31 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
97 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 ...
0
votes
0answers
25 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
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 ...
2
votes
1answer
52 views

Script to mail PDF files [closed]

It's a wrong question..please delete itn
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
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
73 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
97 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 ...
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 ...
0
votes
1answer
38 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
196 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 ...
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
3answers
70 views

Splitting a pdf-file into 2 pdf's (one contining equal pages etc…) [duplicate]

I have a 600 pages long pdf file. I would love to be able to split it in different pdf files, one containing odd-numbered pages: 1,3,5,7,9,11 etc. and another file containing even-numbered pages: 2, ...
0
votes
0answers
114 views

ubuntu document reader for acrobat pdf forms

I have an acrobat pdf form that I need to fill. I am using ubuntu 14.04 trusty. Is there a reader that can handle this, the default (evince) doesn't seem to work. thanks
0
votes
1answer
95 views

Sign a PDF file to verify integrity and validity

I've been asked to distribute electronic certificates (they were originally paper), in a PDF format, but I'd like to sign them with gpg or something similar so users can upload them to my site to ...
0
votes
0answers
25 views

How can I comfortably highlight PDF files without KDE?

Okular is great but has many KDE dependencies. Xournal is not very suitable for highlighting. Evince doesn't have any "editing" functionality.
0
votes
2answers
145 views

convert a html book to a pdf file?

How can I convert a html book (consisting of a number of html files linked to each other) to a pdf file on Ubuntu? Hope the resulting pdf file can have bookmarks according to the structures of the ...
0
votes
0answers
524 views

Can't download all of specified webpages by using wkhtmltopdf

i try to download the webpages specified as a list of urls in a text file urls, and convert and merge them to a single pdf file, by running: $ wkhtmltopdf $(cat urls) all.pdf Loading pages (1/6) ...
3
votes
2answers
298 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?
3
votes
0answers
137 views

Replace a image in a PDF using command line

I need to process some PDF files. The task consists in exchange a given image file by another. My first problem is how to replace a PDF image from command line in a batch process. Next I'll try to ...
2
votes
0answers
60 views

Using interface file with LP and txt2pdf utility to transform print file to PDF

Our legacy application uses LP commands on Solaris 5.10 to print report files to printers throughout our org. However, now we have a remote location that won't have access to a printer (at least not ...
3
votes
1answer
85 views

Extract completed slides of a slide show PDF

PDF files of slide show presentations distributed by my lecturers often contain a huge number of pages, because each animation step results in an new page (sometimes 20 pages per slide). This is nice ...
-5
votes
2answers
150 views

PDF: Using Terminal [closed]

I tried creating a PDF file using terminal . I wrote "vi New.pdf". It created the file. Now that when i trying to double click and open it . It said something like :- The file "New.pdf" could not ...
1
vote
0answers
105 views

How do I encrypt (password protect) a PDF without encrypting the metadata?

It seems that the encryption provided by pdftk(1) is the level supported by Acrobat 5 (I added a password to a PDF file using pdftk then opened it in Acrobat Pro 9 and examined the security settings; ...
1
vote
1answer
97 views

Convert Blog to PDF or Epub Book

I want a command or script to collect all the posts on a given blog and convert them into a PDF and/or Epub book without needing to be the owner of the blog. This website allows users to convert blogs ...
0
votes
1answer
47 views

Why my rescued PDFs forms are empty?

First, I'm no expert, so don't assume I know much about data recovery. I'm using ddrescue and photorec to try to rescue files from a USB stick. It's a 32GB stick that has no more partition information ...
2
votes
1answer
141 views

How can I rasterize all of the text in a PDF?

You know when you have a pdf, which is a scan of a document and it's a really huge file, because it just stores the picture of the scanned document? And there are OCR tools which can help you to ...
0
votes
2answers
317 views

Download an article with cURL given a dynamic download link

I'm trying to download this published journal article using cURL. It's the main page of an open access, so there should be not problems for anyone to see/download the article. I then extract the ...
4
votes
1answer
85 views

How to convert ęąśćżńł TXT to PDF with enscript?

I have problem converting a file to PDF. I create the file with echo ęąśćżńł > text and convert: enscript -O text -o - | ps2pdf - out.pdf However, out.pdf has an encoding problem:
5
votes
2answers
1k 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 ...
2
votes
0answers
335 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. ...
3
votes
1answer
74 views

tiff2pdf coloured

I converted some scanned .tif files to .pdf using tiff2pdf (libtiff version 4.0.3 ) with JPEG compression. Viewing them in evince showed a coloured (pinkish) background. My initial thought was that ...