Re: XML to PDF

View: New views
7 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: XML to PDF

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This example helped me to fill a PDF form:

http://1t3xt.info/examples/browse/?page=example&id=348

Claudius


     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XML to PDF

by Joe Wicentowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Claudius,

I don't suppose this means you have created an iText module for eXist?
 If so, I'd be interested to hear more!

TIA,
Joe


On Mon, Oct 26, 2009 at 9:36 AM, claudius teo <claud108@...> wrote:
> This example helped me to fill a PDF form:
>
> http://1t3xt.info/examples/browse/?page=example&id=348
>
> Claudius

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XML to PDF

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I only tested again and again, and found out that that example is a basis for filling out the fields of an PDF form.

I only have two days experience of Java :)

What should I use to make an eXist module? It is good to use Florent Georges' article "eXist extension functions in Java" ?
http://fgeorges.blogspot.com/

That example uses string to replace known fields.

I think that an elegant approach would imply:
1. loading of pdf from file or stdin
2. loading of replacing xfa file from file or stdin
3. replacing of xfa
4. outputting the modified pdf to file or stdout

Claudius


     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XML to PDF

by Joe Wicentowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Claudius,

I'm afraid I can't help you at all with questions about creating
modules - I'm just a user with interest in using XQuery to manipulate
PDFs.  I've recently been diving into XSL-FO and the xslfo module that
comes with eXist.  It seems to me that the xslfo module is great for
generating PDFs from XML, but appears to provide none of the form
functionality you're looking for, and definitely doesn't give you a
way to manipulate existing PDFs.  I think an iText module would be
very useful!  Perhaps others will provide some suggestions about
implementing a module.

Joe


On Mon, Oct 26, 2009 at 11:21 AM, claudius teo <claud108@...> wrote:

> I only tested again and again, and found out that that example is a basis for filling out the fields of an PDF form.
>
> I only have two days experience of Java :)
>
> What should I use to make an eXist module? It is good to use Florent Georges' article "eXist extension functions in Java" ?
> http://fgeorges.blogspot.com/
>
> That example uses string to replace known fields.
>
> I think that an elegant approach would imply:
> 1. loading of pdf from file or stdin
> 2. loading of replacing xfa file from file or stdin
> 3. replacing of xfa
> 4. outputting the modified pdf to file or stdout
>
> Claudius
>
>
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XML to PDF

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, if you want to generate a PDF then XSL:FO and eXist's xslfo
module is definitely the way forward.

If you need specific features of iText, then you could indeed create
an iText extension module for eXist.

2009/10/26 Joe Wicentowski <joewiz@...>:

> Hi Claudius,
>
> I'm afraid I can't help you at all with questions about creating
> modules - I'm just a user with interest in using XQuery to manipulate
> PDFs.  I've recently been diving into XSL-FO and the xslfo module that
> comes with eXist.  It seems to me that the xslfo module is great for
> generating PDFs from XML, but appears to provide none of the form
> functionality you're looking for, and definitely doesn't give you a
> way to manipulate existing PDFs.  I think an iText module would be
> very useful!  Perhaps others will provide some suggestions about
> implementing a module.
>
> Joe
>
>
> On Mon, Oct 26, 2009 at 11:21 AM, claudius teo <claud108@...> wrote:
>> I only tested again and again, and found out that that example is a basis for filling out the fields of an PDF form.
>>
>> I only have two days experience of Java :)
>>
>> What should I use to make an eXist module? It is good to use Florent Georges' article "eXist extension functions in Java" ?
>> http://fgeorges.blogspot.com/
>>
>> That example uses string to replace known fields.
>>
>> I think that an elegant approach would imply:
>> 1. loading of pdf from file or stdin
>> 2. loading of replacing xfa file from file or stdin
>> 3. replacing of xfa
>> 4. outputting the modified pdf to file or stdout
>>
>> Claudius
>>
>>
>>
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XML to PDF

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Claudius

Take  a look at the example module and some of the other existing
modules to understand how they work - the code is in
$EXIST_HOME/extensions/modules/src.

That should provide you with enough examples to get started, then let
us know what else you need to know ;-)

Cheers Adam.

2009/10/26 claudius teo <claud108@...>:

> I only tested again and again, and found out that that example is a basis for filling out the fields of an PDF form.
>
> I only have two days experience of Java :)
>
> What should I use to make an eXist module? It is good to use Florent Georges' article "eXist extension functions in Java" ?
> http://fgeorges.blogspot.com/
>
> That example uses string to replace known fields.
>
> I think that an elegant approach would imply:
> 1. loading of pdf from file or stdin
> 2. loading of replacing xfa file from file or stdin
> 3. replacing of xfa
> 4. outputting the modified pdf to file or stdout
>
> Claudius
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XML to PDF

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

With iText seems easy and elegant to replace all the datasets within the XFA of a PDF file, this leading to dynamic filling a PDF, but the usage rights are broken, and they don't seem to want to fix that. Neither do I, as I don't know Java.

So, if anyone knows another Java library that could replace the datasets within the XFA AND preserve the usage rights, such modele for PDF forms could be set and used for new PDF files' types.

iText works with AcroFields, namely with PDFs that have a static structure of fields (old PDF files).

I will keep looking,
Claudius