You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Andrew Smith <as...@wpequity.com> on 2002/02/13 20:43:07 UTC

Re: Generating PDF -- quick answer: use LaTeX

On Wed, 2002-02-06 at 11:46, Tom Bednarz wrote:
> Is there any possibility to generate a PDF File on the fly from a HTML page
> that was generated by Velocity. 

You really want to use XML as your primary source for content. 

A nice way to get to PDF is to use LaTeX as an intermediary. This gives
you access to 25 years of typesetting expertise and stability that you
won't find in FOP.

You can even bundle the whole process inside of ant using anakia and the
exec task to run pdfLaTeX at the end.

Using XML your output can scale as follows:

One velocity template to generate HTML
One velocity template to generate LaTeX -> PDF
One velocity template to generate CSV files
One velocity template to generate (the next request your client has)


-a.





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Generating PDF -- quick answer: use LaTeX

Posted by Tom Bednarz <li...@bednarz.ch>.
Andrew,

I did some research in the meantime but no testing (coding) yet.
>
> You really want to use XML as your primary source for content.
>
I guess the better thing is to use XHTML which is basically XML but can be
understood by all current browsers.
XHTML then can be the starting point for any transformation of a document in
a different format.

Thomas


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Generating PDF -- quick answer: use LaTeX

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 2/13/02 2:43 PM, "Andrew Smith" <as...@wpequity.com> wrote:

> On Wed, 2002-02-06 at 11:46, Tom Bednarz wrote:
>> Is there any possibility to generate a PDF File on the fly from a HTML page
>> that was generated by Velocity.
> 
> You really want to use XML as your primary source for content.
> 
> A nice way to get to PDF is to use LaTeX as an intermediary. This gives
> you access to 25 years of typesetting expertise and stability that you
> won't find in FOP.
> 
> You can even bundle the whole process inside of ant using anakia and the
> exec task to run pdfLaTeX at the end.
> 
> Using XML your output can scale as follows:
> 
> One velocity template to generate HTML
> One velocity template to generate LaTeX -> PDF
> One velocity template to generate CSV files
> One velocity template to generate (the next request your client has)

This is a first.  

LaTeX.

This brings back memories...

-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
The question is : What is a Mahnamahna?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Generating PDF -- quick answer: use LaTeX

Posted by bob mcwhirter <bo...@werken.com>.
> You can even bundle the whole process inside of ant using anakia and the
> exec task to run pdfLaTeX at the end.

Likewise, an even smoother integration is to use the anttex
taskdef for ant:

	http://ls10-www.informatik.uni-dortmund.de/~alfert/ant-extension/

Though, I've had to edit the sources to truly clean up all the
aftermath of bonus [La]TeX files.

	-bob


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>