Hopefully Mark won't mind a few corrections...

First, please don't refer to them as LCD-forms, that's a software product NOT a 
technology name.  The technology is called XFA, and so these are XFA-based 
forms.

Second, there are two types of XFA-based forms - Static and Dynamic.  ONLY in a 
static XFA is there both XFA (XML) and PDF.  In a dynamic XFA form there is 
ONLY XFA/XML.

Third, that <config> you provided has NOTHING do with creating "PDF stuff from 
XML stuff".  Instead, what you are telling the conforming XFA processor is that 
you wish the content to be dynamically (and quickly!!!) rendered to screen 
using the new model introduced in Acrobat 8.1 INSTEAD of a MUCH SLOWER method 
that preceeded it.

Leonard


On 4/21/09 6:18 PM, "Mark Storer" <[email protected]> wrote:

Marc janvier <marc-janvier <at> sab2i.com> writes:

>       - In conclusion i open the PDF file, i can see my changes in the xfa
> dom, but not on the screen.
>
> What is the problem ?? is it a bug of iText ?
>

No, it's not a bug.  If I'm right, the problem is that iText only changes the
DOM, not the rest of the PDF.

LCD forms are a mixture of PDF Stuff and XML Stuff.  iText has no idea how to
update the PDF side of things to match the XML.

Having said that: there /might/ be a way to fix this.  There's an XFA setting
you can use that tells Reader/Acrobat to generate all the PDF Stuff to match
the XML.  Lets see if I can dig it up...

Aha.  Here's a trimmed down section of <config> that should (or at least "used
to") tell Acrobat/Reader/whatever to render the PDF Stuff for you:

<config xmlns=\"http://www.xfa.org/schema/xci/1.0/\";>
  <acrobat>
    <acrobat7>
      <dynamicRender>required</dynamicRender>
    </acrobat7>
  </acrobat>
</config>

I yanked out quite a bit of XML there, some if it may be relevant.  I
investigated porting our PDF forms to XFA a while back, but we ended up
staying with AcroForms instead... So I know just enough about XFA to get into
trouble.  ;)

You may have to remove some or all of the existing PDF in order to get the
"dynamicRender" to work.  It's also possible that Acrobat 8 & 9 will ignore
the contents of the <acrobat7> tag.  I really don't know.

--Mark Storer
  Senior Software Engineer
  Cardiff.com

#include <disclaimer>
typedef std::disclaimer<Cardiff> DisCard;


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to