PDF, PostScript and Imposition tools: Difference between revisions
(script exemple avec psbook) |
(example) |
||
Line 57: | Line 57: | ||
</pre> | </pre> | ||
* [http://pdfedit.petricek.net/index_e.html PDFedit] is a collection of Qt3 scripts assembled under a GUI. It permits editing PDF files down to the level of text editing, font changes and more. | * [http://pdfedit.petricek.net/index_e.html PDFedit] is a collection of Qt3 scripts assembled under a GUI. It permits editing PDF files down to the level of text editing, font changes and more. | ||
* [http://www.ctan.org/tex-archive/support/pdfbook/ pdfbook] rearranges pages of a PDF file for booklet printing. | * [http://www.ctan.org/tex-archive/support/pdfbook/ pdfbook] rearranges pages of a PDF file for booklet printing. | ||
* PSUtils is a collection of utilities for manipulating PostScript documents. Programs included are psnup, for placing out several logical pages on a single sheet of paper, psselect, for selecting pages from a document, pstops, for general imposition, psbook, for signature generation for booklet printing, and psresize, for adjusting page sizes. PSUtils is available for [http://gnuwin32.sourceforge.net/packages/psutils.htm windows] and [http://www.knackered.org/angus/psutils/ Linux]. | |||
This is a linux script using psbook, called thus : | This is a linux script using psbook, called thus : | ||
script1a foobook | <pre>script1a foobook</pre> where the input file is named foobook.ps. It will substitute "foobook" for every occurrence of "$1". The result will be two files named "foobooke.ps" and "foobooko.ps, set up for running the paper twice through my Ricoh laser printer. For another printer I might need to eliminate the "-r" parameter. | ||
where the input file is named foobook.ps. It will substitute "foobook" for every occurrence of "$1". The result will be two files named "foobooke.ps" and "foobooko.ps, set up for running the paper twice through my Ricoh laser printer. For another printer I might need to eliminate the "-r" parameter. | |||
<pre> | <pre> |
Revision as of 15:38, 26 August 2010
Installation • Usage • PDF issues • Imposition • Other |
Introduction
First: you may not know what imposition is: Wikipedia will tell you.
A list of tools which are useful for imposition.
Two type of software are listed here:
- software which can be obtained free of charge and can help you do some imposition tasks.
- imposition software (free, free of charge or payware)
There is also another wiki page on just Imposition.
Multiplatform
- pdftk (free)
- bookbinder (free)
- multivalent (free) (see How to make impositions with Multivalent)
Example for making a booklet:
$ java.exe -cp multivalent.jar" tool.pdf.Impose -dim 2x1 -layout 2,3,4,1 -paper "297x210 mm" -verbose file.pdf
Other example for 32 pages on A3 sheets : (Paths will have to be adjusted for your environment (and if you're on linux you will of course have to use a shell script instead, but the content wont differ much. Then the printer will just have to "print double sided")
@echo off set javarun="c:\program files\java\jre6\bin\java.exe" set multivalent="c:\Documents and settings\pnermander\temp\slask\multivalent.jar" %javarun% -cp %multivalent% tool.pdf.Impose -dim 2x1 -layout 2,31,32,1,4,29,30,3,6,27,28,5,8,25,26,7,10,23,24,9,12,21,22,11,14,19,20,13,16,17,18,15 -paper "420x297 mm" -verbose %*
- PoDoFo Impose (free; imposition tool distributed with the PoDoFo library)
- On-line imposition with PoDoFo (web based, work in progress; by Pierre Marchand; there is still an old server)
- Adobe Reader 8 and 9 will do booklet printing for you. For a A4 booklet, you just need to export an A5 document to PDF and then tell Adobe Reader to print it as a booklet. With Reader 9 you do not have to prepare a certain size as the Reader can scale (not sure if any precision issues). Depending on needs you may want the "Multiple Pages Per Sheet" or the "Booklet Printing" option in the Print Dialog "page scaling" option drop down.
- PDFSaM is a very reliable Java-based tool that provides many options to manipulate PDF files. Especially recommended for pre-press work!
- jPDF Tweak is a versatile Java-based tool with loads of options to edit PDF files.
Creating an imposition for an A5 folder (including 2-up printing and bleeds) with Scribus and jPDF Tweak requires : (1) in Scribus : - setting Units to "Pt" (because jPDF Tweak will need the correct numbers) - selecting "double page" document layout - setting "blend" for outer, top and bottom (NOT left) margin - export to PDF (2) in jPDF Tweak : - in "Page Size" set "Scale Pages", "Portrait" and Width/Hight manually - in "Shuffle/N-up" set "Shuffle", "A4 Portrait" and "Booklet Portrait" - RUN ;-)
- PDFedit is a collection of Qt3 scripts assembled under a GUI. It permits editing PDF files down to the level of text editing, font changes and more.
- pdfbook rearranges pages of a PDF file for booklet printing.
- PSUtils is a collection of utilities for manipulating PostScript documents. Programs included are psnup, for placing out several logical pages on a single sheet of paper, psselect, for selecting pages from a document, pstops, for general imposition, psbook, for signature generation for booklet printing, and psresize, for adjusting page sizes. PSUtils is available for windows and Linux.
This is a linux script using psbook, called thus :
script1a foobook
where the input file is named foobook.ps. It will substitute "foobook" for every occurrence of "$1". The result will be two files named "foobooke.ps" and "foobooko.ps, set up for running the paper twice through my Ricoh laser printer. For another printer I might need to eliminate the "-r" parameter.
psbook $1.ps $1b.ps echo 'psnup' psnup -2 -ptabloid -Pletter $1b.ps $1p.ps echo 'psselect' psselect -o $1p.ps $1o.ps psselect -e -r $1p.ps $1e.ps #lpr $1o.ps #echo 'switch paper' #read x #lpr $1e.ps #rm $1p.ps $1e.ps $1o.ps $1b.ps
Comment on these tools (20/06/2010) : - Multivalent req'es outdated Java 1.4 to be installed. Trying to run with a current JRE is running into "java.lang.ClassNotFoundException: tool.pdf.Impose" error. - PoDoFo (on-line) appears to be unaccessible - PDFSaM is a well-done collection of PDF-tools, but lacks imposition features (in particular like n-up printing) - jPDF Tweak is a bit tricky to use, but appears to be most functional (and, by now, stable). Did not find a settings export or batch function though.
Linux, Unix and "Darwin"
- pstops (see How to make impositions with pstops)
- pdf-shuffler (introduction by bigbrovar) Not really an imposition program, but permits easy reshuffling and adding/deleting of pages.
OS X
- PDFmergeX (donationware): not really an imposition tool... but it may have enough features for you
- CombinePDFs (donationware)
- CocoaBooklet (donationware)
- PDFLab lets you split and join PDF documents as well as insert images and blank pages (donationware)