[Scribus] Please help with 'simple' scripting task - print the current document
Juraj Fedel
wtxnh-scribus
Fri Jun 22 16:18:02 CEST 2007
On Thu, Jun 21, 2007 at 08:02:21PM -0400, Bill Hudacek wrote:
> Does someone have a trivial example of how to print the current document?
Hi,
Printing current documment should be as trivial as:
p = Printer();
p.Print();
This prints document to ps file on your HD.
if you want to print directly to printer you must first find out
what printers you have installed. Do this in scrip console:
p = Printer();
print p.allPrinters;
It should print something like:
['Printer 1', 'Printer 2', 'File']
Choose printer you want to use ad do:
p = Printer();
p.printer = 'Printer 1';
p.Print();
That should do the trick.
Juraj
More information about the scribus
mailing list