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

11
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 ...
3
votes
1answer
769 views

How to change height and width of each page of a pdf

I was wondering how to change width and height of each page of a pdf? In my scanned pdf, each page has paper size too big, 31.98 × 49.20 inch. I would like to shrink the width and height to smaller ...
3
votes
1answer
2k views

Convert a folder of images into a multi-page pdf file usind command line tools?

I have a folder with 100 jpg images. I want to convert these images into a multi-page pdf file, with all the images (cropped to A4 size). They are already in the correct rotation. Which tools should ...
6
votes
4answers
6k 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 ...
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.
11
votes
6answers
21k 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" -- ...
3
votes
4answers
2k views

How to view and edit the code of a pdf file

I was wondering how to view and edit the code of a pdf file? By viewing, I don't want to see the binary format, so I think hexdump may not be what I want. I tried gedit, but no encoding method can ...
11
votes
5answers
8k 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 ...
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 ...
4
votes
1answer
5k 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.
2
votes
1answer
508 views

Use convert or ghostscript to grab the odd-numbered pages of a PDF

I have a PDF that consists of several hundred pages of bilingual text. Since I need to use OCR on each language separately, I want to grab the even and odd pages and make two separate PDFs, using ...
4
votes
2answers
5k views

Use convert to grab a specific page from a PDF file?

I know I have done this before, so I'm sure it's possible, I just forget how to do it. There's a way to tell convert to grab a specific page of a PDF, and I'd like to keep the format of that page as ...
7
votes
3answers
2k 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 ...
2
votes
2answers
594 views

Xpdf fit to page width in fullscreen mode

When I call the command: $ xpdf file.pdf -z width -fullscreen ...it does not have the desired effect. The individual options: $ xpdf file.pdf -z width ...and: $ xpdf file.pdf -fullscreen ...
22
votes
5answers
15k 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 ...
4
votes
1answer
367 views

Extract graphs from PDFs

I have a situation where I need to extract images from lots of PDF files and display them on a website. My PDFs have "regular" images as well as lots of graphs. I used pdf2xml and it pulls out the ...
9
votes
4answers
15k 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 ...
14
votes
9answers
16k 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?
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.
7
votes
3answers
3k 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.
2
votes
4answers
14k views

How to install Adobe Acrobat Reader in Debian?

I've got deb http://debian-multimedia.org squeeze main in "/etc/apt/sources.list", but wajig update && wajig install acroread results in: E: Package ‘acroread’ has no installation candidate ...
8
votes
5answers
7k 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 ...