You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carl Mace <mc...@ist4.co.umist.ac.uk> on 2001/03/07 10:42:40 UTC

Dynamic XML to PDF

Hi 

When I call my producer to ouput XML which calls a PDF 
stylesheet, I get an object handler error.  It says the content is 
application/pdf which is what it should be, but acrobat isn't opened.

The FAQ says that to get the browser to know it is a PDF, put 

http://someserver/somepage.xml?dummy=test.pdf

but I am calling a producer, so I had an input box that had the value 
of test.pdf so that the URL would be

http://someserver/somepage.xml?dummy=test.pdf&producer=myprod
ucer

This doesn't seem to work.  Has anyone got this to work with a 
producer.

Rgrds

C

Re: Dynamic XML to PDF

Posted by Colin Britton <cb...@centervilletech.com>.
Try reordering the url to

http://someserver/somepage.xml?producer=myproducer&dummy=test.pdf

it is important that the .pdf is at the end to trick IE into thinking it is
a PDF file. I believe this is because IE defaults to a file suffix for known
file application mapping before reading the mime type.

rgds
CB



----- Original Message -----
From: "Carl Mace" <mc...@ist4.co.umist.ac.uk>
To: <co...@xml.apache.org>
Sent: Wednesday, March 07, 2001 4:42 AM
Subject: Dynamic XML to PDF


> Hi
>
> When I call my producer to ouput XML which calls a PDF
> stylesheet, I get an object handler error.  It says the content is
> application/pdf which is what it should be, but acrobat isn't opened.
>
> The FAQ says that to get the browser to know it is a PDF, put
>
> http://someserver/somepage.xml?dummy=test.pdf
>
> but I am calling a producer, so I had an input box that had the value
> of test.pdf so that the URL would be
>
> http://someserver/somepage.xml?dummy=test.pdf&producer=myprod
> ucer
>
> This doesn't seem to work.  Has anyone got this to work with a
> producer.
>
> Rgrds
>
> C
>
> ---------------------------------------------------------------------
> 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: Dynamic XML to PDF

Posted by Kirk Woerner <ki...@stoneseeker.com>.
I think this is a bug in IE that stupidly takes the end of the request as
the datatype in some way.  Try reversing the parameters so the ".pdf" is on
the end...

> Subject: Dynamic XML to PDF
>
>
> Hi
>
> When I call my producer to ouput XML which calls a PDF
> stylesheet, I get an object handler error.  It says the content is
> application/pdf which is what it should be, but acrobat isn't opened.
>
> The FAQ says that to get the browser to know it is a PDF, put
>
> http://someserver/somepage.xml?dummy=test.pdf
>
> but I am calling a producer, so I had an input box that had the value
> of test.pdf so that the URL would be
>
> http://someserver/somepage.xml?dummy=test.pdf&producer=myprod
> ucer
>
> This doesn't seem to work.  Has anyone got this to work with a
> producer.
>
> Rgrds
>
> C
>
> ---------------------------------------------------------------------
> 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>
>