OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] imageobject is not displayed with any backend other than HTML


I have had problems in the past with my graphic not being rendered at all
for PDF output. The reason it wasn't being displayed was that it couldn't be
fit into its defined space while maintaining aspect ratio. I'm not sure that
is your problem because I don't see you using a scaling property, however, I
think it may default to uniform scaling.

Here is my suggestion to force it to render: Use the imagedata attributes as
I have shown below. If you do that, the image should be displayed in what
ever space you have. Once it is displayed, you can try setting the width to
an inches value that you want. However, you need to be sure the width you
choose will allow the height of the image to fit in the required area. If
you choose both a width and a height then the image will not get rendered
unless the height and width you chose allow the proper aspect ratio.

Jerry J

  <imagedata width="100%" scalefit="1" contentdepth="100%"
fileref="PathToYourGraphic" contentdepth="100%"/>

-----Original Message-----
From: Neil Roeth [mailto:neil@occamsrazor.net] 
Sent: Tuesday, November 07, 2006 10:12 PM
To: John Lumby
Cc: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] imageobject is not displayed with any backend other
than HTML

On Nov  6, John Lumby (johnlumby@hotmail.com) wrote:
 > I am trying to include a graphics object in a document that I format
 > pdf backend (pdfjadetex).     I have tried every imagainable variation on
 > basic theme of
 > <inlinemediaobject>
 > <imageobject role="fo">
 > <imagedata fileref="diagram.pdf"  format="PDF">
 > </imageobject>
 > </inlinemediaobject>
 > I have tried with different formats of the diagram file including JPG and

 > PS.   I have tried specifying positioning and sizing attributes such as 
 > contentwidth="5in" contentdepth="7in" width="6in" depth="8in" on
 >        I get blanks space if the backend is pdf or ps or tex.   It works 
 > fine and the diagram is displayed if I format for html.
 > My dtd is 4.5CR3:
 > <!doctype article PUBLIC "-//OASIS//DTD DocBook V4.5CR3//EN" [
 > ]>
 > I format like so:
 > jw -s /usr/local/share/sgml -f 
 > /usr/local/share/sgml/docbook/utils-0.6.14/frontends/docbook -b pdf -p 
 > /usr/local/bin/openjade -o <mydir> document.sgml
 > I see no errors from the parser or from pdfjadetex.     But no diagram.

 > Since the diagram appears in an html backend document, the above 
 > image-related docbook elements can't be completely wrong (and I took them

 > from examples in the definitive guide anyway).
 > I see plenty of references to other people doing this but not this
 >     Can anyone suggest what I am missing?
 > BTW I discovered that I could make the document appear by formatting to 
 > backend tex, editing the document.tex and adding some tex commands to
 > \includegraphics{diagram.pdf}
 > and then pdfjadetex'ing it.
 > But there must be a better way ???
 > John

I have successfully used this construct:

        <imagedata fileref="diagram.eps" format="eps">
        <imagedata fileref="diagram.jpg" format="jpg">

The eps image gets used in the PDF output, the jpg image gets used in the

Neil Roeth

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]