Hi,
I produce HTML and PDF from one source and for bitmap images like
screenshots I use scaledwidth="100%" to fill the full page width for
PDF and have the natural size for HTML. This combination works very
well for me.
The graininess may be a result of FOP changing the resolution of
embedded images. The default is 72 dpi which I find very course too.
In my fop.xconf file I changed that to 96 dpi, but if you are
targeting print media you may want this to be 150 or even 300 dpi. Add
a tag like:
<target-resolution>96</target-resolution>
For non-bitmap grafics like vector grafics, I use a SVGs for PDF and
PNGs for HTML. I defined an Asciidoc attribute {svgpng} which
renders .svg for docbook backend and .png for html backend. Usage
example:
image::my_drawing.{svgpng}["Title",scaledwidth="100%"]
Cheers
Henrik
On Jun 17, 10:17 am, Jim Robinson <[email protected]> wrote:
> Hi folks,
>
> I've got an image, generated from a database schema editor, that
> I would like to include in an ASCIIDOC document. The size of the
> image is 1664 x 698.
>
> I am finding it difficult to figure out how to incorporate it in such a way
> that it looks good in both PDF and HTML outputs.
>
> I find that if I use:
>
> image::a4d_schema.png["A4D Database
> Schema",width=640,link="a4d_schema.png"]
>
> the HTML production is very nice, the tables are readable in the HTML
> page and a user can click on it to expand to the full sized image if they
> desire a better resolution.
>
> Using the PDF mode of a2x, the image runs off the side of the page. I can
> used an
> attribute liked 'scaledwidth="..."', but that results in the image being so
> grainy that
> it is unreadable in the PDF. And, of course, there isn't an option to then
> click on
> it and get a higher resolution.
>
> I'm wondering if other folks have faced this sort of problem and what they
> did
> to solve it?
>
> Is there a way, for example, for me to declare that on HTML output I want it
> to
> use an image and on PDF output I want it to merge in a PS representation
> of the image (or another PDF?).
>
> Jim
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
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.