Tagged Questions

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
47 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
61 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
42 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
21 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
23 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
15 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
33 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
31 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
23 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
29 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
154 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
42 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
14 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
119 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
26 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
69 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
57 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
62 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
97 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
41 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
2answers
164 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
71 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
21 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
95 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 ...
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?
4
votes
1answer
73 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
39 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 ...
1
vote
1answer
108 views

Print PDF scaled-down and aligned

I want to print a PDF file with all pages scaled down equally (to, say, 70 %). The scaled-down pages should then be left-aligned on the printing paper. This doesn't seem to be possible with lpr ...
5
votes
1answer
172 views

How to print password protected pdf with cups from command line?

I have a *.pdf file that is password protected. I have the password and I can view the pdf with mupdf. However, printing with CUPS via lpr -P PRINTERNAME *.pdf does not work. All my printing is done ...
2
votes
0answers
26 views

MasterPDFEditor use black theme for PDF pages

@Crunchbang/Debian x32 I've been using MasterPDFEditor for quite some time & I'm impressed by its PDF annotation capabilities. However I decided to start using a black GTK+ theme & after ...
1
vote
2answers
42 views

How to extract bookmarks from a pdf file

I have a PDF file. I need the bookmarks in that file extracted to a text file or an excel. I also need to validate the bookmarks from the large PDF file. How could I do that?
8
votes
2answers
280 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 ...
3
votes
1answer
73 views

Concatenate in a PDF the first page of several odt files alphabetically

I have, in the same directory, several odt files. I'd like to have in one PDF document the first page of these odt files, sorted alphabetically based on their filename. For example, if I have these ...
2
votes
1answer
55 views

Compile pdf file from multiple images scanned in by scanimage --batch

Say I'm scanning in images of documents with something like: scanimage --mode Gray --resolution 300 -x 215 -y 280 --format=tiff \ --batch=document-p%d.tiff --batch-prompt (In the example I've ...
3
votes
0answers
76 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 ...
1
vote
0answers
28 views

How can you pdfjoin smartly different sized pictures?

I'm running the default pdfjoin and getting results like this: How can you pdfjoin different sized pictures? My first idea is to add an empty page in front of all things.
2
votes
0answers
19 views

Can one move the OCRed text from one PDF to another PDF file?

Given a PDF file with OCRed text, is it possible to move the OCRed text to another PDF file?
1
vote
0answers
16 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!
3
votes
1answer
135 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 ...
1
vote
1answer
523 views

gs can't find the proper font

I am running the following command to add bookmarks to a pdf file. The file bookmarks.txt contains bookmarks in Chinese characters and in pdfmarks format. The output of gs shows that there seem to be ...
2
votes
0answers
559 views

Can't print pdf file with lpr

I am currently using Arch linux. I am trying to print a pdf file for the command line, it is easier that way as I need to print several range of pages. Just for testing I issue a command to print a ...
1
vote
0answers
57 views

pdf viewer for text documents saved as images — bad rendering

The situation I have in mind is a .pdf document obtained from a scan, or at least such that some readers view it as an image (as opposed to text) and render it badly (see the screenshot below) My ...
2
votes
1answer
209 views

Change and save pdf annotation setting in Okular?

In Okular, I add inline notes to a pdf file. I change the default settings for inline notes: from default font "Ubuntu 13" to "Ubuntu 6", and from default opacity 100% to opacity 0%. But I ...
1
vote
1answer
90 views

problem with text added to pdf under Xournal after exporting to pdf

Under Xournal, I add some text to a pdf file, and then I export to a pdf file. In the exported pdf file, the text I added is shown correctly, and selectable, but when I copy and paste the selected ...
2
votes
0answers
142 views

Extract bookmarks from a pdf and add them to another in gs?

I have two pdf files, one with bookmarks, and the other without. I would like the second pdf file to have the same bookmarks as the first. I wonder how to do that using gs? Ideally, it will be nice ...
2
votes
1answer
138 views

Recursively find and move corrupted PDFs

The Issue I was using python-skydrive to download files to my PC, and I accidentally corrupted a good amount of my PDF files. When I try to view them in Document Viewer, I get the following error ...
3
votes
2answers
304 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 ...
2
votes
1answer
724 views

How can I extract images from a pdf file? [duplicate]

I have a pdf file that consists of an image per page. Are there any command line programs that can extract these images?
2
votes
1answer
93 views

How to change the color of all highlights in a PDF file?

I want to change the color of every highlight in a PDF file (without having it do for every highlight manually). Preferably with a command line command. Here is an example PDF with a highlighted ...