Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Generate PocketMod layouts via the Print dialog System
Using the built-in Mac OS X Automator scripting function, plus the Java-based Multivalent PDF Manipulation Toolkit, one can now create PocketMod documents from any Mac OS X application.

PocketMod is an origami-like manipulation of an 8½" by 11" piece of paper into an eight-page booklet. The output of the standard OS X print dialog box is manipulated using Multivalent to create the PocketMod format. This technique replaces the Flash-based version from the PocketMod website, and the stand-alone PagePacker application. The basics of the process are:
  1. Install Multivalent.
  2. Create an Automator workflow with the following Run Shell Script action:
    cat "$1" > /tmp/temp$$.pdf && java -classpath /path/to/Multivalent20060102.jar tool.pdf.Impose -dim 2x4 -layout "1l,2r,8l,3r,7l,4r,6l,5r" -paper letter -verbose /tmp/temp$$.pdf 2> /tmp/temp$$.err && open /tmp/temp$$-up.pdf
    Replace /path/to with the full Unix path to the Multivalent program.
  3. Save the Workflow as Print Workflow plug-in.
  4. Print as you would normally, and choose the PocketMod Mac option in the PDF pop-up menu.
Full details can be found in this post on the Disruptive Library Technology Jester blog.

[robg adds: I tried this, and it seemed to work as described.]
    •    
  • Currently 2.00 / 5
  You rated: 1 / 5 (4 votes cast)
 
[16,039 views]  

10.4: Generate PocketMod layouts via the Print dialog | 9 comments | Create New Account
Click here to return to the '10.4: Generate PocketMod layouts via the Print dialog' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Generate PocketMod layouts via the Print dialog
Authored by: ygor on Aug 20, '07 09:03:10AM

Do you have to have 8 pages ? Does it work for (pageCount != 8) ?



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: gumse on Aug 21, '07 07:09:04AM

And for those of us that have full duplex printers:

cat "$1" > /tmp/temp$$.pdf && java -classpath /Applications/Utilities/Multivalent20060102.jar tool.pdf.Impose -dim 2x2 -paper A4 -layout "8,1,5u,4u,2,7,3u,6u" -verbose /tmp/temp$$.pdf 2> /tmp/temp$$.err && open /tmp/temp$$-up.pdf



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: gumse on Aug 21, '07 11:30:19AM

16 page layout on duplex printer:

cat "$1" > /tmp/temp$$.pdf && java -classpath /Applications/Utilities/Multivalent20060102.jar tool.pdf.Impose -dim 2x4 -paper A4 -layout "1l,8r,16l,9r,13l,12r,4l,5r,7l,2r,10l,15r,11l,14r,6l,3r" -sep 1 -verbose /tmp/temp$$.pdf 2> /tmp/temp$$.err && open /tmp/temp$$-up.pdf



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: macawm on Aug 21, '07 07:44:28AM

Problems:
One I always get zero KB files and no error files.

I have doubled checked the script, any ideas on troubleshooting?



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: gumse on Aug 21, '07 11:28:32AM

Make sure to select "as arguments" in the PopUp in Automator



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: macawm on Aug 22, '07 09:25:42AM

Thanks that did the trick.



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: mundie1010 on Aug 27, '07 07:56:33AM

This did not work for me. When I use it, the pages on the "recto" booklet are ordered 1, 8, 9, 12, 5, 4, 13, and 16; the "verso" booklet goes 11, 10, 7, 2, 15, 14, 3, 6. Using the original version of the code generated the results I expected, even with a 16-page document.

Maybe I haven't understood how this is supposed to work. I was very glad, however, to learn about putting in borders with "-sep 1'; makes cutting much easier.



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: mundie1010 on Aug 27, '07 08:03:55AM

Sorry, this was a comment on gumse's "16 page layout on duplex printer" version, not the original version. Somehow it got misplaced.



[ Reply to This | # ]
10.4: Generate PocketMod layouts via the Print dialog
Authored by: mundie1010 on Nov 21, '07 10:38:42AM

This seems to be broken in Leopard. Does anyone know how to fix it?




[ Reply to This | # ]