On Nov 9, 12:30 pm, "m.ugues" <m.ug...@gmail.com> wrote:
> The problem using server side option is that I have a web site with a
> lot of pages.
> For every page I need to generate a PDF; so I need to create a Java
> class for every html page where I reproduce the html layout (since the
> PDF must be the same as the html shown on the screen).

If you're using Java, I'd suggest that you use the Flying Saucer
project [1], which is an XHTML renderer that can output PDF.  You
should be able to create the normal HTML output stream from the
servlet, passing it into the renderer and stream it out as PDF.  Or
there could be simpler techniques depending upon how your HTML is
generated.

Good luck,

  -- Scott

[1] https://xhtmlrenderer.dev.java.net/

Reply via email to