RE: Render pdf via Servlet !

2001-12-30 Thread Conal Tuohy
Hi Meena

FOP does support PDF "bookmarks", using an extension to the "fo" namespace.
I've used FOP (inside Cocoon) to produce a PDF document like this and it
worked beautifully. For example, see the fo document at
http://havana.reddfish.co.nz/cocoon/listserver/listserver.fo and the pdf
version at http://havana.reddfish.co.nz/cocoon/listserver/listserver.pdf

One easy mistake to watch out for: did you remember the namespace
declaration for "fox"? For example, here's the start of my fo document. Note
the root element contains a declaration for the "fox" namespace in addition
to the usual "fo" namespace. Without this declaration, any "fox" elements
are meaningless to FOP and would be ignored, I believe.


http://xml.apache.org/fop/extensions";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>


About Ikakura


Installation

System Requirements
etc.

If you still have problems, show us a piece of code.

Regards

Con

> -Original Message-
> From: Meena [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 27 December 2001 22:20
> To: [EMAIL PROTECTED]
> Subject: Re: Render pdf via Servlet !
>
>
> Hi,
> I've got a query. I want to convert an xml file into a pdf
> file. Presently
> i'm using xslt to convert xml to fo file. Then use fop to
> convert it into
> pdf file. I want a bookmark session in the pdf file. The xsl file has
> something like 
> But when I use fop, i'm not getting the bookmark part of it.
> Should I use
> anyother parser to generate the pdf with bookmark?
>
> Please help.
>
> Regds,
> MEena
>
>
>
>
>



Re: Render pdf via Servlet !

2001-12-27 Thread Meena
Hi,
I've got a query. I want to convert an xml file into a pdf file. Presently
i'm using xslt to convert xml to fo file. Then use fop to convert it into
pdf file. I want a bookmark session in the pdf file. The xsl file has
something like 
But when I use fop, i'm not getting the bookmark part of it. Should I use
anyother parser to generate the pdf with bookmark?

Please help.

Regds,
MEena



---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its 
Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.



RE: Render pdf via Servlet !

2001-12-26 Thread Lakshmi Anantharaman
Yes , They work outside of the Servlet !


-Original Message-
From: Max Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 3:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Render pdf via Servlet !


The glossary files work here; FOP 0.20.1, the Xalan and Xerces versions
that came with the FOP distribution.  Does the transformation to FO and
then PDF work outside of the servlet for you?

Max

-Original Message-
From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 26, 2001 2:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Render pdf via Servlet !


Thanks Max , I am able to open pdf files in my IE . My servlet very well
transforms ?fo=xxx.fo to pdf and open them.
Anything else . Would it be the the fo document is not correct ?

Lakshmi 


-Original Message-
From: Max Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: RE: Render pdf via Servlet !


Are you by chance using IE?  There is the classic bug for some versions
of IE that if the URL doesn't end in ".pdf", IE won't recognize it as a
PDF file.  In that case, add a fake parameter like 

?ielikes=.pdf 

to the url.


Max


RE: Render pdf via Servlet !

2001-12-26 Thread Max Dunn
The glossary files work here; FOP 0.20.1, the Xalan and Xerces versions
that came with the FOP distribution.  Does the transformation to FO and
then PDF work outside of the servlet for you?

Max

-Original Message-
From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 26, 2001 2:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Render pdf via Servlet !


Thanks Max , I am able to open pdf files in my IE . My servlet very well
transforms ?fo=xxx.fo to pdf and open them.
Anything else . Would it be the the fo document is not correct ?

Lakshmi 


-Original Message-
From: Max Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: RE: Render pdf via Servlet !


Are you by chance using IE?  There is the classic bug for some versions
of IE that if the URL doesn't end in ".pdf", IE won't recognize it as a
PDF file.  In that case, add a fake parameter like 

?ielikes=.pdf 

to the url.


Max



RE: Render pdf via Servlet !

2001-12-26 Thread Lakshmi Anantharaman
Thanks Max , I am able to open pdf files in my IE . My servlet very well
transforms ?fo=xxx.fo to pdf and open them.
Anything else . Would it be the the fo document is not correct ?

Lakshmi 


-Original Message-
From: Max Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: RE: Render pdf via Servlet !


Are you by chance using IE?  There is the classic bug for some versions
of IE that if the URL doesn't end in ".pdf", IE won't recognize it as a
PDF file.  In that case, add a fake parameter like 

?ielikes=.pdf 

to the url.


Max

-Original Message-
From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 26, 2001 2:13 PM
To: '[EMAIL PROTECTED]'
Subject: Render pdf via Servlet !


Got through this ( Driver.setLogger()) ,
I have a test xml /xsl-fo glossary.xml / glossary.xsl that came as part
of
Fop distribution . Not able to get my servlet to open up the PDF . It
retruns a blank page ! Any help appreciated !

Thanks 
lakshmi 


-Original Message-
From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 1:56 PM
To: '[EMAIL PROTECTED]'
Subject: [ERROR]: Logger not set


How does one set the logger ?

Thanks
Lakshmi 


RE: Render pdf via Servlet !

2001-12-26 Thread Max Dunn
Are you by chance using IE?  There is the classic bug for some versions
of IE that if the URL doesn't end in ".pdf", IE won't recognize it as a
PDF file.  In that case, add a fake parameter like 

?ielikes=.pdf 

to the url.


Max

-Original Message-
From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 26, 2001 2:13 PM
To: '[EMAIL PROTECTED]'
Subject: Render pdf via Servlet !


Got through this ( Driver.setLogger()) ,
I have a test xml /xsl-fo glossary.xml / glossary.xsl that came as part
of
Fop distribution . Not able to get my servlet to open up the PDF . It
retruns a blank page ! Any help appreciated !

Thanks 
lakshmi 


-Original Message-
From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 1:56 PM
To: '[EMAIL PROTECTED]'
Subject: [ERROR]: Logger not set


How does one set the logger ?

Thanks
Lakshmi