<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 2:52 AM, JLuc <span dir="ltr"><<a href="mailto:jluc@no-log.org" target="_blank">jluc@no-log.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Le 29/07/2014 01:54, William Bader a écrit :<div class="">

<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Sun Jul 27 17:32:02 UTC 2014, Juraj Fedel wtxnh-scribus at <a href="http://yahoo.com.au" target="_blank">yahoo.com.au</a> wrote:   > On Sun, Jul 20, 2014 at 07:26:28PM +0200, Marc Balmer wrote:> > Or, in other words, are there ways to automate Scribus without user> > interaction, i.e. from the commandline?>> Let me try once more to present my solution to this problem! At the> bottom of the mail is small patch that enables exactly what Marc is> asking for.>> You can create template scribus document 'mydoc.sla' with two text> frames and this small python script 'data.py' in the same directory:>> import scribus> scribus.openDoc('mydoc.sla')> scribus.setText('Name', 'Text1') # get 'Name' and 'Address' from database> scribus.setText('Address', 'Text2')> pdf = scribus.PDFfile()> pdf.file = 'output1.pdf'> pdf.save()>> Then run scribus as folo<br>


  w:> scribus --python-script data.py>> and you have your output1.pdf file created!...> PS:> I have been posting this or similar solution since 2006 (and Scribus> version 1.2 I was using at that time). I would be glad if at least one> person try to compile scribus with this patch and confirm that it works> on some other computer than mine! If you find it useful it would be> extra bonus.<br>


Thank you for posting the patch!  I had also been looking for a way to run Scribus without user interaction.<br>
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.<br>
I have attached an updated version of the patch.<br>
</blockquote>
<br></div>
Could you please post this patch in the bug tracker so it got more chances of getting reviewed ?<br>
<a href="http://bugs.scribus.net" target="_blank">http://bugs.scribus.net</a><br>
<br>
Thanks<span class=""><font color="#888888"><br>
JLuc</font></span></blockquote><div> </div><div><div style="font-size:13px;font-family:arial,sans-serif">Perhaps posting in one of these</div><div style="font-size:13px;font-family:arial,sans-serif"><a href="http://bugs.scribus.net/view.php?id=238" target="_blank">http://bugs.scribus.net/view.php?id=238</a><br>

</div><div style="font-size:13px;font-family:arial,sans-serif"><a href="http://bugs.scribus.net/view.php?id=967" target="_blank">http://bugs.scribus.net/view.php?id=967</a></div></div><div><br></div><div>Cheers,</div><div>

/Kunda</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 2:52 AM, JLuc <span dir="ltr"><<a href="mailto:jluc@no-log.org" target="_blank">jluc@no-log.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 29/07/2014 01:54, William Bader a écrit :<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sun Jul 27 17:32:02 UTC 2014, Juraj Fedel wtxnh-scribus at <a href="http://yahoo.com.au" target="_blank">yahoo.com.au</a> wrote:   > On Sun, Jul 20, 2014 at 07:26:28PM +0200, Marc Balmer wrote:> > Or, in other words, are there ways to automate Scribus without user> > interaction, i.e. from the commandline?>> Let me try once more to present my solution to this problem! At the> bottom of the mail is small patch that enables exactly what Marc is> asking for.>> You can create template scribus document 'mydoc.sla' with two text> frames and this small python script 'data.py' in the same directory:>> import scribus> scribus.openDoc('mydoc.sla')> scribus.setText('Name', 'Text1') # get 'Name' and 'Address' from database> scribus.setText('Address', 'Text2')> pdf = scribus.PDFfile()> pdf.file = 'output1.pdf'> pdf.save()>> Then run scribus as folo<br>


  w:> scribus --python-script data.py>> and you have your output1.pdf file created!...> PS:> I have been posting this or similar solution since 2006 (and Scribus> version 1.2 I was using at that time). I would be glad if at least one> person try to compile scribus with this patch and confirm that it works> on some other computer than mine! If you find it useful it would be> extra bonus.<br>


Thank you for posting the patch!  I had also been looking for a way to run Scribus without user interaction.<br>
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.<br>
I have attached an updated version of the patch.<br>
</blockquote>
<br></div>
Could you please post this patch in the bug tracker so it got more chances of getting reviewed ?<br>
<a href="http://bugs.scribus.net" target="_blank">http://bugs.scribus.net</a><br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
JLuc</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20140728/f4262110/attachment.html" target="_blank">http://lists.scribus.net/<u></u>pipermail/scribus/attachments/<u></u>20140728/f4262110/attachment.<u></u>html</a>><br>


-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: scribus-cmd-wb-28jul14.pat<br>
Type: application/octet-stream<br>
Size: 6294 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20140728/f4262110/attachment.obj" target="_blank">http://lists.scribus.net/<u></u>pipermail/scribus/attachments/<u></u>20140728/f4262110/attachment.<u></u>obj</a>><br>


___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net" target="_blank">scribus@lists.scribus.net</a><br>
Edit your options or unsubscribe:<br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/<u></u>mailman/listinfo/scribus</a><br>
See also:<br>
<a href="http://wiki.scribus.net" target="_blank">http://wiki.scribus.net</a><br>
<a href="http://forums.scribus.net" target="_blank">http://forums.scribus.net</a><br>
<br>
</blockquote>
<br>
<br>
<br>
___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net" target="_blank">scribus@lists.scribus.net</a><br>
Edit your options or unsubscribe:<br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/<u></u>mailman/listinfo/scribus</a><br>
See also:<br>
<a href="http://wiki.scribus.net" target="_blank">http://wiki.scribus.net</a><br>
<a href="http://forums.scribus.net" target="_blank">http://forums.scribus.net</a><br>
</div></div></blockquote></div><br></div>