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

4
votes
1answer
609 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
11 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 ...
4
votes
4answers
2k views

How can I print half of a page to a pdf file?

I have a one page PDF file with scanned documents. I need to send only top half of this document to someone. How can I generate a new PDF document with only the top half of the original page, without ...
2
votes
3answers
1k views

Can't print to PDF using cups-pdf; used to work, now “failed to set file mode” printing as non-root

Here's something really odd: something that used to work fine in Debian, and then broke, even without a dist-upgrade. I used to be able to use the CUPS PDF virtual printer to print anything to a PDF ...
0
votes
0answers
10 views

pdf2swf give result blank swf [closed]

I need to convert pdf file into swf Command I've tried: $PDF2SWFcommand = "pdf2swf /pdf/file/unsecured.pdf -o /swf/file/output%.swf -f -T 9 -t -s storeallcharacters > /dev/null 2>&1 & ...
2
votes
2answers
46 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 ...
6
votes
4answers
612 views

how to merge pdf files so that each file begins on an odd page number?

I need to merge a few dozed pdfs, and i want all of the input pdfs to start on an odd page in the output pdf. Example: A.pdf has 3 pages, B.pdf has 4 pages. I don't want my output to have 7 pages. ...
2
votes
1answer
33 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
26 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 ...
0
votes
1answer
25 views

How can I convert a scanned pdf with OCRed text to 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. i.e. How can I convert a scanned pdf with OCRed text to without OCRed text? I am ...
0
votes
1answer
25 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
32 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
44 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 ...
7
votes
2answers
232 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 ...
4
votes
1answer
74 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 ...
4
votes
0answers
25 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?
1
vote
2answers
73 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
49 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 ...
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
27 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
27 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
38 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
50 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
25 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
69 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
216 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 ...
4
votes
3answers
965 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 ...
3
votes
1answer
145 views

Ligatures missing in some PDFs

I have some PDFs which, when viewed in readers under Linux (tried atril from MATE and evince from GNOME), the ligatures (e.g. fi, fl) are missing, as can be seen from the example (it should be ...
8
votes
3answers
3k views

How to query pdf page size from the command line?

For scripting I need to get the page dimensions of a PDF file (in mm). pdfinfo just prints it in 'pts', e.g.: Page size: 624 x 312 pts What should I use? Or what unit is 'pts' anyway - in ...
2
votes
2answers
179 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 … ...
0
votes
1answer
50 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
15 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 ...
1
vote
1answer
29 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
82 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?
6
votes
4answers
1k 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 ...
14
votes
4answers
7k 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.
3
votes
2answers
395 views

Good ways for annotating and searching in document (pdf, djvu)

For djvu files, I enjoy reading it in djview, because when I search for some words, it can show where all the results are at a glance, and highlight them simultaneously. This is much more convenient ...
1
vote
0answers
74 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
71 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 ...
0
votes
0answers
143 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 ...
8
votes
2answers
307 views

Discovering metadata about a PDF

Suppose I have a PDF and I want to obtain whatever metadata is available for that PDF. What utility should I use? I find the piece of information I am usually most interested in knowing is the paper ...
0
votes
1answer
44 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?
2
votes
1answer
115 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 ...
2
votes
1answer
27 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 ...
1
vote
1answer
82 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 ...
1
vote
0answers
30 views

scan directories of .pdf and .ps files for keyword in title and author

I have got directories full of research papers. I would like to scan the files for keywords in the titles, the author lists, etc. Does a tool for that purpose exist?
10
votes
4answers
3k 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.
4
votes
1answer
84 views

Shortcut to google selected text

Is there a way to customize evince to search on Google a selected phrase? Like in Firefox where I select a text and right-click--> "Search Google for ..." If evince isn't customizable, is there any ...
0
votes
0answers
42 views

Firefox freezes with attachments or pdf

I am working on an old CentOs 5 machine. I am using Firefox as a browser. It worked fine until now, when every time I try to open a pdf or to attach something to the emails, it crashes. I tried to ...
3
votes
0answers
79 views

Standard workflow to digitize magazines or books using OCR while minimizing file size?

To scan books containing just text, black&white images and clear borders, the workflow I've been using is: digitize the source using a camera or just a scanner use scantailor finally use ...