Hi Stefano,

See also http://www.oasis-open.org/archives/docbook-apps/200704/msg00150.html

I've had this problem myself and have resolved it for screen shots by
not setting any size information in the DocBook source, but rather by
setting the resolution on the image files. For XEP, I've found setting
the resolution on each image file (using your favorite graphics
program or utility) to 120dpi seems to work pretty well. You might
need to use a slightly different setting (72 or 96dpi) for FOP.

HTH,

Ken


On 7/18/07, Stefano Sabatini <[EMAIL PROTECTED]> wrote:
Hi all,

thanks to the suggestions of John Shipman (see:
http://thread.gmane.org/gmane.text.docbook.apps/17584

), I have a toolchain that converts tex equation files to J-peg files,
which I include in the docbook source as media objects with snippets
like this:

<equation>
  <title>Test equation</title>
  <mediaobject>
    <imageobject>
      <imagedata fileref="equations/equation.jpg"/>
    </imageobject>
  </mediaobject>
</equation>

I'm using xsltproc and fop 0.93 to convert FO to PDF.

Output looks good in HTML format, but the images in the fop PDF output
appear too big (50% or more bigger than the J-peg image as rendered in
the HTML document or by an image viewer), and they can't be contained
entirely in the page, so they overflow.

I also tried with EPS images with snippets like this:

<equation>
  <title>Test equation</title>
  <mediaobject>
    <imageobject role="html">
      <imagedata fileref="equations/equation.jpg"/>
    </imageobject>
    <imageobject role="fo">
      <imagedata fileref="equations/equation.eps"/>
    </imageobject>
  </mediaobject>
</equation>

but then the equation images don't appear at all in the PDF output.

So it seems like a fop problem. Someone can suggest how to overcome
this problem?

An yes, I read this:
http://xmlgraphics.apache.org/fop/0.93/graphics.html#resolution

and still can't figure out what to do to fix the problem.

Many thanks in advance.

Cheers.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to