Thanks very much for the reply, that was very useful.

For the Mac OS X port install of asciidoc and fop, I found the fop.xconf 
file at

  /opt/local/share/java/fop/1.0/conf/fop.xconf

and once I set the target-resolution to 600 (dpi), the graphic I wanted to 
embed was
readable in the PDF.

I noticed that when I set

  image::a4d_schema.png["A4D Database 
Schema",scaledwidth="100%",link="a4d_schema.png"]

it looked good in the PDF, but was of course far too large in HTML.  When I 
set


  image::a4d_schema.png["A4D Database 
Schema",width="640",scaledwidth="100%",link="a4d_schema.png"]

it looked good in HTML but ran off the edge of the page in PDF.  So I ended 
up compromising
and using:

  image::a4d_schema.png["A4D Database 
Schema",width="540",link="a4d_schema.png"]

the graphic in HTML is too small to read, but it is basically a thumbnail 
that will allow the user
to bring up the full sized image.  The PDF is still readable.

Ideally I'd love to be able to switch the behavior based on the backend, 
e.g., set "width=640" for the
HTML production and just use "scaledwidth=100%" for the PDF production.

I think your last paragraph indicates that one can define "Asciidoc 
attributes" that would accomplish
such switching logic? I am not finding the proper location in the User 
Manual that describes what
one needs to do that, could you point me at the documentation?  Or is this a 
piece of code that I
should be looking at and modifying?

Thanks very much,

Jim

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/asciidoc/-/hkOhabiB1noJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to