to a): You don't have to.
to b): I wouldn't (quality and PDF size!). Instead create a stylesheet
(for XSL-FO, SVG or both) that places the values in the right places (on
a white page). Then use a PDF-postprocessor to overlay your generated
PDF with the form template, page per page. I've done that once using PJ.
Worked fine. iText should be able to do that, too. HTH.

http://xml.apache.org/fop/resources.html#products-pdf


On 07.04.2004 01:24:08 Glen Mazza wrote:
> Hello,
> 
> Sorry to give such a traumatizing example, but here is
> the U.S. IRS 1040A income tax form:
> 
> http://www.irs.gov/pub/irs-pdf/f1040a.pdf
> 
> Question:  If I wanted to convert a to-be-filled-out
> PDF form available on the web (such as this one) to an
> XSL that can be generated by FOP or a commercial
> implementation (with user-added text printed on it),
> what is the process?*
> 
> a) Would I have to manually declare every line, every
> checkbox, plus all the background text of the form
> within the FO, in addition to what the user may enter
> in?  (I hope not!)
> 
> b) Can I somehow make a BMP or JPEG of the generic
> form, and just specify it as a background to the XSL. 
> Then, I would just need to hardcode the locations of
> where the user-entered text will go.  (I hope so!)
> 
> If (b), what format does one normally save the
> background PDF document as?  Also, what fo:object do I
> use to specify this graphic as the background?
> 
> Thanks,
> Glen
> 
> *My goal is not to convert the 1040A form itself--I'm
> just using this form as an example.

-- 
Jeremias Maerki <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to