You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Glen Mazza <gr...@yahoo.com> on 2004/04/07 01:24:08 UTC

Want to convert a standard form to XSL

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Want to convert a standard form to XSL

Posted by Glen Mazza <gr...@yahoo.com>.
Excellent.  Thanks!

Glen

--- Jeremias Maerki <de...@greenmail.ch> wrote:
> 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 <de...@greenmail.ch>
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Want to convert a standard form to XSL

Posted by Jeremias Maerki <de...@greenmail.ch>.
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 <de...@greenmail.ch>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org