Booklettibus: Difference between revisions
(Utility booklettibus - A3 booklet imposition from A4 pages) |
No edit summary |
||
Line 1: | Line 1: | ||
Booklettibuis is a command-line script written in php (I use PHP for scripting... | Booklettibuis 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. | |||
Line 9: | Line 9: | ||
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 | It take all A4 pages and does imposition as an A3 booklet. | ||
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.... | ||
After conversion the file needs to be opened using Scribus an saved so Scribus automatically fix page attributes | |||
(My 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. | |||
Revision as of 10:01, 5 December 2009
Booklettibuis 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 oh 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 an saved so Scribus automatically fix page attributes
(My 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.
Download here -> [1]
Bye