Page 1 of 1

Is there a way to scale the images in the pdf

Posted: Wed Jan 09, 2019 9:56 pm
by jojobar
Hi!

I apologize if this is a common DocBook settings question but after looking into several places I cannot figure out how to have the images scaled so that they do not cut off (at the right) when producing pdf. With HTML transformation, we can manage using the htmlstyle.css I am wondering if we can do something similar for pdf.

I looked into pdf parameters and did not find anything that can help with this.

I am using version 18.1 Oxygen XML Editor.

Thanks

Re: Is there a way to scale the images in the pdf

Posted: Thu Jan 10, 2019 11:27 am
by Radu
Hi,

I don't work much with DocBook anymore but there seems to be some documentation available related to Docbook and images:

http://www.sagehill.net/docbookxsl/ImageSizing.html

It seems to state something like this:
To scale a graphic to fit the available width in printed output, use width="100%" and scalefit="1" attributes.
If that does not work maybe you can register and ask around on the DocBook-Apps users list:

https://docbook.org/help

Regards,
Radu

Re: Is there a way to scale the images in the pdf

Posted: Thu Jan 10, 2019 7:19 pm
by jojobar
Yes I found this article too but could not figure out how to set width and scalefit using OxygenXml

Re: Is there a way to scale the images in the pdf

Posted: Fri Jan 11, 2019 9:44 am
by Radu
Hi,

If you are editing the XML document in the Author visual editing mode, click the image then open the "Attributes" view (main menu -> Window->Show View) and set the attributes there. Or use ALT-ENTER to open the in-place attributes editor. Or switch to the "Text" editing mode and set the attributes there.

Regards,
Radu