From amit.sempiternal at gmail.com  Wed Jan 24 14:54:51 2018
From: amit.sempiternal at gmail.com (Amit Kumar)
Date: Wed, 24 Jan 2018 20:24:51 +0530
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
Message-ID: <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>

Hi,

This is Amit.
I am looking for an open software tools that converts input XML data to pdf
book.

Can you please mail any small POC whose input is XML and output is pdf book.
Need explanation also for steps.

This is urgent, Please do the needful.

Thanks,
Amit

On Wed, Jan 24, 2018 at 8:03 PM, Amit Kumar <amit.sempiternal at gmail.com>
wrote:

> Hi,
>
> This is Amit.
> I am looking for an open software tools that converts input XML data to
> pdf book.
>
> Can you please mail any small POC whose input is XML and output is pdf
> book.
> Need explanation also for steps.
>
> This is urgent, Please do the needful.
>
> Thanks,
> Amit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20180124/c2509f7b/attachment.html>

From ale.comp_06 at xox.ch  Wed Jan 24 15:15:21 2018
From: ale.comp_06 at xox.ch (ale rimoldi)
Date: Wed, 24 Jan 2018 16:15:21 +0100
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
Message-ID: <20180124161521.5a09fcf0@scharfeis.home>

hi amit

as told on irc, you might have a look at the scribus generator:

https://github.com/berteh/ScribusGenerator

ciao
a.l.e


From amit.sempiternal at gmail.com  Wed Jan 24 15:43:44 2018
From: amit.sempiternal at gmail.com (Amit Kumar)
Date: Wed, 24 Jan 2018 21:13:44 +0530
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <20180124161521.5a09fcf0@scharfeis.home>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
Message-ID: <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>

Hi ale,

But i am new to this and might ask silly question also but i didn't see any
input as xml.
Do you have steps to proceed with XML?

Thanks,
Amit

On Wed, Jan 24, 2018 at 8:45 PM, ale rimoldi <ale.comp_06 at xox.ch> wrote:

> hi amit
>
> as told on irc, you might have a look at the scribus generator:
>
> https://github.com/berteh/ScribusGenerator
>
> ciao
> a.l.e
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20180124/301073fa/attachment.html>

From ale.comp_06 at xox.ch  Wed Jan 24 16:02:26 2018
From: ale.comp_06 at xox.ch (ale rimoldi)
Date: Wed, 24 Jan 2018 17:02:26 +0100
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
 <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
Message-ID: <20180124170226.02917ab8@scharfeis.home>

hi amit

> But i am new to this and might ask silly question also but i didn't
> see any input as xml.
> Do you have steps to proceed with XML?

basically, you can convert your xml to csv and get the scribus
generator handle it.

or you can create something similar (but probably simpler) to the
generator and write your own python code that processes your python
code before feeding the values into the scribus file.

i don't know what kind of xml data you have and what are your python
skills, so it's hard to tell you more.

ciao
a.l.e


From amit.sempiternal at gmail.com  Thu Jan 25 02:38:14 2018
From: amit.sempiternal at gmail.com (Amit Kumar)
Date: Thu, 25 Jan 2018 08:08:14 +0530
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <20180124170226.02917ab8@scharfeis.home>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
 <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
 <20180124170226.02917ab8@scharfeis.home>
Message-ID: <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>

Hi Ale,

My POC xml is like below:

<?xml version="1.0" encoding="UTF-8"?>
<company>
<employee>
<employee-id>6018560</employee-id>
<employee-name>Amit</employee-name>
<employee-loc>Bangalore</employee-loc>
</employee>
<employee>
<employee-id>6018089</employee-id>
<employee-name>Jinson</employee-name>
<employee-loc>Bangalore</employee-loc>
</employee>
<employee>
<employee-id>6018011</employee-id>
<employee-name>Madhu</employee-name>
<employee-loc>Bangalore</employee-loc>
</employee>
</company>

Thanks,
Amit

On Wed, Jan 24, 2018 at 9:32 PM, ale rimoldi <ale.comp_06 at xox.ch> wrote:

> hi amit
>
> > But i am new to this and might ask silly question also but i didn't
> > see any input as xml.
> > Do you have steps to proceed with XML?
>
> basically, you can convert your xml to csv and get the scribus
> generator handle it.
>
> or you can create something similar (but probably simpler) to the
> generator and write your own python code that processes your python
> code before feeding the values into the scribus file.
>
> i don't know what kind of xml data you have and what are your python
> skills, so it's hard to tell you more.
>
> ciao
> a.l.e
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20180125/b44ddab4/attachment.html>

From amit.sempiternal at gmail.com  Thu Jan 25 07:10:03 2018
From: amit.sempiternal at gmail.com (Amit Kumar)
Date: Thu, 25 Jan 2018 12:40:03 +0530
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
 <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
 <20180124170226.02917ab8@scharfeis.home>
 <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>
Message-ID: <CADnixzX4uAPYsDD8kGh06v4f11QWFUzYD_Hkt6=cViQpYv=szA@mail.gmail.com>

Hi Ale,
I have tried to go with example suggested by you and i succeed in
generating my own business card.

Although when i tried to create with above XML data to generate...it's
creating the 3 pdf files ( 1.pdf, 2.pdf and 3.pdf for 3 employee).

where to modify to add these in one pdf only?
Thanks in advance!

Thanks,
Amit

On Thu, Jan 25, 2018 at 8:08 AM, Amit Kumar <amit.sempiternal at gmail.com>
wrote:

> Hi Ale,
>
> My POC xml is like below:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <company>
> <employee>
> <employee-id>6018560</employee-id>
> <employee-name>Amit</employee-name>
> <employee-loc>Bangalore</employee-loc>
> </employee>
> <employee>
> <employee-id>6018089</employee-id>
> <employee-name>Jinson</employee-name>
> <employee-loc>Bangalore</employee-loc>
> </employee>
> <employee>
> <employee-id>6018011</employee-id>
> <employee-name>Madhu</employee-name>
> <employee-loc>Bangalore</employee-loc>
> </employee>
> </company>
>
> Thanks,
> Amit
>
> On Wed, Jan 24, 2018 at 9:32 PM, ale rimoldi <ale.comp_06 at xox.ch> wrote:
>
>> hi amit
>>
>> > But i am new to this and might ask silly question also but i didn't
>> > see any input as xml.
>> > Do you have steps to proceed with XML?
>>
>> basically, you can convert your xml to csv and get the scribus
>> generator handle it.
>>
>> or you can create something similar (but probably simpler) to the
>> generator and write your own python code that processes your python
>> code before feeding the values into the scribus file.
>>
>> i don't know what kind of xml data you have and what are your python
>> skills, so it's hard to tell you more.
>>
>> ciao
>> a.l.e
>>
>> _______________________________________________
>> scribus-dev mailing list
>> scribus-dev at lists.scribus.net
>> http://lists.scribus.net/mailman/listinfo/scribus-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20180125/9b757caa/attachment-0001.html>

From ale.comp_06 at xox.ch  Thu Jan 25 07:17:28 2018
From: ale.comp_06 at xox.ch (ale rimoldi)
Date: Thu, 25 Jan 2018 08:17:28 +0100
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
 <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
 <20180124170226.02917ab8@scharfeis.home>
 <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>
Message-ID: <20180125081728.2148e07c@scharfeis.home>

hi amit

> My POC xml is like below:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <company>
> <employee>
> <employee-id>6018560</employee-id>
> <employee-name>Amit</employee-name>
> <employee-loc>Bangalore</employee-loc>
> </employee>
> <employee>
> <employee-id>6018089</employee-id>
> <employee-name>Jinson</employee-name>
> <employee-loc>Bangalore</employee-loc>
> </employee>
> <employee>
> <employee-id>6018011</employee-id>
> <employee-name>Madhu</employee-name>
> <employee-loc>Bangalore</employee-loc>
> </employee>
> </company>

if you're "simply" processing a list of employees,
it's very likely, that you can easily convert this xml to a csv file and
then use the scribus generator.

otherwise, you can also try to use the scripter API and read your XML
from a python script running inside of scribus.
in this case, basic python skills are needed.

ciao
a.l.e


From amit.sempiternal at gmail.com  Thu Jan 25 07:47:40 2018
From: amit.sempiternal at gmail.com (Amit Kumar)
Date: Thu, 25 Jan 2018 13:17:40 +0530
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <20180125081728.2148e07c@scharfeis.home>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
 <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
 <20180124170226.02917ab8@scharfeis.home>
 <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>
 <20180125081728.2148e07c@scharfeis.home>
Message-ID: <CADnixzViZRnHxtqkQibudu69XxmsKzfqKcPHCVko_yvLM6k-kw@mail.gmail.com>

Hi Ale,

Is it possible to read XML directly from scripter API instead of converting
to csv?

Thanks,
Amit

On Thu, Jan 25, 2018 at 12:47 PM, ale rimoldi <ale.comp_06 at xox.ch> wrote:

> hi amit
>
> > My POC xml is like below:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <company>
> > <employee>
> > <employee-id>6018560</employee-id>
> > <employee-name>Amit</employee-name>
> > <employee-loc>Bangalore</employee-loc>
> > </employee>
> > <employee>
> > <employee-id>6018089</employee-id>
> > <employee-name>Jinson</employee-name>
> > <employee-loc>Bangalore</employee-loc>
> > </employee>
> > <employee>
> > <employee-id>6018011</employee-id>
> > <employee-name>Madhu</employee-name>
> > <employee-loc>Bangalore</employee-loc>
> > </employee>
> > </company>
>
> if you're "simply" processing a list of employees,
> it's very likely, that you can easily convert this xml to a csv file and
> then use the scribus generator.
>
> otherwise, you can also try to use the scripter API and read your XML
> from a python script running inside of scribus.
> in this case, basic python skills are needed.
>
> ciao
> a.l.e
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20180125/493e72c3/attachment.html>

From ale.comp_06 at xox.ch  Thu Jan 25 12:49:43 2018
From: ale.comp_06 at xox.ch (ale rimoldi)
Date: Thu, 25 Jan 2018 13:49:43 +0100
Subject: [scribus-dev] Scribus example - Input xml output pdf book
In-Reply-To: <CADnixzViZRnHxtqkQibudu69XxmsKzfqKcPHCVko_yvLM6k-kw@mail.gmail.com>
References: <CADnixzXeOCSm2fS19J_iWaGwOcTSXVNFqMd+MgXm_RmVg3WUxA@mail.gmail.com>
 <CADnixzWfcqRv-ssLahVk3o6-x4o34+Rox_uM27oGr+B6r2BOsA@mail.gmail.com>
 <20180124161521.5a09fcf0@scharfeis.home>
 <CADnixzWYMt942CWHv+m8K=Oy7pc3uiWaPu2c7pzHJyQmuq7EAw@mail.gmail.com>
 <20180124170226.02917ab8@scharfeis.home>
 <CADnixzWOj+qH+y3gEmbC4uAre+HenaPN3RSBy5uYDKMccr75yA@mail.gmail.com>
 <20180125081728.2148e07c@scharfeis.home>
 <CADnixzViZRnHxtqkQibudu69XxmsKzfqKcPHCVko_yvLM6k-kw@mail.gmail.com>
Message-ID: <20180125134943.2cd63301@scharfeis.home>

hi amit

> Is it possible to read XML directly from scripter API instead of
> converting to csv?

> > otherwise, you can also try to use the scripter API and read your
> > XML from a python script running inside of scribus.
> > in this case, basic python skills are needed.

yes
not from the API, but with python and then use the scripter API to fill
your document.

ciao
a.l.e


