I've been going around and around on trying to get a properly
formatted flat pdf created with my data. I have to say that Adobe's
ability to actually format a multi-line field as it was presented
when it was editable is frustrating. CFMX8, pdfTK and iText all
have the same problem of aligning the data in a multi-line field to
the top when the pdf is flattened. activePDF is the only app i've
found that does the formatting correctly, but they have SO many
other issues with correctly populating a complex form that I'm back
to trying to make something like iText work correct.
I found this function for iText called setExtraMargin(); and
it works perfect with the values 0, 6 to jog the text down. Now my
problem is how to set this dynamicly based on if the the field is
multi-line or not.
I found this bit of code, but I'm not able to figure out how
to convert this to <cfscript>. I need to be able to loop over
something like this for each form key/value pair I'm inserting back
into the pdf template.
Any help would be great.
I'm currently testing on MX8 if it makes a difference. Altho
i will eventually trying to make this work on a cf4.5.1 server.
--Dennis--