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: 18
Joined: Wed Nov 02, 2016 9:01 pm

Is there a way to scale the images in the pdf

Post by jojobar » Wed Jan 09, 2019 9:56 pm

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: 6274
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Thu Jan 10, 2019 11:27 am

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: 18
Joined: Wed Nov 02, 2016 9:01 pm

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

Post by jojobar » Thu Jan 10, 2019 7:19 pm

Yes I found this article too but could not figure out how to set width and scalefit using OxygenXml

Radu
Posts: 6274
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Fri Jan 11, 2019 9:44 am

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