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
2answers
74 views

How to set password for pdf files?

I need to password protect my PDF file(s), because I am going to send them through email and I want anyone who would view my PDF file(s) to be prompted for a password. How can I add a password to a ...
0
votes
1answer
29 views

How can this pdf file be created from this website?

This pdf file seems created from this site. I check the information of the pdf file by pdfinfo the pdf file: Creator: pdftk 1.12 - www.pdftk.com Producer: itext-paulo ...
2
votes
1answer
37 views

Recover pdf from extracted images

Here is the information of images in a single-page pdf file: $ pdfimages -list p1.pdf page num type width height color comp bpc enc interp object ID ...
2
votes
1answer
56 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
2answers
56 views

Extract words instead of letters from pdf files?

I use less which uses pdftotext to extract text from pdf files, by less my.pdf. In this way, some words' letters are separated by spaces from a pdf file. CH APTE R 2 5 T E ST IN G WE B A P P ...
2
votes
1answer
54 views

Exchange odd and even pages in a pdf file?

Is it possible to exchange odd and even pages in a pdf file, e.g. page 1 and page 2 exchange, page 3 and page 4 exchange, ..., assuming the pdf file has even number of pages? Can it be done using ...
1
vote
1answer
28 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
0answers
22 views

Show annotations in PDF

I have a PDF file that has annotations in them. Comments that are in a box show up, but removed words or other insertions do not appear. I don't need to add any annotations; I just need to view them. ...
3
votes
1answer
42 views

Combine parts of pages of a PDF document

I have a PDF which has some content split onto 2 pages. The first part takes less or equal the bottom half of the first page and the second part takes less than the top half of the second page. For ...
1
vote
0answers
16 views

zathura : auto reload but looses zoom

I use zathura as my pdfreader. It is great but I have some issue with the auto-reload. When I compile a .tex file, it's associated .pdf file is automatically reloaded in zathura and correctly displays ...
1
vote
1answer
60 views

What happened to ePDFview‽

In my older Fedora installation (It's Fedora 20 right now, but I've been updating it since well before FC18), I'm using a rather minimal PDF viewer, called "ePDFview". It seems to be gone from more ...
0
votes
2answers
33 views

How do I download a PDF, then output a chunk of text?

My city water bill is emailed to me every month as a link to the current PDF hosted on their server. So I can easily download this PDF any time I want. How do I take that PDF and extract my account ...
1
vote
1answer
35 views

Print a PDF with scaled content

I have a 150 page long pdf file where individual pages are shrunk. I need to magnify the file upto 900% to read anything on the screen (and it is readable at that magnification). I would like to print ...
1
vote
1answer
34 views

Vi keys in Xpdf?

The Xpdf man page says that it can be customized to work with Vi style keybindings: Previous versions of xpdf included a "viKeys" X resource. It is no longer available, but the following ...
0
votes
0answers
61 views

How to install evince on CentOS Linux release 7.0.1406

On my CentOS Linux release 7.0.1406 the PDF reader doesn't render image colours correctly that's sent from MacOSx/CS Adobe Acrobat. Is there a way to install Evince with Yum on this particular ...
1
vote
1answer
23 views

Does okular/poppler support following intra-document cross-references in PDF files?

Using docbook and Apache FOP I can create PDFs that contain cross-references. For example, the Table of Contents of a book looks like this: Chapter 1 Introduction........................12 Using ...
2
votes
2answers
23 views

How do I export visiting cards onto one page?

I have a script to generate visiting cards for the entire team from an svg template. It spits out a single pdf the size of a visiting card, like so: +-----------------+ | o o | | ...
2
votes
1answer
49 views

All PDF applications mix the width and height of a PDF file

I have this PDF file created by scanning. When viewing it in any PDF viewer, the page's width is greater than the height. But it seems like all the PDF applications I have tried mistake the width as ...
2
votes
2answers
56 views

Find duplicate PDF files by content

Some journals generate a different PDF for each download. APS for example stores time and the IP address in the PDF. Or there is a paper version with hyper links and one with text references. How ...
2
votes
1answer
54 views

How to tell if the hidden text layer in a pdf file is from OCR or not? [closed]

I have seen some pdf files after OCR have very accurate text (both in terms of recognition rate, and in terms of alignment of text to the image). What Unix/Linux tools help me tell, if the hidden ...
4
votes
1answer
51 views

Avoid bloating file size when removing OCRed text from a pdf file?

I use pdfimages and convert recommended by Anthon to remove the OCRed text of a pdf file, and the size of the pdf file changes from 29MB to 373MB. My first step is split the pdf file into a pbm file ...
2
votes
3answers
70 views

How can I convert a scanned PDF with OCRed text to one without OCRed text?

I have a scanned PDF file, with low-quality OCRed text. I would like to have a PDF file without the OCRed text. How can I convert a scanned PDF with OCRed text to without OCRed text? I am thinking ...
0
votes
1answer
33 views

How can I remove a clickable bar with hyperlink in each page of a pdf file?

Can we remove a long narrow clickable bar(with some hidden text and link) at the bottom of each page of this pdf file? When never I click it, it will tries to open a website in my browser. I prefer ...
0
votes
1answer
38 views

Page size after pdfcrop doesn't match my calculations?

I'm running: $ pdfcrop --margins '-36 -59 -49 -35' tmp.pdf tmpo3.pdf But the page sizes before and after don't match with my calculation. My calculation shows that the page sizes in points after ...
0
votes
1answer
72 views

Merge and export OCRed text into and from a pdf file

Given a pdf file, and a html file in hocr format for the OCRed text, can we merge the OCRed text into the pdf file, so that the new pdf file can be searchable for text? For example, I have a pdf by ...
4
votes
1answer
114 views

Ways to convert and combine image files into a pdf file?

I have about 190 image files (png and jpg) in a directory. For more information, each image has 2500 x 3072 pixels, and about 500KB. I use the command convert from ImageMagik to convert and combine ...
1
vote
2answers
95 views

Which is the software package for creation of PDF documents on Debian and OpenBSD OSes?

I have installed the software package called evince. It only opens and reads PDF files but does not create them. What software package should I install on boxes that run Debian (or OpenBSD) that can ...
5
votes
1answer
69 views

Sterilize PDF files

I use Linux on my desktop, but I got suprised after checking random PDF files on my machines with Virustotal. One of them contained a "PDF.Exploit.CVE_2008_2992". So PDF files can have malicious ...
4
votes
0answers
32 views

Compare PDF documents with embedded links?

diffpdf shows the visual differences in two PDF documents. Since some PDF documents include hyperlinks is there a diff that handles those also?
0
votes
0answers
19 views

Print the page count within the PDFs in a directory to a output txt file [duplicate]

The need has been to identify the total page count of all the PDF files we have in a repository. For that, I was able to come up with the following script. However, I'm now stuck with this situation: ...
1
vote
0answers
48 views

How to force custom color scheme when using Inverted Colors in Evince?

As pointed out in Software to read PDFs with inverted colors (Windows), instead of having a very white on very black color scheme (which induces a very nasty contrast) it is often preferable to use a ...
0
votes
0answers
45 views

use middle click scroll not zoom

How to change middle mouse button (when pressing) behavior in Okular? Currently, when I press it, it zoom in/out. But I want to use it for fast scrolling, something like in firefox or evince.
2
votes
1answer
67 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
92 views

Fix PDF margins for two-sided printing

I have a free PDF book on which every page has a very large margin on the right-side. I would like to print it two-sided and bind it to a book using an online printing service. The problem is that I ...
1
vote
0answers
28 views

How can I workaround or fix a printer offset x0y?

OK, so I have an old office reject printer, the OKI B4350. Works great with CUPS and Evince except for one thing: often it prints the page all messed up: offset from the upper left corner and ...
3
votes
1answer
175 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 ...
7
votes
1answer
330 views

Combine multiple PDF files into one (arranged in a matrix)

Having a set of PDF files, lets say: in-01.pdf, in-02.pdf, in-03.pdf, ... I would like to combine all of them into a single one, forming an M x N matrix. The command montage allows for doing so (M ...
0
votes
1answer
62 views

Annotation does not work correctly in Okular

I hava a pdf file. In okular 0.17.2 under Ubuntu 12.04, I have found two problems: added inline note (by F6, and then 2) will be rotated 90 degree counterclockwise. added underline (by F6, and ...
0
votes
0answers
22 views

What does multistamp do with pdftk?

I merge two pdf files in two different order: $ pdftk 2.pdf multistamp 1.pdf output o1.pdf $ pdftk 1.pdf multistamp 2.pdf output o2.pdf Here are the four files: 1.pdf, 2.pdf, o1.pdf, and o2.pdf ...
2
votes
2answers
310 views

Shell script to merge files with same names

I have a directory of files such as: file.1111111_1.pdf file.1111111_2.pdf file.2222222_1.pdf file.2222222_2.pdf … file.1234567_1.pdf file.1234567_2.pdf … file.aaaaaaa_1.pdf file.aaaaaaa_2.pdf … ...
1
vote
1answer
35 views

PDF-reader which finds letters ä and ö

I read sometimes pdf's written in Finnish. I was unable to search text containing letters ä and ö by Xpdf and Okular. Is there a PDF-reader which finds those letters correctly? I had a problem with ...
0
votes
2answers
114 views

How to copy text from an image in a pdf file?

I can view a pdf image with text using the evince document viewer, however I cannot select the text in the image to copy and paste. How do I copy text from an image in a pdf file?
0
votes
0answers
98 views

My gnuplot-pdflatex plot script produces a pdf with a bug

I have written a script in bash to easily make gnuplot multiplots via the epslatex terminal and then automatically make a pdf file via pdflatex. However when I open the pdf file with evince (on Ubuntu ...
1
vote
0answers
88 views

Can htmldoc create multi-level pdf bookmarks?

I downloaded an online html book (http://www.cim.mcgill.ca/~franco/OpSys-304-427/lecture-notes/lecture-notes.html), by the following command wget -r -np -nH --cut-dirs=3 -p -k ...
0
votes
0answers
212 views

How to print pcl or esc/p code on host-driven printer?

I have a host-based printer (HP Deskjet D2460) and have some printer language files (pcl codes) that I would like to print out. I saw that in cups there are some filters like rastertopcl, etc. which ...
0
votes
1answer
58 views

how to extract pattern from pdf and save to text file [closed]

How can I extract some pattern contained in PDF file to text file using shell?
7
votes
3answers
450 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
100 views

Convert linked html files into a pdf file?

I would like to convert an online book (linked html files) into a pdf file. I tried the two-step way in http://kmkeen.com/mirror/2009-02-05-14-00-00.html First, download the html files by wget -nd ...
2
votes
1answer
29 views

Clickable PDFs in rxvt

I would like to open PDFs (say, with evince) by clicking in the terminal. The setup is urxvt in Fedora 19 here, but if urxvt cannot do this, can you let me know which terminal emulators can. I got ...
2
votes
1answer
181 views

Image size with gscan2pdf and ImageMagick `convert` bloat

I scan all my important incoming physical-mail to PDF. I am trying to move this activity to Linux as part of the process of eliminating my dependence on Windows - where I used to use the excellent but ...