Booklettibus: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(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... is very powerful).
Booklettibuis is a command-line script written in php (I use PHP for scripting... it's very powerful).


It take a scribus A4 document and do booklet imposition on A3 Pages.
booklettibus.php takes a Scribus A4 document and does booklet imposition on A3 pages.




Line 9: Line 9:




Input file need to be a file of scribus >= 1.3.5 and in plain text (no sla.gz).
The input file needs to be a file of Scribus >= 1.3.5 and not compressed (no sla.gz).


Script work only if documend has a page number multiple of 4 and double-sieded layout, media size A4.
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 page and do imposition as A3 booklet.
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 work fine using my sla document (all with the same structure automatically generated by script) but
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 an saved so Scribus automatically fix page attributes


(My script sets wrong PAGEXPOS and PAGEYPOS attributes for all "PAGE" tags but Scribus fixes them).


After conversion file need to be opened using scribus an saved so scribus automatically fix page attributes


(My script set wrong PAGEXPOS and PAGEYPOS attributes all tag "PAGE" but scribus fix they).
If a document contains an object placed across two pages, it won't be correctly placed after imposition.




If document contain an object placed across two pages, it will be placed in a wrong place after imposition.
I will be very happy, if someone wants to test the script, send me feedback or help me to improve it.
 
 
If someone want to test it, send me feedback or help me to improve script I will be very happy.





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