Re: cfpdfform and PDF Dynamic XML Forms

2009-02-14 Thread Mark Mandel

TJ -

Just some random thoughts -

1) if you run cf from the console, do you see any errors in there? An
exception stack trace may be helpful.
2) If you put a try/catch around it, and dump the cfcatch, do you see
anything special? Sometimes it can show you Java errors you wouldn't
otherwise see.

Mark

On Sat, Feb 14, 2009 at 2:43 PM, TJ Downes koldfu...@gmail.com wrote:


 Hi all,

 I have been banging my head on this issue for a couple of days and hope
 someone has some experience to offer.

 We are replacing PDFs generated by cfdocument with PDF templates developed
 in LiveCycle Designer, due to the issues we have had trying to get our
 results to be consistent. I have what I feel is a solid PDF Form template
 going,and I can populate the form using cfpdfform. The one issue I am having
 is trying to get flowable content working. If you have worked with LiveCycle
 Designer you will know what flowable content is. If you haven't, its the
 ability to allow users to fill in data in a PDF form and the PDF will expand
 to fit the content.

 I have this working (flowable content) in the PDF only when I save it as a
 Dynamic XML Form. I can add data to my form fields and the document
 expands as expected. This behavior does not occur when saved as a standard
 PDF Form. From the limited information i have read, this is by design.

 When I save the document as a Dynamic XML Form and try to populate it with
 CF I get the following error: An exception has occurred in the processing of
 PDF forms. ''

 Pretty vague. Yes, this is even with debugging enabled :)

 I can't seem to do anything to populate the Dynamic PDF Form without
 causing this error. What's odd is that I can read the document just fine. I
 can populate it manually, and a cfdump shows the data as an XML structure
 (that's good!). I can also use the same method to populate a standard PDF
 Form, both using XML and cfpdfformparam. The only thing that isn't working
 is populating the Dynamic XML Form from CF.

 Can someone tell me if this is unsupported, or if there is a workaround? We
 sincerely hate the cfdocument method we have been using, cfpdfform has made
 this so much faster, cleaner and more reliable.

 I would be happy to provide a copy of my template from LiveCycle Designer
 as well as a code sample.

 Thanks
 TJ Downes

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319306
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfpdfform and PDF Dynamic XML Forms

2009-02-14 Thread TJ Downes

Hey Mark, thanks for the suggestion. Not sure why i didn't think of that. It 
did give me some additional info, albeit I don't think it gets me any further 
ahead.

java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at 
java.lang.String.substring(String.java:1938) at 
coldfusion.pdf.XFADataXMLGenerator.createFormXMLData(XFADataXMLGenerator.java:94)
 at coldfusion.tagext.lang.PDFFormTag.doEndTag(PDFFormTag.java:276) at 
cfjustareminder2ecfm765021945._factor10(C:\Inetpub\wwwroot\wma.org\members\forms\repository\print\justareminder.cfm:27)
 at 
cfjustareminder2ecfm765021945._factor11(C:\Inetpub\wwwroot\wma.org\members\forms\repository\print\justareminder.cfm:24)
 at 
cfjustareminder2ecfm765021945.runPage(C:\Inetpub\wwwroot\wma.org\members\forms\repository\print\justareminder.cfm:1)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192) at 
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366) at 
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:2644) at 
cfinterface2ecfm27561726._factor43(C:\Inetpub\wwwroot\wma.org\members\forms\interface.cfm:493)
 at 
cfinterface2ecfm27561726._factor46(C:\Inetpub\wwwroot\wma.org\members\forms\interface.cfm:489)
 at 
cfinterface2ecfm27561726._factor16(C:\Inetpub\wwwroot\wma.org\members\forms\interface.cfm)
 at 
cfinterface2ecfm27561726._factor50(C:\Inetpub\wwwroot\wma.org\members\forms\interface.cfm:482)
 at 
cfinterface2ecfm27561726.runPage(C:\Inetpub\wwwroot\wma.org\members\forms\interface.cfm:1)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192) at 
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366) at 
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at 
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at 
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at 
coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at 
coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at 
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
 at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at 
coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at 
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at 
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at 
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) 
at coldfusion.CfmServlet.service(CfmServlet.java:175) at 
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at 
jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at 
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
 at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at 
jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at 
jrun.servlet.FilterChain.service(FilterChain.java:101) at 
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at 
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284) at 
jrun.servlet..ServletEngineService.dispatch(ServletEngineService.java:543) at 
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at 
jrunx..scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
 at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) 
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) 
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319311
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfpdfform and PDF Dynamic XML Forms

2009-02-14 Thread TJ Downes

I figured this out. For some reason, when working with Dynamic XML Forms, you 
must specify overwritedata=true to the cfpdfform tag. The PDFs are now 
generating correctly. 

As a side note, when you use Dynamic XML Forms for your PDFs it does not look 
like you can use cfpdf to flatten the documents. The resulting document, when 
opened, states you need a newer version of Acrobat to view the document. If 
anyone knows a way around this it would be appreciated





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319319
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfpdfform and PDF Dynamic XML Forms

2009-02-13 Thread TJ Downes

Hi all,

I have been banging my head on this issue for a couple of days and hope someone 
has some experience to offer.

We are replacing PDFs generated by cfdocument with PDF templates developed in 
LiveCycle Designer, due to the issues we have had trying to get our results to 
be consistent. I have what I feel is a solid PDF Form template going,and I can 
populate the form using cfpdfform. The one issue I am having is trying to get 
flowable content working. If you have worked with LiveCycle Designer you will 
know what flowable content is. If you haven't, its the ability to allow users 
to fill in data in a PDF form and the PDF will expand to fit the content. 

I have this working (flowable content) in the PDF only when I save it as a 
Dynamic XML Form. I can add data to my form fields and the document expands 
as expected. This behavior does not occur when saved as a standard PDF Form. 
From the limited information i have read, this is by design. 

When I save the document as a Dynamic XML Form and try to populate it with CF I 
get the following error: An exception has occurred in the processing of PDF 
forms. ''

Pretty vague. Yes, this is even with debugging enabled :)

I can't seem to do anything to populate the Dynamic PDF Form without causing 
this error. What's odd is that I can read the document just fine. I can 
populate it manually, and a cfdump shows the data as an XML structure (that's 
good!). I can also use the same method to populate a standard PDF Form, both 
using XML and cfpdfformparam. The only thing that isn't working is populating 
the Dynamic XML Form from CF. 

Can someone tell me if this is unsupported, or if there is a workaround? We 
sincerely hate the cfdocument method we have been using, cfpdfform has made 
this so much faster, cleaner and more reliable. 

I would be happy to provide a copy of my template from LiveCycle Designer as 
well as a code sample.

Thanks
TJ Downes 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319302
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4