我现在有一个问题,当我把我的文档转换成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%"
但没有运气。
我想告诉图像有一个最大的高度,但填写宽度。