Booklettibus: Difference between revisions
(Utility booklettibus - A3 booklet imposition from A4 pages) |
m (Fixed a few typos) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Booklettibus is a command-line script written in php (I use PHP for scripting... it's very powerful). | |||
booklettibus.php takes a Scribus A4 document and does booklet imposition on A3 pages. | |||
*Linux: '''<tt>php booklettibus.php <input file> [<output file>]</tt>''' | |||
*Windows: '''<tt><path to php>\php.exe booklettibus.php <input file> [<output file>]</tt>''' | |||
The input file needs to be a file of Scribus >= 1.3.5 and not compressed (no sla.gz). | |||
The script works only if the document's number of pages is a multiple of 4, the layout is double-sided, and the media size is A4. | |||
It take all A4 pages and does imposition as an A3 booklet. | |||
It take all A4 | |||
It could be easily improved to support all media size. | It could be easily improved to support all media size. | ||
It | It works fine using my .sla document (all with the same structure automatically generated by script) but I don't know what happens using other files.... | ||
I don't know what happens using other files.... | |||
After conversion the file needs to be opened using Scribus and saved so Scribus automatically fixes page attributes. Currently the script sets wrong PAGEXPOS and PAGEYPOS attributes for all "PAGE" tags but Scribus fixes them. | |||
If a document contains an object placed across two pages, it won't be correctly placed after imposition. | |||
I will be very happy, if someone wants to test the script, send me feedback or help me to improve it (You can use wiki discussion feature). | |||
Download here: [http://wiki.scribus.net/images/3/31/Booklettibus.tar.gz http://wiki.scribus.net/images/3/31/Booklettibus.tar.gz] | |||
Bye | Bye |
Latest revision as of 14:29, 9 December 2009
Booklettibus is a command-line script written in php (I use PHP for scripting... it's very powerful).
booklettibus.php takes a Scribus A4 document and does booklet imposition on A3 pages.
- Linux: php booklettibus.php <input file> [<output file>]
- Windows: <path to php>\php.exe booklettibus.php <input file> [<output file>]
The input file needs to be a file of Scribus >= 1.3.5 and not compressed (no sla.gz).
The script works only if the document's number of pages is a multiple of 4, the layout is double-sided, and the media size is A4.
It take all A4 pages and does imposition as an A3 booklet.
It could be easily improved to support all media size.
It works fine using my .sla document (all with the same structure automatically generated by script) but I don't know what happens using other files....
After conversion the file needs to be opened using Scribus and saved so Scribus automatically fixes page attributes. Currently the script sets wrong PAGEXPOS and PAGEYPOS attributes for all "PAGE" tags but Scribus fixes them.
If a document contains an object placed across two pages, it won't be correctly placed after imposition.
I will be very happy, if someone wants to test the script, send me feedback or help me to improve it (You can use wiki discussion feature).
Download here: http://wiki.scribus.net/images/3/31/Booklettibus.tar.gz
Bye