You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Bierenfeld <mi...@atmiralis.de> on 2001/07/04 09:44:09 UTC

PDF File creation Question

Hi,

back from a long vacation :-(. Reality gets me again :

While using cocoon and fop to generate pdf output. I am wondering if its
possible to generate a pdf-file together with the pdf output send with
the response. I am thinking of

<offer filename="whatever.pdf">

   <item>
       bla bla
   </item>

</offer>

This sends the generated pdf to the client and additionaly generates an
pdf file on the server. That could be used to be printed out
automatically or to be archived etc.

Maybe someone has some code sniplets for me or an adress where to get
this info.

Regards

Michael

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: PDF File creation Question

Posted by Ulrich Mayring <ul...@denic.de>.
Gritsenko wrote:
> 
> download from which URL? is that a secret?

No, but I've posted this URL thousands of times to the list already,
plus it's on Cocoon's 3rd party page :-)

It's http://ulim.cocoonhost.com

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: PDF File creation Question

Posted by Michael Bierenfeld <mi...@atmiralis.de>.
Gritsenko wrote:
> 
> download from which URL? is that a secret?

Hi,

hopefully ulrich will not be angry *gg* its : ulim.cocoonhost.com. But
watch out its somewhat hard to read :-)

Regards
Michael

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: PDF File creation Question

Posted by Gritsenko <gr...@home.com>.
download from which URL? is that a secret?


----- Original Message -----
From: "Michael Bierenfeld" <mi...@atmiralis.de>
To: <co...@xml.apache.org>
Sent: Wednesday, July 04, 2001 9:23 AM
Subject: Re: PDF File creation Question


> > Hi Michael,
> >
> > download the SOAP taglib, it has an example of that. The sample is
> > called DocHandler and it can not only save fop-generated PDFs, but also
> > print and fax them and put them into an archive.
> >
> > Ulrich
> >
> > --
> > Ulrich Mayring
> > DENIC eG, Systementwicklung
> >
>
> OK, thanks done. Samples are working like a charme. I think I can use
> it. But when starting the SOAPService DocHandler example I receive :
>
> org.xml.sax.SAXParseException: White space is required between the
> public identifier and the system identifier.
>
> ?-) Dou you know anything about this problem.
>
> Regards
>
> Michael
>
> ähm .... here is deploy-DocHandler.sh
>
> #!/bin/sh
> JAVA_HOME=/usr/lib/java
> SOAP=/usr/local/soap-2_0/lib/soap.jar
> XERCES=/usr/local/cocoon-1.8.2/lib/xerces_1_2.jar
>
DEPLOY=/home/global/Projekte/XmlStandard/fop/soap/samples/SOAPService/deploy
.xml
> SOAP_SERVER=http://thor.atmiralis.de/soap/servlet/rpcrouter
>
> CLASSPATH=${SOAP}:${XERCES}
>
> export JAVA_HOME CLASSPATH
>
> ${JAVA_HOME}/bin/java org.apache.soap.server.ServiceManagerClient
> ${SOAP_SERVER} deploy ${DEPLOY}
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: PDF File creation Question

Posted by Ulrich Mayring <ul...@denic.de>.
Michael Bierenfeld wrote:
> 
> OK, thanks done. Samples are working like a charme. I think I can use
> it. But when starting the SOAPService DocHandler example I receive :
> 
> org.xml.sax.SAXParseException: White space is required between the
> public identifier and the system identifier.
> 
> ?-) Dou you know anything about this problem.

No, perhaps a version thing of Xerces?

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: PDF File creation Question

Posted by Michael Bierenfeld <mi...@atmiralis.de>.
> Hi Michael,
> 
> download the SOAP taglib, it has an example of that. The sample is
> called DocHandler and it can not only save fop-generated PDFs, but also
> print and fax them and put them into an archive.
> 
> Ulrich
> 
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
> 

OK, thanks done. Samples are working like a charme. I think I can use
it. But when starting the SOAPService DocHandler example I receive :

org.xml.sax.SAXParseException: White space is required between the
public identifier and the system identifier.

?-) Dou you know anything about this problem. 

Regards

Michael

ähm .... here is deploy-DocHandler.sh

#!/bin/sh
JAVA_HOME=/usr/lib/java
SOAP=/usr/local/soap-2_0/lib/soap.jar
XERCES=/usr/local/cocoon-1.8.2/lib/xerces_1_2.jar
DEPLOY=/home/global/Projekte/XmlStandard/fop/soap/samples/SOAPService/deploy.xml
SOAP_SERVER=http://thor.atmiralis.de/soap/servlet/rpcrouter

CLASSPATH=${SOAP}:${XERCES}

export JAVA_HOME CLASSPATH

${JAVA_HOME}/bin/java org.apache.soap.server.ServiceManagerClient
${SOAP_SERVER} deploy ${DEPLOY}

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: PDF File creation Question

Posted by Ulrich Mayring <ul...@denic.de>.
Michael Bierenfeld wrote:
> 
> This sends the generated pdf to the client and additionaly generates an
> pdf file on the server. That could be used to be printed out
> automatically or to be archived etc.
> 
> Maybe someone has some code sniplets for me or an adress where to get
> this info.

Hi Michael,

download the SOAP taglib, it has an example of that. The sample is
called DocHandler and it can not only save fop-generated PDFs, but also
print and fax them and put them into an archive.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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