Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-14 Thread Scott Dunbar
I've been trying for several days now to get this to work and I'm still 
stuck.  Basically all of my work has centered around the XfaForm class.  
It is easy to construct and manipulate the XML data within the XfaForm 
class but how do I save that *back* to the PDF?  I see a   Again, my 
goal is to take a PDF and do the same thing that 
AcroFields.mergeXfaData() did but with a dynamic PDF 1.7 in this case.   
I apologize if I missed something obvious but I just can't seem to see 
what it is.



Leonard Rosenthol wrote:
I'll let Bruno and Paulo comment on the specific names of the APIs - 
but there exist in iText a set of APIs that do form filling on 
XFA-based PDFs instead of on AcroForm-based PDFs.


Leonard

On Nov 10, 2007, at 7:29 PM, Samuel B. Quiring wrote:

Sorry for my ignorance, but what do you mean by the phrase 
XFA-native APIs?  Since you use the plural, can you list two such APIs?
 
-Sam


- Original Message -
*From:* Leonard Rosenthol mailto:[EMAIL PROTECTED]
*To:* Post all your questions about iText here
mailto:itext-questions@lists.sourceforge.net
*Sent:* Saturday, November 10, 2007 9:07 AM
*Subject:* Re: [iText-questions] Pdf 1.7 and merging XFA data

Acrobat 8.1 (and equivalent version of LiveCycle Designer) NO
LONGER SUPPORTS the mirroring of XFA fields into AcroFields in
dynamic documents - which is why you can no longer use the method
you've chosen on dynamic documents.

You need to switch to using the XFA-native APIs.

Leonard


[snip]
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Pdf 1.7 and merging XFA data - solved

2007-11-14 Thread Scott Dunbar
Am I the only one that figures out what I'm doing wrong 10 minutes after 
I ask for help from the world?!!???


I needed to use the setXfa() method in the XfaForm class and pass the 
reader and writer from my stamper.


Thanks to the iText team for continuing to allow me to get my work done 
- you guys rock!


Scott Dunbar wrote:
I've been trying for several days now to get this to work and I'm 
still stuck.  Basically all of my work has centered around the XfaForm 
class.  It is easy to construct and manipulate the XML data within the 
XfaForm class but how do I save that *back* to the PDF?  I see a   
Again, my goal is to take a PDF and do the same thing that 
AcroFields.mergeXfaData() did but with a dynamic PDF 1.7 in this 
case.   I apologize if I missed something obvious but I just can't 
seem to see what it is.



Leonard Rosenthol wrote:
I'll let Bruno and Paulo comment on the specific names of the APIs - 
but there exist in iText a set of APIs that do form filling on 
XFA-based PDFs instead of on AcroForm-based PDFs.


Leonard

On Nov 10, 2007, at 7:29 PM, Samuel B. Quiring wrote:

Sorry for my ignorance, but what do you mean by the phrase 
XFA-native APIs?  Since you use the plural, can you list two such 
APIs?
 
-Sam


- Original Message -
*From:* Leonard Rosenthol mailto:[EMAIL PROTECTED]
*To:* Post all your questions about iText here
mailto:itext-questions@lists.sourceforge.net
*Sent:* Saturday, November 10, 2007 9:07 AM
*Subject:* Re: [iText-questions] Pdf 1.7 and merging XFA data

Acrobat 8.1 (and equivalent version of LiveCycle Designer) NO
LONGER SUPPORTS the mirroring of XFA fields into AcroFields in
dynamic documents - which is why you can no longer use the
method you've chosen on dynamic documents.

You need to switch to using the XFA-native APIs.

Leonard


[snip]


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
  


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-10 Thread Leonard Rosenthol
Acrobat 8.1 (and equivalent version of LiveCycle Designer) NO LONGER  
SUPPORTS the mirroring of XFA fields into AcroFields in dynamic  
documents - which is why you can no longer use the method you've  
chosen on dynamic documents.


You need to switch to using the XFA-native APIs.

Leonard

On Nov 10, 2007, at 12:23 AM, Scott Dunbar wrote:


Paulo,
Thanks for your help.  Rather than clog the mailboxes of every  
iText mailing list user I put a sample at http://www.xigole.com/ 
scott/itext/pdf1.7issue.zip to download (1.4Mb).  This file  
contains roughly the source I'm using and shows that only Acrobat 8  
dynamic files have a problem but Acrobat 7 static and dynamic and  
Acrobat 8 static work.


The file contains a sample XDP (my source data), 4 PDF's (7 and 8  
static and dynamic), the source code (single Java file) and a build  
file.  Once built run either the batch or shell script to generate  
4 different PDF's from the source PDF's.  If there is anything I  
can do to assist this effort I would be happy to do so.  I am  
reading the generated PDF with Adobe Acrobat 8.1.1 Professional.


Thanks again for any help.



Paulo Soares wrote:

I don't have Acrobat 8, so I can't know what's going on there. Plaese
post your pdf in version 7 and version 8 so that I can see the
differences.

Paulo



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Scott Dunbar
Sent: Wednesday, November 07, 2007 5:49 PM
To: Post all your questions about iText here
Subject: [iText-questions] Pdf 1.7 and merging XFA data

Hello,
I've got a version 1.7 PDF that I'm trying to get the
AcroFields out of,
merge XFA data into it, and save it.  If I save the PDF as an
Acrobat 7
(static or dynamic) PDF in LiveCycle Designer 8.0 I can merge
fine.  If
I save it as an Acrobat 8 PDF the result from
PdfStamper.getAcroFields()
seems to be empty and my resulting PDF does not have the any of the
fields filled in.

Is this an existing limitation of iText and PDF version 1.7 or  
should

the code look different?  Thanks very much for any help.

The code:

// inputDataElement is the xfa:data element from an existing XDP  
file


PdfReader inputReader = new PdfReader( input.pdf );

File tempPdfFile = File.createTempFile( sd, .pdf );
FileOutputStream tempPdfOutputStream = new FileOutputStream(
tempPdfFile );
PdfStamper pdfStamper = new PdfStamper( inputReader,
tempPdfOutputStream );

AcroFields fields = pdfStamper.getAcroFields();
fields.mergeXfaData( inputDataElement );

pdfStamper.close();
tempPdfOutputStream.close();


Aviso Legal:

Esta mensagem é destinada exclusivamente ao destinatário. Pode  
conter informação confidencial ou legalmente protegida. A  
incorrecta transmissão desta mensagem não significa a perca de  
confidencialidade. Se esta mensagem for recebida por engano, por  
favor envie-a de volta para o remetente e apague-a do seu sistema  
de imediato. É proibido a qualquer pessoa que não o destinatário  
de usar, revelar ou distribuir qualquer parte desta mensagem.




Disclaimer:

This message is destined exclusively to the intended receiver. It  
may contain confidential or legally protected information. The  
incorrect transmission of this message does not mean the loss of  
its confidentiality. If this message is received by mistake,  
please send it back to the sender and delete it from your system  
immediately. It is forbidden to any person who is not the intended  
receiver to use, distribute or copy any part of this message.





- 


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a  
browser.

Download your FREE copy of Splunk now  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/



-- 
---

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a  
browser.
Download your FREE copy of Splunk now  http://get.splunk.com/ 
___

iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText

Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-10 Thread Samuel B. Quiring
Sorry for my ignorance, but what do you mean by the phrase XFA-native APIs?  
Since you use the plural, can you list two such APIs?

-Sam
  - Original Message - 
  From: Leonard Rosenthol 
  To: Post all your questions about iText here 
  Sent: Saturday, November 10, 2007 9:07 AM
  Subject: Re: [iText-questions] Pdf 1.7 and merging XFA data


  Acrobat 8.1 (and equivalent version of LiveCycle Designer) NO LONGER SUPPORTS 
the mirroring of XFA fields into AcroFields in dynamic documents - which is 
why you can no longer use the method you've chosen on dynamic documents.


  You need to switch to using the XFA-native APIs.


  Leonard


  On Nov 10, 2007, at 12:23 AM, Scott Dunbar wrote:


Paulo,
Thanks for your help.  Rather than clog the mailboxes of every iText 
mailing list user I put a sample at 
http://www.xigole.com/scott/itext/pdf1.7issue.zip to download (1.4Mb).  This 
file contains roughly the source I'm using and shows that only Acrobat 8 
dynamic files have a problem but Acrobat 7 static and dynamic and Acrobat 8 
static work.

The file contains a sample XDP (my source data), 4 PDF's (7 and 8 static 
and dynamic), the source code (single Java file) and a build file.  Once built 
run either the batch or shell script to generate 4 different PDF's from the 
source PDF's.  If there is anything I can do to assist this effort I would be 
happy to do so.  I am reading the generated PDF with Adobe Acrobat 8.1.1 
Professional.

Thanks again for any help.



Paulo Soares wrote: 
I don't have Acrobat 8, so I can't know what's going on there. Plaese
post your pdf in version 7 and version 8 so that I can see the
differences.

Paulo 

  -Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On 
Behalf Of Scott Dunbar
Sent: Wednesday, November 07, 2007 5:49 PM
To: Post all your questions about iText here
Subject: [iText-questions] Pdf 1.7 and merging XFA data

Hello,
I've got a version 1.7 PDF that I'm trying to get the 
AcroFields out of, 
merge XFA data into it, and save it.  If I save the PDF as an 
Acrobat 7 
(static or dynamic) PDF in LiveCycle Designer 8.0 I can merge 
fine.  If 
I save it as an Acrobat 8 PDF the result from 
PdfStamper.getAcroFields() 
seems to be empty and my resulting PDF does not have the any of the 
fields filled in.

Is this an existing limitation of iText and PDF version 1.7 or should 
the code look different?  Thanks very much for any help.

The code:

// inputDataElement is the xfa:data element from an existing XDP file

PdfReader inputReader = new PdfReader( input.pdf );

File tempPdfFile = File.createTempFile( sd, .pdf );
FileOutputStream tempPdfOutputStream = new FileOutputStream( 
tempPdfFile );
PdfStamper pdfStamper = new PdfStamper( inputReader, 
tempPdfOutputStream );

AcroFields fields = pdfStamper.getAcroFields();
fields.mergeXfaData( inputDataElement );

pdfStamper.close();
tempPdfOutputStream.close();
Aviso Legal:

Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 



Disclaimer:

This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.



  
---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  
http://get.splunk.com/--___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
  

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  
http://get.splunk.com/___
iText-questions mailing list

Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-10 Thread Leonard Rosenthol
I'll let Bruno and Paulo comment on the specific names of the APIs -  
but there exist in iText a set of APIs that do form filling on XFA- 
based PDFs instead of on AcroForm-based PDFs.


Leonard

On Nov 10, 2007, at 7:29 PM, Samuel B. Quiring wrote:

Sorry for my ignorance, but what do you mean by the phrase XFA- 
native APIs?  Since you use the plural, can you list two such APIs?


-Sam
- Original Message -
From: Leonard Rosenthol
To: Post all your questions about iText here
Sent: Saturday, November 10, 2007 9:07 AM
Subject: Re: [iText-questions] Pdf 1.7 and merging XFA data

Acrobat 8.1 (and equivalent version of LiveCycle Designer) NO  
LONGER SUPPORTS the mirroring of XFA fields into AcroFields in  
dynamic documents - which is why you can no longer use the method  
you've chosen on dynamic documents.


You need to switch to using the XFA-native APIs.

Leonard

On Nov 10, 2007, at 12:23 AM, Scott Dunbar wrote:


Paulo,
Thanks for your help.  Rather than clog the mailboxes of every  
iText mailing list user I put a sample at http://www.xigole.com/ 
scott/itext/pdf1.7issue.zip to download (1.4Mb).  This file  
contains roughly the source I'm using and shows that only Acrobat  
8 dynamic files have a problem but Acrobat 7 static and dynamic  
and Acrobat 8 static work.


The file contains a sample XDP (my source data), 4 PDF's (7 and  
8 static and dynamic), the source code (single Java file) and a  
build file.  Once built run either the batch or shell script to  
generate 4 different PDF's from the source PDF's.  If there is  
anything I can do to assist this effort I would be happy to do  
so.  I am reading the generated PDF with Adobe Acrobat 8.1.1  
Professional.


Thanks again for any help.



Paulo Soares wrote:
I don't have Acrobat 8, so I can't know what's going on there.  
Plaese

post your pdf in version 7 and version 8 so that I can see the
differences.

Paulo



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Scott Dunbar
Sent: Wednesday, November 07, 2007 5:49 PM
To: Post all your questions about iText here
Subject: [iText-questions] Pdf 1.7 and merging XFA data

Hello,
I've got a version 1.7 PDF that I'm trying to get the
AcroFields out of,
merge XFA data into it, and save it.  If I save the PDF as an
Acrobat 7
(static or dynamic) PDF in LiveCycle Designer 8.0 I can merge
fine.  If
I save it as an Acrobat 8 PDF the result from
PdfStamper.getAcroFields()
seems to be empty and my resulting PDF does not have the any of the
fields filled in.

Is this an existing limitation of iText and PDF version 1.7 or  
should

the code look different?  Thanks very much for any help.

The code:

// inputDataElement is the xfa:data element from an existing XDP  
file


PdfReader inputReader = new PdfReader( input.pdf );

File tempPdfFile = File.createTempFile( sd, .pdf );
FileOutputStream tempPdfOutputStream = new FileOutputStream(
tempPdfFile );
PdfStamper pdfStamper = new PdfStamper( inputReader,
tempPdfOutputStream );

AcroFields fields = pdfStamper.getAcroFields();
fields.mergeXfaData( inputDataElement );

pdfStamper.close();
tempPdfOutputStream.close();


Aviso Legal:

Esta mensagem é destinada exclusivamente ao destinatário. Pode  
conter informação confidencial ou legalmente protegida. A  
incorrecta transmissão desta mensagem não significa a perca de  
confidencialidade. Se esta mensagem for recebida por engano, por  
favor envie-a de volta para o remetente e apague-a do seu sistema  
de imediato. É proibido a qualquer pessoa que não o destinatário  
de usar, revelar ou distribuir qualquer parte desta mensagem.




Disclaimer:

This message is destined exclusively to the intended receiver. It  
may contain confidential or legally protected information. The  
incorrect transmission of this message does not mean the loss of  
its confidentiality. If this message is received by mistake,  
please send it back to the sender and delete it from your system  
immediately. It is forbidden to any person who is not the  
intended receiver to use, distribute or copy any part of this  
message.





 
-

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a  
browser.

Download your FREE copy of Splunk now  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/



- 


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a  
browser.
Download your FREE copy of Splunk now  http://get.splunk.com

Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-09 Thread Scott Dunbar

Paulo,
Thanks for your help.  Rather than clog the mailboxes of every iText 
mailing list user I put a sample at 
http://www.xigole.com/scott/itext/pdf1.7issue.zip to download (1.4Mb).  
This file contains roughly the source I'm using and shows that only 
Acrobat 8 dynamic files have a problem but Acrobat 7 static and dynamic 
and Acrobat 8 static work.


The file contains a sample XDP (my source data), 4 PDF's (7 and 8 
static and dynamic), the source code (single Java file) and a build 
file.  Once built run either the batch or shell script to generate 4 
different PDF's from the source PDF's.  If there is anything I can do to 
assist this effort I would be happy to do so.  I am reading the 
generated PDF with Adobe Acrobat 8.1.1 Professional.


Thanks again for any help.



Paulo Soares wrote:

I don't have Acrobat 8, so I can't know what's going on there. Plaese
post your pdf in version 7 and version 8 so that I can see the
differences.

Paulo 

  

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On 
Behalf Of Scott Dunbar

Sent: Wednesday, November 07, 2007 5:49 PM
To: Post all your questions about iText here
Subject: [iText-questions] Pdf 1.7 and merging XFA data

Hello,
I've got a version 1.7 PDF that I'm trying to get the 
AcroFields out of, 
merge XFA data into it, and save it.  If I save the PDF as an 
Acrobat 7 
(static or dynamic) PDF in LiveCycle Designer 8.0 I can merge 
fine.  If 
I save it as an Acrobat 8 PDF the result from 
PdfStamper.getAcroFields() 
seems to be empty and my resulting PDF does not have the any of the 
fields filled in.


Is this an existing limitation of iText and PDF version 1.7 or should 
the code look different?  Thanks very much for any help.


The code:

// inputDataElement is the xfa:data element from an existing XDP file

PdfReader inputReader = new PdfReader( input.pdf );

File tempPdfFile = File.createTempFile( sd, .pdf );
FileOutputStream tempPdfOutputStream = new FileOutputStream( 
tempPdfFile );
PdfStamper pdfStamper = new PdfStamper( inputReader, 
tempPdfOutputStream );


AcroFields fields = pdfStamper.getAcroFields();
fields.mergeXfaData( inputDataElement );

pdfStamper.close();
tempPdfOutputStream.close();




Aviso Legal:

Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. 




Disclaimer:

This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.



  



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
  


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-08 Thread Paulo Soares
I don't have Acrobat 8, so I can't know what's going on there. Plaese
post your pdf in version 7 and version 8 so that I can see the
differences.

Paulo 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Scott Dunbar
 Sent: Wednesday, November 07, 2007 5:49 PM
 To: Post all your questions about iText here
 Subject: [iText-questions] Pdf 1.7 and merging XFA data
 
 Hello,
 I've got a version 1.7 PDF that I'm trying to get the 
 AcroFields out of, 
 merge XFA data into it, and save it.  If I save the PDF as an 
 Acrobat 7 
 (static or dynamic) PDF in LiveCycle Designer 8.0 I can merge 
 fine.  If 
 I save it as an Acrobat 8 PDF the result from 
 PdfStamper.getAcroFields() 
 seems to be empty and my resulting PDF does not have the any of the 
 fields filled in.
 
 Is this an existing limitation of iText and PDF version 1.7 or should 
 the code look different?  Thanks very much for any help.
 
 The code:
 
 // inputDataElement is the xfa:data element from an existing XDP file
 
 PdfReader inputReader = new PdfReader( input.pdf );
 
 File tempPdfFile = File.createTempFile( sd, .pdf );
 FileOutputStream tempPdfOutputStream = new FileOutputStream( 
 tempPdfFile );
 PdfStamper pdfStamper = new PdfStamper( inputReader, 
 tempPdfOutputStream );
 
 AcroFields fields = pdfStamper.getAcroFields();
 fields.mergeXfaData( inputDataElement );
 
 pdfStamper.close();
 tempPdfOutputStream.close();


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Pdf 1.7 and merging XFA data

2007-11-08 Thread Ismael F

Good morning,
 
I think Is not a limitation; It's the new form especification that is applied 
with LiveCycle Designer 8.0
 
http://www.nabble.com/extent-of-XFA-support-in-itext-t3336804.html
 
If you save it as Acrobat 8.0 (Static) PDF Form, you can access to your form 
fields, but It's probably necessary make the same change in XFA (XML) form.
 
With the Dinamic one, you can access to your XFA form fields via:
 
XfaForm xfa_form = new XfaForm(reader);


XfaForm.Xml2SomTemplate templ = xfa_form.getTemplateSom(); 
org.apache.xerces.dom.DeferredElementNSImpl xfa_form_fieldX = null;
if (templ!=null){
   HashMap templ_hash = templ.getName2Node();
   xfa_form_fieldX = (org.apache.xerces.dom.DeferredElementNSImpl) 
templ_hash.get(form_fieldX_Key);
}
 
With 'xfa_form_fieldX' (if is not NULL) you can now work with XML tools!
 
Ismael
 Date: Wed, 7 Nov 2007 10:49:08 -0700 From: [EMAIL PROTECTED] To: 
 itext-questions@lists.sourceforge.net Subject: [iText-questions] Pdf 1.7 and 
 merging XFA data  Hello, I've got a version 1.7 PDF that I'm trying to get 
 the AcroFields out of,  merge XFA data into it, and save it. If I save the 
 PDF as an Acrobat 7  (static or dynamic) PDF in LiveCycle Designer 8.0 I can 
 merge fine. If  I save it as an Acrobat 8 PDF the result from 
 PdfStamper.getAcroFields()  seems to be empty and my resulting PDF does not 
 have the any of the  fields filled in.  Is this an existing limitation of 
 iText and PDF version 1.7 or should  the code look different? Thanks very 
 much for any help.  The code:  // inputDataElement is the xfa:data 
 element from an existing XDP file  PdfReader inputReader = new PdfReader( 
 input.pdf );  File tempPdfFile = File.createTempFile( sd, .pdf ); 
 FileOutputStream tempPdfOutputStream = new FileOutputStream( tempPdfFile ); 
 PdfStamper pdfStamper = new PdfStamper( inputReader, tempPdfOutputStream ); 
  AcroFields fields = pdfStamper.getAcroFields(); fields.mergeXfaData( 
 inputDataElement );  pdfStamper.close(); tempPdfOutputStream.close();   
 - 
 This SF.net email is sponsored by: Splunk Inc. Still grepping through log 
 files to find problems? Stop. Now Search log events and configuration files 
 using AJAX and a browser. Download your FREE copy of Splunk now  
 http://get.splunk.com/ ___ 
 iText-questions mailing list iText-questions@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText 
 book: http://itext.ugent.be/itext-in-action/
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Pdf 1.7 and merging XFA data

2007-11-07 Thread Scott Dunbar
Hello,
I've got a version 1.7 PDF that I'm trying to get the AcroFields out of, 
merge XFA data into it, and save it.  If I save the PDF as an Acrobat 7 
(static or dynamic) PDF in LiveCycle Designer 8.0 I can merge fine.  If 
I save it as an Acrobat 8 PDF the result from PdfStamper.getAcroFields() 
seems to be empty and my resulting PDF does not have the any of the 
fields filled in.

Is this an existing limitation of iText and PDF version 1.7 or should 
the code look different?  Thanks very much for any help.

The code:

// inputDataElement is the xfa:data element from an existing XDP file

PdfReader inputReader = new PdfReader( input.pdf );

File tempPdfFile = File.createTempFile( sd, .pdf );
FileOutputStream tempPdfOutputStream = new FileOutputStream( tempPdfFile );
PdfStamper pdfStamper = new PdfStamper( inputReader, tempPdfOutputStream );

AcroFields fields = pdfStamper.getAcroFields();
fields.mergeXfaData( inputDataElement );

pdfStamper.close();
tempPdfOutputStream.close();


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/