PDF (Portable Document Format) is an open standard for document exchange.

learn more… | top users | synonyms

18
votes
5answers
13k views

Split pages in pdf

I have a scanned pdf file which has scanned two pages on one virtual page (page in pdf file). The resolution is with good quality. The problem is I have to zoom when reading and drag from left to the ...
13
votes
9answers
13k views

How can I grep in PDF files?

Is there a way to search pdf files using the power of grep, without converting to text first in Ubuntu?
13
votes
5answers
11k views

convert images to pdf: How to make PDF Pages same size

I did something like convert -page A4 -compress A4 *.png CH00.pdf But the 1st page is much larger than the subsequent pages. This happens even though the image dimensions are similar. These images ...
12
votes
4answers
4k 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.
10
votes
3answers
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.
10
votes
5answers
7k 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 ...
9
votes
4answers
704 views

Are there any full featured pdf readers that integrate comment function?

I'm needing reading some research papers whose formats are almost pdf.However I cannot find a good pdf reader which can make some notes while reading. Currently I use xournal however there seems not ...
9
votes
1answer
349 views

generate a hyperlinked table of contents and insert into existing PDF

I have an existing PDF (without any corresponding source file), and a text file which is a list of items referencing sections within the PDF file, along with a page number for each item. I would like ...
9
votes
1answer
460 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 ...
8
votes
6answers
17k views

How to convert TXT to PDF?

I want to convert .txt files to .pdf. I'm using this: ls | while read ONELINE; do convert -density 400 "$ONELINE" "$(echo "$ONELINE" | sed 's/.txt/.pdf/g')"; done But this produces one "error" -- ...
8
votes
4answers
12k views

pdf to jpg without quality loss; gscan2pdf

When I convert a pdf file to bunch of jpg files using convert -quality 100 file.pdf page_%04d.jpg I have appreciable quality loss. However if I do the following, there is no (noticeable) quality ...
8
votes
2answers
245 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 ...
8
votes
1answer
330 views

Split PDF into colour and black/white pages

I would like to automatically split a large PDF document into two files: one file should contain only the pages with black and white content, and the other should contain only the pages with any ...
7
votes
6answers
6k views

Modifying PDF files

I need to do some basic editing on existing PDF file. I.e. I need to: Add chapters/bookmarks Change some page numbering However I cannot find any tool - GUI or commandline - which would offer this ...
7
votes
3answers
2k views

How to convert a PDF file to a DVD movie?

Each page would be navigable with the player's 'next' button. The result should have a directory called VIDEO_TS, to ensure it will play in old players.
7
votes
2answers
5k views

Rotate pdf pages: 90 degree for even pages and -90 degree for odd pages

I was wondering in a pdf file, how to rotate pdf pages: 90 degree for even pages and -90 degree for odd pages? By pdftk, all I know is to rotate a page by pdftk in.pdf cat 1W output out.pdf, and ...
7
votes
3answers
1k views

Is GNU PDF Library in active development?

I've been hearing about The GNU PDF Library since 2007. Since then I've been looking forward to see this tool in the wild, but four years have passed and it seems to me that this is a painfully long ...
7
votes
3answers
1k views

How to preserve bookmarks when rearranging pages of a PDF file with tools like pdftk?

I am using pdftk to rearrange pages of a pdf file with bookmarks/outlines, but after that, the output file lost the bookmarks of the original. My command is pdftk in.pdf cat 1-22 43 23-42 44-end ...
6
votes
3answers
1k views

Does Printing a PDF to PDF degrade its quality?

Say I have a PDF of a website which is very long. After reading some of it, I decide there are extraneous pages in it; but rather than finding the website every time I decide to eliminate a page, I ...
6
votes
4answers
5k views

How to know if a pdf file is compressed or not and to (un)compress it

I just learned that pdf files can be compressed to reduce its disk size. I was wondering how to know if a pdf file has already been compressed? What applications/commands can be used to compress or ...
6
votes
2answers
2k 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 ...
6
votes
4answers
376 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. ...
6
votes
3answers
835 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 ...
6
votes
1answer
783 views

What program will save a fillable PDF?

There are several nice fillable PDFs available for the RPG hobby. These have boxes that number values can be entered and simple formulas are calculated throughout the sheet. I'm finding that the ...
6
votes
1answer
1k views

How to make ghostscript not wipe PDF metadata

Ghostscript wipes the PDF metadata like author, title, subject etc. How can I tell ghostscript not to touch the metadata? I invoke it as follows: gs \ -dBATCH \ -dNOPAUSE ...
6
votes
1answer
687 views

Find links and their positions in a PDF

I need to find all links in a PDF file, along with the page they're on and their X/Y position. Is there any tool or combination of tools I can use to do that?
5
votes
4answers
1k views

Split PDF into documents with several pages each

There are several resources on the web explaining how one can split a PDF into many files with on page per file. But how can you split them into chunks of, say, five pages each? I have looked into ...
5
votes
3answers
2k views

How to convert pdf to eBook format

Is there a way to convert a PDF document into an eBook format such as epub, azw or mobi? I am looking for an application, which is fast in conversion. I have just tried calibre. After 10 minutes not ...
5
votes
3answers
2k views

How can I add a signature .png to a PDF in Linux?

I have a scanned copy of my written signature and I need to apply it to some documents in the signature block. I used to do this on Windows all the time but I now have only Linux. Is this possible? ...
5
votes
1answer
2k views

SWF to PDF conversion

Are there any tools for converting SWF to PDF? I have a bunch of SWF files (to be ripped from the web) and I'd like to group them into single PDF.
5
votes
1answer
49 views

Is there a tool or method for magnifying existing PostScript or PDF files for printing - not just for display

Almost all my printing, including web pages and emails works fine and has done so for years, but ... When I print web pages and emails, I routinely run into a few that print in something like 1 point ...
5
votes
2answers
485 views

How to fix diacritics in PDF forms in Evince?

I happen to live in Czech Republic and we have such letters like ě, š, č, ť, etc in the alphabet and use them everywhere, including addresses. Today I was filling a PDF form in Evince and noticed that ...
5
votes
1answer
2k views

Invert colors in whole PDF (convertion)

How to create pdf with inverted colours of original one? (Just like inverting whole screen with xcalib -i -a) Preferably : not loosing hyperlinks. But it's not requirement. It would be nice if ...
5
votes
1answer
41 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 ...
5
votes
1answer
943 views

How to extract annotations from PDF files?

Is there a command-line tool to extract annotations (comments added using evince) from PDF-files? I search such a solution to send people feedback on their submitted documents. Apart from replying ...
5
votes
1answer
153 views

Wrong emblem used for PDFs created by LibreOffice

If I create a test pdf file in a directory, by using something like ls -al > testpdf.pdf the file is shown in Caja 1.4.0 with an understandable emblem that is 'acrobat-like'. If I create a ...
4
votes
6answers
2k views

Stitch two JPEGs together into a PDF

I need to take two 8.5in by 11in JPEG images and merge them together into two pages of a PDF. Is there a commandline or GUI tool to help me do this?
4
votes
2answers
2k views

pdf viewer for command line only

Is it possible to view pdf documents without having gdm (or similar) running? Rationale: I'm working on a remote server (assume no X forwarding) processing some data, creating some plots (assume pdf ...
4
votes
3answers
829 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 ...
4
votes
3answers
407 views

Rotate pdf file less than 90 degree?

How can I rotate a PDF file less than 90 degree under Ubuntu? Can I do that interactively?
4
votes
2answers
421 views

PDF viewer with reflow capabilities for linux?

Anyone know of a PDF viewer for linux that can reflow text on the fly? There are a few for android, and at least one for windows, but I haven't found any for Linux. NOTE: I'm doing this on a 1600x900 ...
4
votes
3answers
331 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 ...
4
votes
2answers
2k 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 ...
4
votes
1answer
618 views

Open PDF previewer width specific size and position and “always on top” from command line

I'm using latexmk -pdf -pvc to keep compiling my LaTeX files to PDFs while they are displayed in evince. I'm doing that a lot with different files and I keep needing to zoom the PDF content, resize ...
4
votes
2answers
346 views

How do I extract the colours from a PDF?

I have a PDF and I want to verify the colours being used (check that they match our corporate colour scheme for instance). Specifically, I want to check that the correct CMYK colours are being used. ...
4
votes
1answer
4k views

insert a blank page into a PDF using ghostscript or pdftk

I have a PDF file that needs a blank page inserted into it every so often. The pattern is unpredictable, so I need a command that will allow me to fit one in wherever necessary.
4
votes
2answers
925 views

Convert PDF from sRGB color space to CMYK

Does anyone know how I can convert a PDF (or EPS) file from sRGB color space to CMYK color space? My workflow is currently the following: Draw an image with Powerpoint Print via postscript printer ...
4
votes
4answers
444 views

Export terminal display to PDF

I want to include the display of my terminal in a beamer presentation. Simply taking a screenshot, however, produces a fairly low-resolution png that looks poor in the presentation. I would like it ...
4
votes
1answer
729 views

Remove watermarks from pdf file

Is it possible to remove annoying watermarks from pdf file in Linux? For example, every page contains text This file was merged by application XY.
4
votes
1answer
1k views

convert pdf to image [jpeg|png]

I need to convert pdf files into image files (like: png (prefer), jpeg). I used convert (from the ImageMagick package) but it takes more than 4 seconds for a 2 page pdf file with only tables ...