asciidoctor / asciidoctor-fopub

A portable DocBook-to-PDF build command that wraps DocBook XSL and Apache FOP
MIT License
113 stars 37 forks source link

Docbook To PDF small images #24

Open rahmanusta opened 10 years ago

rahmanusta commented 10 years ago

When converting docbook to pdf with fopub, everything is ok but images are small. When i give width imagedata element in docbook, texts overlaps images. How can i solve this?

image-size

mojavelinux commented 10 years ago

I believe you need to set the scaledwidth attribute in AsciiDoc. The scaledwidth applies only to the PDF output.

You can dig into more of how fopub calculates the image width by deciphering this template:

https://github.com/asciidoctor/asciidoctor-fopub/blob/master/src/dist/docbook-xsl/fo-pdf.xsl#L429

ingosimonis commented 8 years ago

I tried now scalewidth, scalefit="1", width="100%", and contentdepth="100%" in various combinations. Unfortunately without success. Then I produced new png images with a resolution of 300DPI. No effect, all images are the size as shown by @rahmanusta above