Difference between revisions of "PDF, PostScript and Imposition tools"

From Scribus Wiki
Jump to: navigation, search
m (Multiplatform)
(Multiplatform)
 
(25 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{HOWTO Index}}
+
[[Category:EN]][[Category:PDF]][[Category:Printing]][[Category:Tools]]
 
----
 
----
  
Line 12: Line 12:
 
* software which can be obtained free of charge and can help you do some imposition tasks.
 
* software which can be obtained free of charge and can help you do some imposition tasks.
 
* imposition software (free, free of charge or payware)
 
* imposition software (free, free of charge or payware)
 +
 +
There is also another wiki page on just [[Imposition|Imposition]].
  
 
=Multiplatform=
 
=Multiplatform=
 +
* [http://www.pdfsam.org/ PDF Split and Merge](free,GPLv2)
  
 
* [http://www.pdfhacks.com/pdftk/ pdftk] (free)
 
* [http://www.pdfhacks.com/pdftk/ pdftk] (free)
 +
 
* [http://www.quantumelephant.co.uk/bookbinder/bookbinder.html bookbinder] (free)
 
* [http://www.quantumelephant.co.uk/bookbinder/bookbinder.html bookbinder] (free)
 +
As for usability Bookbinder rates very good. It can only do simple imposition (4 pages on each sheet), but that is about 99% of the needs
 +
 
* [http://multivalent.sourceforge.net multivalent] (free) (see [[How to make impositions with Multivalent]])
 
* [http://multivalent.sourceforge.net multivalent] (free) (see [[How to make impositions with Multivalent]])
example for making a booklet:
+
Example for making a booklet:
 
<pre>
 
<pre>
 
$ java.exe -cp multivalent.jar" tool.pdf.Impose -dim 2x1 -layout 2,3,4,1
 
$ java.exe -cp multivalent.jar" tool.pdf.Impose -dim 2x1 -layout 2,3,4,1
 
-paper "297x210 mm" -verbose file.pdf
 
-paper "297x210 mm" -verbose file.pdf
 
</pre>
 
</pre>
 +
 +
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")
 +
<pre>
 +
@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 %*
 +
</pre>
 +
 
* [http://podofo.sourceforge.net/ PoDoFo Impose] (free; imposition tool distributed with the PoDoFo library)
 
* [http://podofo.sourceforge.net/ PoDoFo Impose] (free; imposition tool distributed with the PoDoFo library)
 +
* [http://git.constantvzw.org/?p=osp.tools.ospi.git;a=summary OSPI] (free; revamp of PoDoFo Impose; more flexible and powerful seems like)
 
* [http://www.creationlibre.net/test2/impose/ On-line imposition with PoDoFo]  (web based, work in progress; by Pierre Marchand; there is still an [http://www.oep-h.com/impose/ old server])
 
* [http://www.creationlibre.net/test2/impose/ On-line imposition with PoDoFo]  (web based, work in progress; by Pierre Marchand; there is still an [http://www.oep-h.com/impose/ old server])
* [http://www.adobe.com/de/products/reader/ 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.
+
* [http://www.adobe.com/de/products/reader/ 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.
 
* [http://www.pdfsam.org/ PDFSaM] is a very reliable Java-based tool that provides many options to manipulate PDF files. Especially recommended for pre-press work!
 
* [http://www.pdfsam.org/ PDFSaM] is a very reliable Java-based tool that provides many options to manipulate PDF files. Especially recommended for pre-press work!
 
* [http://jpdftweak.sourceforge.net/ jPDF Tweak] is a versatile Java-based tool with loads of options to edit PDF files.
 
* [http://jpdftweak.sourceforge.net/ jPDF Tweak] is a versatile Java-based tool with loads of options to edit PDF files.
 +
<pre>
 +
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 ;-)
 +
</pre>
 +
 +
Other testimony :
 +
<pre>
 +
jPDF  Works great if you figure out the settings and play with the config string. 
 +
I have a legal sized booklet coming from 8.5" high and 7" wide pages in Scribus,
 +
and I found the best settings as follows:
 +
 +
- Input tab :
 +
    use filename + check Multiple File Input + Select Pages/specify pages 3 to x-2
 +
- Page Size Tab :
 +
    check Rotate Pages + select "Right" for both Portrait and Landscape
 +
    + check Scale Pages + select Legal Landscape, 1008 width, 612 height
 +
- Shuffle/N-up Tab :
 +
    select Shuffle Pages + Preset: Booklet Landscape
 +
    + Config String:
 +
      -4:!-4L0.82-12.5%-100.0%,+1L0.82-12.5%-200.0%,!+2L0.82-12.5%-100.0%,-3L0.82-12.5%-200.0%
 +
      right side: Legal Landscape
 +
</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.
 +
* 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 script using psbook, called thus : "script1a foobook" where the input file is named foobook.ps.
 +
The following script is for Linuw. For windows, replace all occurence of '$1' with '%1'.
 +
 +
<pre>
 +
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
 +
</pre>
 +
 +
The result will be two files named "foobooke.ps" and "foobooko.ps, set up for running the paper twice through a Ricoh laser printer (For another printer I might need to eliminate the "-r" parameter)
 +
 +
<pre>
 +
lpr $1o.ps
 +
echo 'switch paper'
 +
read x
 +
lpr $1e.ps
 +
<pre>
 +
and finally for cleanup
 +
<pre>
 +
rm $1p.ps $1e.ps $1o.ps $1b.ps
 +
</pre>
 +
 +
====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"=
 
=Linux, Unix and "Darwin"=
Line 34: Line 119:
 
* pstops (see [[How to make impositions with pstops]])
 
* pstops (see [[How to make impositions with pstops]])
 
* [http://sourceforge.net/projects/pdfshuffler/ pdf-shuffler] (introduction by [http://bigbrovar.wordpress.com/2009/04/17/pdf-shuffler-an-easy-way-to-merge-pdf-files-in-linux/ bigbrovar]) Not really an imposition program, but permits easy reshuffling and adding/deleting of pages.
 
* [http://sourceforge.net/projects/pdfshuffler/ pdf-shuffler] (introduction by [http://bigbrovar.wordpress.com/2009/04/17/pdf-shuffler-an-easy-way-to-merge-pdf-files-in-linux/ bigbrovar]) Not really an imposition program, but permits easy reshuffling and adding/deleting of pages.
 +
* [http://www.laidout.org Laidout], lets you fold things on screen. Watch a [http://www.youtube.com/watch?v=biLrfyHMXzU booklet demo here].
  
 
=OS X=
 
=OS X=
Line 39: Line 125:
 
* [http://www.malcom-mac.com/blog/pdfmergex/ PDFmergeX] (donationware): not really an imposition tool... but it may have enough features for you
 
* [http://www.malcom-mac.com/blog/pdfmergex/ PDFmergeX] (donationware): not really an imposition tool... but it may have enough features for you
 
* [http://www.monkeybreadsoftware.de/Freeware/CombinePDFs.shtml CombinePDFs] (donationware)
 
* [http://www.monkeybreadsoftware.de/Freeware/CombinePDFs.shtml CombinePDFs] (donationware)
 +
* [http://www.iconus.ch/fabien/products/cbeng/cbeng.html CocoaBooklet] (donationware)
 +
* [http://www.iconus.ch/fabien/products/pleng/pleng.html PDFLab] lets you split and join PDF documents as well as insert images and blank pages (donationware)
 +
* [http://www.macupdate.com/app/mac/21068/create-booklet-pdf-service Create Booklet PDF Service] Free Acrobat Plug-in (Mac OS X only)
  
 
=Windows=
 
=Windows=

Latest revision as of 02:09, 13 December 2013


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

As for usability Bookbinder rates very good. It can only do simple imposition (4 pages on each sheet), but that is about 99% of the needs

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)
  • OSPI (free; revamp of PoDoFo Impose; more flexible and powerful seems like)
  • 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 ;-)

Other testimony :

jPDF  Works great if you figure out the settings and play with the config string.  
I have a legal sized booklet coming from 8.5" high and 7" wide pages in Scribus, 
and I found the best settings as follows:

- Input tab : 
     use filename + check Multiple File Input + Select Pages/specify pages 3 to x-2
- Page Size Tab : 
     check Rotate Pages + select "Right" for both Portrait and Landscape
     + check Scale Pages + select Legal Landscape, 1008 width, 612 height
- Shuffle/N-up Tab : 
     select Shuffle Pages + Preset: Booklet Landscape
     + Config String:
      -4:!-4L0.82-12.5%-100.0%,+1L0.82-12.5%-200.0%,!+2L0.82-12.5%-100.0%,-3L0.82-12.5%-200.0%
      right side: Legal Landscape 
  • 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 script using psbook, called thus : "script1a foobook" where the input file is named foobook.ps. The following script is for Linuw. For windows, replace all occurence of '$1' with '%1'.

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

The result will be two files named "foobooke.ps" and "foobooko.ps, set up for running the paper twice through a Ricoh laser printer (For another printer I might need to eliminate the "-r" parameter)

lpr $1o.ps
echo 'switch paper'
read x
lpr $1e.ps
<pre>
and finally for cleanup
<pre>
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"

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)
  • Create Booklet PDF Service Free Acrobat Plug-in (Mac OS X only)

Windows