<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><span style="font-size: 12pt;">On Sun Jul 27 17:32:02 UTC 2014, Juraj Fedel wtxnh-scribus at yahoo.com.au wrote:  </span></div><div> </div><div>> On Sun, Jul 20, 2014 at 07:26:28PM +0200, Marc Balmer wrote:</div><div>> > Or, in other words, are there ways to automate Scribus without user</div><div>> > interaction, i.e. from the commandline?</div><div>></div><div>> Let me try once more to present my solution to this problem! At the</div><div>> bottom of the mail is small patch that enables exactly what Marc is</div><div>> asking for.</div><div>></div><div>> You can create template scribus document 'mydoc.sla' with two text</div><div>> frames and this small python script 'data.py' in the same directory:</div><div>></div><div>> import scribus</div><div>> scribus.openDoc('mydoc.sla')</div><div>> scribus.setText('Name', 'Text1') # get 'Name' and 'Address' from database</div><div>> scribus.setText('Address', 'Text2')</div><div>> pdf = scribus.PDFfile()</div><div>> pdf.file = 'output1.pdf'</div><div>> pdf.save()</div><div>></div><div>> Then run scribus as folow:</div><div>> scribus --python-script data.py</div><div>></div><div>> and you have your output1.pdf file created!</div><div>...</div><div>> PS:</div><div>> I have been posting this or similar solution since 2006 (and Scribus</div><div>> version 1.2 I was using at that time). I would be glad if at least one</div><div>> person try to compile scribus with this patch and confirm that it works</div><div>> on some other computer than mine! If you find it useful it would be</div><div>> extra bonus.</div><div><br></div><div>Thank you for posting the patch!  I had also been looking for a way to run Scribus without user interaction.</div><div><br></div><div>The patch needed only a small change to work with the current 1.5.0svn under Fedora 20.  The example worked except for some font issues in the generated PDF which I think are unrelated to the patch.</div><div><br></div><div>I have attached an updated version of the patch.</div><div><br></div><div>Regards,</div><div>William</div><div><br></div><div><br></div>                                     </div></body>
</html>