[opencms-dev] generating pdf files

Marian Kasala marian.kasala at apsoft.sk
Thu Apr 25 11:58:25 CEST 2002


Hi,

my problem is different one. I don't intend to generate PDFs from
html pages,
I just have PDFs stored in /download/ directory for downloading from site.
But when I access this file it is not opened correctly  in browser. I expect
to be launched Acrobat Reader but instead PDF is presented like html page.

I think it's problem of setting correct content-type (application/pdf).
Isn't it?
And I expected PdfLauncher does this.
What is correct solution for this?

Best Regards,
Marian Kasala



----- Original Message -----
From: "Manfred Pruntsch" <manfred.pruntsch at ifcos.com>
To: <opencms-dev at www.opencms.org>
Sent: Wednesday, April 24, 2002 4:56 PM
Subject: [opencms-dev] generating pdf files


>
> Hi,
>
> How can I generate a pdf file from a html page?
> opencms has a class (CmsPdfLauncher) for XML templates. The PDF rendering
is
> based on the Formatting Objects Printer (FOP, xml.apache.org/fop)
> cite: (javadoc from this class)
> > This can be used generating PDF output for XML body files
> > using XML template and subtemplate technology.
> > The template data has to be XSL:FO coded.
> > The selected body should define a start template class using
> > <PAGE>  *   <CLASS>...</CLASS> * </PAGE>
> > If no start template is defined, the class given by the parameters will
be
> used.
>
> what are needed?
> - a xml mastertemplate with subtemplate
> - a xsl:fo coded template (how the pdf looks like?! In the fop doc are
many
> examples)
> - a java class launching the pdf generating.
>
> My question is, how it goes on. In other words:
> How do I perform a simple 'Hello World' example for getting pdf to
> understand the basic mechanism.
>
>
> best regards
> Manfred Pruntsch
>
>





More information about the opencms-dev mailing list