>- see footer for list info -<
Well,

Like you may do I bypassed that completely and now use iText directly. I had
nothing but trouble from CFX_PDF.

Note: cfx_pdf is actually only using iText underneath but its limited in
some way - I am not sure how.

I can certainly help with the iText stuff, I have a library of loads of
things to do on a PDF using iText,

N




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Duncan Cumming
Sent: 08 December 2005 17:02
To: [email protected]
Subject: [CF-Dev] cf_pdf_set_fields

>- 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

--

>- 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 -<
This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
_______________________________________________

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 -<

Reply via email to