RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-18 Thread Brook Davies

Hi Jochem,

Well, I tried working with Adobe Printer driver and never had any success
getting this to work.  Do you have any other pointers you could give me on
this.. I can't afford to fork over 50k for livecycle server for this one
purpose. What else does liveCycle Server include that would be useful to a
CF developer?

Brook

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: September-01-09 2:46 AM
To: cf-talk
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


On Mon, Aug 31, 2009 at 3:46 PM, Brook Davies wrote:
 I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a
 result or find a way to specify an output file. Have you got this working?

Never tried it with ColdFusion / cfprint, but I got it working with
LiveCycle and their equivalent of cfexecute. In essence it is just a
command line print with the PDF printer driver configured to never ask
questions and always print to the same folder / file protected by a
giant lock. First get it working from the command line, then try from
CF. And don't worry if the process doesn't exit afterwards, subsequent
print commands will just use the same process.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326432
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-18 Thread Brook Davies

On the same note, does any one know what LiveCycle ES costs? Is it true its
50k + ? Is that the only solution to signing XFA forms?



-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: September-18-09 8:52 AM
To: cf-talk
Subject: RE: CFPDF can not flatten liveCycle Forms - so how do you?


Hi Jochem,

Well, I tried working with Adobe Printer driver and never had any success
getting this to work.  Do you have any other pointers you could give me on
this.. I can't afford to fork over 50k for livecycle server for this one
purpose. What else does liveCycle Server include that would be useful to a
CF developer?

Brook

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: September-01-09 2:46 AM
To: cf-talk
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


On Mon, Aug 31, 2009 at 3:46 PM, Brook Davies wrote:
 I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a
 result or find a way to specify an output file. Have you got this working?

Never tried it with ColdFusion / cfprint, but I got it working with
LiveCycle and their equivalent of cfexecute. In essence it is just a
command line print with the PDF printer driver configured to never ask
questions and always print to the same folder / file protected by a
giant lock. First get it working from the command line, then try from
CF. And don't worry if the process doesn't exit afterwards, subsequent
print commands will just use the same process.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326435
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-18 Thread Dave Watts

 On the same note, does any one know what LiveCycle ES costs? Is it true its
 50k + ? Is that the only solution to signing XFA forms?

LiveCycle ES is a suite of products. Buying it is kind of like buying
a car - you can get package deals, and the price for the individual
components or the packages can vary wildly depending on how close it
is to the end of the quarter, etc. You really need to talk to an Adobe
sales rep to get a price quote.

I'm not aware of any other way to programmatically sign XFA forms
besides using LiveCycle Digital Signatures ES, which is the module in
question. You don't need to get all the other modules if you just need
to sign forms.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326437
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-03 Thread Arsalan Tariq Keen

Brook,

Please find the code below with inline comments :)
This code is working fine... just set the variables of for input  output 
files according to your need and also the form field population part. This 
should do it... I just tested the code too and it works fine. I have tested 
this code with form created in Adobe LiveCycle 8.0

It's actually the setFormFlattening property which performs flattening. 
You need to set it TRUE.

I hope this helps.


cfset inputFile = c:\path to my source form\myform.pdf
cfset OutputFile1 = c:\path to my output file unflattened\out1.pdf
cfset OutputFile2 = c:\path to my output file flattened\out2.pdf


cfscript
savedErrorMessage = ;
// cfSearching: All file paths are relative to the current directory
fullPathToInputFile = inputFile;
fullPathToOutputFile1 = OutputFile1;
fullPathToOutputFile2 = OutputFile2;

try {
// we create a reader for a certain document
pdfReader1 = createObject(java, 
com.lowagie.text.pdf.PdfReader).init(fullPathToInputFile);

//cfSearching: fill in the form fields but do not flatten the 
form
outputStream1 = createObject(java, 
java.io.FileOutputStream).init(fullPathToOutputFile1);
pdfStamper1 = createObject(java, 
com.lowagie.text.pdf.PdfStamper).init(pdfReader1, outputStream1);

form1 = pdfStamper1.getAcroFields();

//Populating Form Fields
//form1.setField(formfield1, value1);
//form1.setField(formfield2, value2);

//Flatening the form parameter - keeping it value false will 
not flaten 
the form
pdfStamper1.setFormFlattening(false);



//cfSearching: fill in the form fields AND flatten the form
pdfReader2 = createObject(java, 
com.lowagie.text.pdf.PdfReader).init(fullPathToInputFile);
outputStream2 = createObject(java, 
java.io.FileOutputStream).init(fullPathToOutputFile2);
pdfStamper2 = createObject(java, 
com.lowagie.text.pdf.PdfStamper).init(pdfReader2, outputStream2);
form2 = pdfStamper2.getAcroFields();

//Populating form fileds for fomr2
//form2.setField(form2field1, myValue);
//form2.setField(form2field2, myValue2);

//Flatening the form parameter - keeping it value true will 
flaten the 
form
pdfStamper2.setFormFlattening(true);

WriteOutput(Finished!);
}

catch (java.language.Exception de) {
savedErrorMessage = de;
}

// cfSearching: close the stamper and output stream objects
pdfStamper1.close();
outputStream1.close();
pdfStamper2.close();
outputStream2.close();
/cfscript



Regards,
Arsalan

--
From: Brook Davies cft...@logiforms.com
Sent: Wednesday, September 02, 2009 9:52 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: RE: CFPDF can not flatten liveCycle Forms - so how do you?


 Come on Arsalan, you say  then let me tell you ... it's not much of a big
 deal :) you can use iText java

 So then, please do tell me, or show me the code that makes this possible?
 Brook

 -Original Message-
 From: Brook Davies [mailto:cft...@logiforms.com]
 Sent: September-01-09 1:49 PM
 To: cf-talk
 Subject: RE: CFPDF can not flatten liveCycle Forms - so how do you?


 It does not seem to be possible to do flatten XFA forms, even directly via
 itext. We've tried



 -Original Message-
 From: Arsalan Tariq Keen [mailto:arsalk...@hotmail.com]
 Sent: September-01-09 4:28 AM
 To: cf-talk
 Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


 if you people are concerned about flattening LiveCucle Forms (xml based 
 pdf
 forms) using coldfusion ... then let me tell you ... it's not much of a 
 big
 deal :) you can use iText java library pre-installed with CF (Adobe
 CF/Railo/Bluedragon) directly for this purpose :)

 Regards,
 Arsalan

 --
 From: Paul Hastings p...@sustainablegis.com
 Sent: Tuesday, September 01, 2009 3:58 PM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


 might ask on the iTex list, it will be amusing anyway.







 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325971
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-03 Thread Leigh

From: Arsalan Tariq Keen 
 
 This code is working fine... 


That only works for older LiveCycle forms. I believe there were changes in 
either 8.1 or 8.2(?). Afaik, the only way to flatten the newer forms is to use 
LiveCycle.  

-Leigh


  

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325990
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-02 Thread Brook Davies

Come on Arsalan, you say  then let me tell you ... it's not much of a big 
deal :) you can use iText java

So then, please do tell me, or show me the code that makes this possible? 
Brook

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: September-01-09 1:49 PM
To: cf-talk
Subject: RE: CFPDF can not flatten liveCycle Forms - so how do you?


It does not seem to be possible to do flatten XFA forms, even directly via
itext. We've tried



-Original Message-
From: Arsalan Tariq Keen [mailto:arsalk...@hotmail.com] 
Sent: September-01-09 4:28 AM
To: cf-talk
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


if you people are concerned about flattening LiveCucle Forms (xml based pdf 
forms) using coldfusion ... then let me tell you ... it's not much of a big 
deal :) you can use iText java library pre-installed with CF (Adobe 
CF/Railo/Bluedragon) directly for this purpose :)

Regards,
Arsalan

--
From: Paul Hastings p...@sustainablegis.com
Sent: Tuesday, September 01, 2009 3:58 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


 might ask on the iTex list, it will be amusing anyway.

 





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325938
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-01 Thread Jochem van Dieten

On Mon, Aug 31, 2009 at 3:46 PM, Brook Davies wrote:
 I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a
 result or find a way to specify an output file. Have you got this working?

Never tried it with ColdFusion / cfprint, but I got it working with
LiveCycle and their equivalent of cfexecute. In essence it is just a
command line print with the PDF printer driver configured to never ask
questions and always print to the same folder / file protected by a
giant lock. First get it working from the command line, then try from
CF. And don't worry if the process doesn't exit afterwards, subsequent
print commands will just use the same process.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325888
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-01 Thread Paul Hastings

might ask on the iTex list, it will be amusing anyway.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325889
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-01 Thread Arsalan Tariq Keen

if you people are concerned about flattening LiveCucle Forms (xml based pdf 
forms) using coldfusion ... then let me tell you ... it's not much of a big 
deal :) you can use iText java library pre-installed with CF (Adobe 
CF/Railo/Bluedragon) directly for this purpose :)

Regards,
Arsalan

--
From: Paul Hastings p...@sustainablegis.com
Sent: Tuesday, September 01, 2009 3:58 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


 might ask on the iTex list, it will be amusing anyway.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325891
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-09-01 Thread Brook Davies

It does not seem to be possible to do flatten XFA forms, even directly via
itext. We've tried



-Original Message-
From: Arsalan Tariq Keen [mailto:arsalk...@hotmail.com] 
Sent: September-01-09 4:28 AM
To: cf-talk
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


if you people are concerned about flattening LiveCucle Forms (xml based pdf 
forms) using coldfusion ... then let me tell you ... it's not much of a big 
deal :) you can use iText java library pre-installed with CF (Adobe 
CF/Railo/Bluedragon) directly for this purpose :)

Regards,
Arsalan

--
From: Paul Hastings p...@sustainablegis.com
Sent: Tuesday, September 01, 2009 3:58 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


 might ask on the iTex list, it will be amusing anyway.

 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325907
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-31 Thread Brook Davies

Hi Jochem,

I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a
result or find a way to specify an output file. Have you got this working?

Brook

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: August-28-09 1:31 PM
To: cf-talk
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


On Fri, Aug 28, 2009 at 7:37 PM, Brook Davies wrote:
 CFPDF can only flatten forms created with Acrobat , the docs say flatten:
 applies to forms created in Acrobat only (not forms created in
LiveCycle);.

 So how do you flatten a liveCycle form and is it even possible at all?

cfprint them to a pdf printer driver.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325872
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-31 Thread Brook Davies

I tried something else, with no success. I tried setting the permissions on
a PDF so that allowFillIns,allowModifyContents, and allowModifyAnnotations
were all disabled. Again, this works to 'flatten' AcroForms but again just
removes all fields and data from XFA forms. 

Why does Adobe make it so difficult to work with XFA forms?

Brook



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325879
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-31 Thread Dave Watts

 Why does Adobe make it so difficult to work with XFA forms?

Actually, they make it very easy to work with them. All you have to do
is buy LC Output ES!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325880
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-31 Thread Dave Watts

 I tried this to to the 'Adobe PDF' printer with no luck. I didn't get a
 result or find a way to specify an output file. Have you got this working?

You might want to Google command-line pdf printing.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325881
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-28 Thread Brook Davies

CFPDF can only flatten forms created with Acrobat , the docs say flatten:
applies to forms created in Acrobat only (not forms created in LiveCycle);.


 

So how do you flatten a liveCycle form and is it even possible at all?

 

Brook




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325832
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-28 Thread Dave Watts

 CFPDF can only flatten forms created with Acrobat , the docs say flatten:
 applies to forms created in Acrobat only (not forms created in LiveCycle);.

 So how do you flatten a liveCycle form and is it even possible at all?

It's not possible using CFPDF or DDX directly from ColdFusion. To the
best of my knowledge, you'd have to buy LiveCycle Output ES to flatten
LiveCycle forms.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325835
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-28 Thread Jochem van Dieten

On Fri, Aug 28, 2009 at 7:37 PM, Brook Davies wrote:
 CFPDF can only flatten forms created with Acrobat , the docs say flatten:
 applies to forms created in Acrobat only (not forms created in LiveCycle);.

 So how do you flatten a liveCycle form and is it even possible at all?

cfprint them to a pdf printer driver.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325837
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFPDF can not flatten liveCycle Forms - so how do you?

2009-08-28 Thread Brook Davies

Thanks, I'll try that...

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: August-28-09 1:31 PM
To: cf-talk
Subject: Re: CFPDF can not flatten liveCycle Forms - so how do you?


On Fri, Aug 28, 2009 at 7:37 PM, Brook Davies wrote:
 CFPDF can only flatten forms created with Acrobat , the docs say flatten:
 applies to forms created in Acrobat only (not forms created in
LiveCycle);.

 So how do you flatten a liveCycle form and is it even possible at all?

cfprint them to a pdf printer driver.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325839
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4