我目前遇到一个问题,当我将我的 docbook 转换为 pdf 时,图像有点不稳定。我 90% 的屏幕截图都很好,但其余部分的高度超过了 740 像素,这会导致它们跑出页面。我对宽度没有任何问题。
<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" xml:id="newNote">
<title>New Note</title>
<section>
<title>Screenshot</title>
<mediaobject>
<imageobject>
<imagedata fileref="./views/screenshots/newNote.png" scalefit="1" width="100%" contentdepth="100%"/>
</imageobject>
</mediaobject>
</section>
</section>
我试过了contentdepth="740"
,contentdepth="740px" width="100%"
但没有运气。我希望告诉图像具有最大高度但填写宽度。