cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "joao tiago a. m. viegas" <>
Subject Re: problem showing pdf as text/plain with resourcereader
Date Mon, 19 Oct 2009 15:58:35 GMT
Thank you very much Alexander,

i've discovered with LiveHTTPHeaders addon that the content-length is = 0

the pipeline section is this:

                <map:act type="invoice-save-action">
                        <map:select type="parameter">
                        <map:parameter name="parameter-selector-test"
                        <map:when test="1">
                                <map:serialize type="invoice2filesys">
                                        <map:parameter name="path"
                                        <map:parameter name="file"
                                 <map:read type="resource"
src="{path}/{file}" mime-type="application/pdf" />
                                <map:serialize type="fo2pdf"/>


it tests if it's desired to save the file in the filesystem, and if so,
saves it (it does gets saved allright though), but the reader simply does
not work!

i'm I overlooking something here?

com os melhores cumprimentos
joão tiago viegas

2009/10/18 Alexander Daniel <>

> On 17.10.2009, at 10:34, joao tiago a. m. viegas wrote:
>  Hello everyone,
>> i'm having this problem where i want to read static pdf files in the
>> server and "supply" them to the browser for being read by the acrobat pdf
>> plugin. The plugin always complains about it being a text/plain file.
>> I'm using the default resource reader and specifying the mime-type, just
>> like in the user documentation, strictly by the book.
> For analysis you could check with Firefox Add-on Live HTTP Headers [1]
> whether the HTTP response headers are sent correctly to the browser.
> Alex
> [1]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message