You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2002/05/03 15:44:37 UTC
FO-PDF in a subsite - what is required?
Hi
Still trying to get FO-PDF working - the hello.pdf sample
in the Cocoon samples directory works fine, but as soon
as I copy the sample XML file and the stylesheet over to
a subsite, along with a suitable pipeline entry, the Adobe
reader is no longer triggered, and I get what looks like
"raw" PDF displayed instead:
%PDF-1.3 %ª«*- 4 0 obj << /Type /Info /Producer (FOP 0.20.1) >> endobj
5 0 obj << /Length 196 /Filter [ /ASCII85Decode /FlateDecode ] >> stream
GaqdY4V*-0$jPYgIRW(#YdX;NWmM[HgPgb>J0a%jEUhr0M#g>;[r%_LlQB4i#%\rWJtNkf1^o!n(9LJBSO#$K]7XV%0AADIE.W'(0U@PiKImsc+Bft95E]u&qAbgLGpLI[F8),EeNE]k]Pc^T`g`J/pN'UmVIBX$J&P`hed`$Rja$2e,'cPto@Il4GQT![2/<~>
endstream endobj 6 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0
595 842 ] /Resources 3 0 R /Contents 5 0 R >> endobj 7 0 obj << /Type
/Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding
/WinAnsiEncoding >> endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name
/F5 /BaseFont /Times-Roman /Encoding /WinAnsiEncoding >> endobj 1 0 obj
<< /Type /Pages /Count 1 /Kids [6 0 R ] >> endobj 2 0 obj << /Type
/Catalog /Pages 1 0 R >> endobj 3 0 obj << /Font << /F1 7 0 R /F5 8 0 R
>> /ProcSet [ /PDF /ImageC /Text ] >> endobj xref 0 9 0000000000 65535 f
0000000680 00000 n 0000000738 00000 n 0000000788 00000 n 0000000015
00000 n 0000000071 00000 n 0000000358 00000 n 0000000464 00000 n
0000000571 00000 n trailer << /Size 9 /Root 2 0 R /Info 4 0 R >>
startxref 876 %%EOF
What do I need to add in the subsitemap to make this work?!
Thanks
Derek
---------------------------------------------------------------------
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: FO-PDF in a subsite - what is required?
Posted by Bert Van Kets <be...@vankets.com>.
This smells a LOT like the wrong mime type.
I've done a lot of programming using FDF's (PDF forms) and these also come
through in the pure text type if the mime type is not set up
correctly. Check your sitemap serializer entries.
Bert
At 15:44 3/05/2002 +0200, you wrote:
>Hi
>
>Still trying to get FO-PDF working - the hello.pdf sample
>in the Cocoon samples directory works fine, but as soon
>as I copy the sample XML file and the stylesheet over to
>a subsite, along with a suitable pipeline entry, the Adobe
>reader is no longer triggered, and I get what looks like
>"raw" PDF displayed instead:
>
>%PDF-1.3 %ª«*- 4 0 obj << /Type /Info /Producer (FOP 0.20.1) >> endobj
>5 0 obj << /Length 196 /Filter [ /ASCII85Decode /FlateDecode ] >> stream
>GaqdY4V*-0$jPYgIRW(#YdX;NWmM[HgPgb>J0a%jEUhr0M#g>;[r%_LlQB4i#%\rWJtNkf1^o!n(9LJBSO#$K]7XV%0AADIE.W'(0U@PiKImsc+Bft95E]u&qAbgLGpLI[F8),EeNE]k]Pc^T`g`J/pN'UmVIBX$J&P`hed`$Rja$2e,'cPto@Il4GQT![2/<~>
>endstream endobj 6 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0
>595 842 ] /Resources 3 0 R /Contents 5 0 R >> endobj 7 0 obj << /Type
>/Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding
>/WinAnsiEncoding >> endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name
>/F5 /BaseFont /Times-Roman /Encoding /WinAnsiEncoding >> endobj 1 0 obj
><< /Type /Pages /Count 1 /Kids [6 0 R ] >> endobj 2 0 obj << /Type
>/Catalog /Pages 1 0 R >> endobj 3 0 obj << /Font << /F1 7 0 R /F5 8 0 R
> >> /ProcSet [ /PDF /ImageC /Text ] >> endobj xref 0 9 0000000000 65535 f
>0000000680 00000 n 0000000738 00000 n 0000000788 00000 n 0000000015
>00000 n 0000000071 00000 n 0000000358 00000 n 0000000464 00000 n
>0000000571 00000 n trailer << /Size 9 /Root 2 0 R /Info 4 0 R >>
>startxref 876 %%EOF
>
>What do I need to add in the subsitemap to make this work?!
>
>Thanks
>Derek
>
>---------------------------------------------------------------------
>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>