The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
87 views

Easiest method to create pdf from template using command line (without pdflatex)?

For ten years I have been generating billings for me and my wife in this way: Create TeX template with LyX or by hand Using in this source placeholder text Then: cat template | sed ...
3
votes
1answer
187 views

Corrupted PDF: Opens fine, but pyPdf bails with AssertionError

I received a PDF in an email and I want to crop and rotate it because it has two pages per sheet. Trying the solutions in Split pages in pdf I had problems with "AssertionError" in pyPDF and "Warning: ...
1
vote
2answers
369 views

Splitting large PDF into small files

Using pdftk it is possible to extract page ranges from a pdf using pdftk a.pdf cat 124-end output b.pdf dont_ask I have a bunch of huge PDFs with about 500 pages and over 100 MB, is it possible to ...
2
votes
0answers
61 views

Insert bookmark in .pdf file for print

I have searched many solutions on what is the best way to search a .pdf, and if a page named spec_out is located in the .pdf it will insert the first bookmark before other bookmarks as Spec Out. I'm ...
1
vote
0answers
29 views

How do I unbooklet a PDF-booklet? [duplicate]

Possible Duplicate: How do I 'unbook' a pdf I'm not shure that what I have is actually a booklet, or a book. I have a paper in A4-format consisting of 96 pages (plus coverpages). I ...
1
vote
0answers
24 views

Rescale a PDF file [duplicate]

Possible Duplicate: How to change height and width of each page of a pdf Is it possible to rescale a PDF file (retaining perspective) to be within a maximum width / height? Rendering to an ...
3
votes
1answer
372 views

Implementing a String -> PDF Stamp tool

I wrote a little shell function which creates a fixed-size PDF file (A4) from a character string using gs: make_stamp() { file=$1 string=$2 tmp=${file}-small.pdf gs -o "$tmp" -sDEVICE=pdfwrite ...
9
votes
1answer
445 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 ...
7
votes
2answers
4k 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 ...
9
votes
5answers
6k 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 ...
3
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.