Is there a way to scale the images in the pdf

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jojobar
Posts: 27
Joined: Wed Nov 02, 2016 9:01 pm

Is there a way to scale the images in the pdf

Post 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
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jojobar
Posts: 27
Joined: Wed Nov 02, 2016 9:01 pm

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

Post by jojobar »

Yes I found this article too but could not figure out how to set width and scalefit using OxygenXml
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply