I'm trying to use the Django template system to render PDF's from .fdf's.  The 
PDF's are provided by client and I can generate a dummy .fdf from them and edit 
that.  I can use pdftk to merge the two, but it seems like the template system 
does something similar. 

My first problem is that the .fdf has "%" characters in it and I cannot find 
how to escape them in Django.  I guess I could define a variable named 
"percent" and use that to insert the % into the template.

Here's a snippet of my test .fdf file.  Is this idea feasible, or am I trying 
to push a chain?

%FDF-1.2
1 0 obj
<</FDF<</F(/C/all/projects/AccMDS30Server/mds30/templates/NC.pdf)/Fields[
<</T(form1[0].#pageSet[0].MasterPage1[0].Resident[0])/V(Minnie Mouse)>>
<</T(form1[0].#pageSet[0].MasterPage1[0].NumericIdentifier[0])/V(1234567)>>
<</T(form1[0].#pageSet[0].MasterPage1[0].Date[0])/V(today)>>

<</T(form1[0].Page38-SectionZ[0].Z0500[0].Z0500Body[0].Z0500BYear[0])/V(1999)>>
]>>>>
endobj

trailer
<</Root 1 0 R>>
%%EOF

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to