>- see footer for list info -<
Has anyone ever succesfully used <cf_pdf_set_fields> in Easel2's CfxPDF? Seem
to be having some problems with it. I can read a form field, but can't write
to it.
<cf_pdf_read_fields file="file1.pdf">
<cfoutput query="request.pdffieldinfo">
#request.pdffieldinfo.field#: #request.pdffieldinfo.value#<br>
</cfoutput>
This gives me a list of the form fields and their values, if any. So far ok.
Supposedly I can then pass it a Query object consisting of 2 columns named
Field and Value, which will then write those values to those fields.
<cfset newfields = QueryNew("field,value")>
<cfset temp = QueryAddRow(newfields, 1)>
<cfset temp = QuerySetCell(newfields, "field", "field1")>
<cfset temp = QuerySetCell(newfields, "value", "afdsf")>
<cfset temp = QueryAddRow(newfields, 1)>
<cfset temp = QuerySetCell(newfields, "field", "field2")>
<cfset temp = QuerySetCell(newfields, "value", "ffff")>
<cf_pdf_set_fields infile="file1.pdf" outfile="file2.pdf" fields="#newfields#">
This saves a new file, but without any noticable changes to the form values.
If I then use <cf_pdf_read_fields> to try and read the contents of that file, I
get nothing. I'm about to give up and start again with iText instead, unless
anyone has any tips.
Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105
**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed and
should not be disclosed to any other party.
If you have received this email in error please notify your system manager and
the sender of this message.
This email message has been swept for the presence of computer viruses but no
guarantee is given that this e-mail message and any attachments are free from
viruses.
Fife Council
Tel: +44 (0) 1592 414141
**********************************************************************
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<