cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From foxmask <foxm...@gmail.com>
Subject Re: PDF without Images
Date Tue, 26 Oct 2004 15:21:23 GMT
My images are in JPEG.

With FOP 2.0.25 ; at the end of the parse ; FOP failed to build the PDF file.
With Forrest , i have an error page when trying to access to the PDF
file (when clicking on the PDF icon on the html page)
With Cocoon ; i have the pdf without images.
I'll see if the faq of forrest could help.
regards.


On Tue, 26 Oct 2004 17:11:29 +0200, Bart Molenkamp
<b.molenkamp@bizzdesign.nl> wrote:
> Is your image SVG? In that case, the resulting XSL:FO should look like:
> 
> <fo:instream-foreign-object text-align="center">
>  <svg ...>
>   ...
>  </svg>
> </fo:instream-foreign-object>
> 
> Otherwise, have a look at how Forrest includes images (also PNG and JPEG
> etc) in PDF's: http://forrest.apache.org/faq.html#pdf_images I think you
> could discover by looking at the XSL-FO stylesheet in the common skin.
> Looks something like
> 
>       <fo:external-graphic src="{$imgpath}">
>         <xsl:if test="@height">
>           <xsl:attribute name="height"><xsl:value-of
> select="@height"/></xsl:attribute>
>         </xsl:if>
>         <xsl:if test="@width">
>           <xsl:attribute name="width"><xsl:value-of
> select="@width"/></xsl:attribute>
>         </xsl:if>
>       </fo:external-graphic>
> 
> (I guess that FOP requires Jimi or JAI to actually include the image in
> the PDF).
> 
> Bart.
> 
> > -----Original Message-----
> > From: foxmask [mailto:foxmask@gmail.com]
> > Sent: Tuesday, October 26, 2004 4:55 PM
> > To: Cocoon
> > Subject: PDF without Images
> >
> > Hi,
> > I have some docbook file which contain images.
> >
> > when i access foo.xhtml i can see my images in the xhtml page
> >
> >     <map:match  pattern="foo.xhtml" label="content">
> >         <map:generate src="foo_book.xml"/>
> >         <map:transform type="xinclude"/>
> >         <map:transform type="xalan"
> src="docbook/xsl/xhtml/docbook.xsl"/>
> >         <map:serialize type="xhtml"/>
> >     </map:match>
> >
> > when i access foo.pdf ; i see no images.
> >
> >    <map:match  pattern="foo.pdf" label="content">
> >         <map:generate src="foo_book.xml"/>
> >         <map:transform type="xinclude"/>
> >         <map:transform type="xalan" src="docbook/xsl/fo/docbook.xsl"/>
> >         <map:serialize type="fo2pdf"/>
> >    </map:match>
> >
> >
> > tips: i use xsl from Docbook 4.2
> >
> > any suggestion ?
> >
> > regards.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


-- 
Founder Member of Phpfr.Org
http://phpfr.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message