cutting right edge of image in PDF output
Posted: Fri Oct 16, 2020 9:38 am
Hi
DITA-OT 2.4.6
Some how, few images are cutting right edge in the PDF output .
Tried to set the attribtes as below. But nothing helped me on this issue. Could you suggest any clue?
dita-ot-2.4.6\plugins\my.dita.pdf\cfg\fo\attrs\commons-attr.xsl
Thanks,
Samba.
DITA-OT 2.4.6
Some how, few images are cutting right edge in the PDF output .
Tried to set the attribtes as below. But nothing helped me on this issue. Could you suggest any clue?
dita-ot-2.4.6\plugins\my.dita.pdf\cfg\fo\attrs\commons-attr.xsl
Thanks,
Samba.
Code: Select all
<xsl:attribute-set name="image__block">
<xsl:attribute name="padding-bottom">20pt</xsl:attribute>
<xsl:attribute name="padding-top">10pt</xsl:attribute>
<xsl:attribute name="start-indent">inherit</xsl:attribute>
<!-- samba added to fix the image too big in PDF guide -->
<xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
<xsl:attribute name="content-height">100%</xsl:attribute>
<xsl:attribute name="width">100%</xsl:attribute>
<xsl:attribute name="scaling">uniform</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="image__inline">
<xsl:attribute name="vertical-align">middle</xsl:attribute>
<!-- samba added to fix the image too big in PDF guide -->
<xsl:attribute name="content-width">auto</xsl:attribute>
<xsl:attribute name="content-height">auto</xsl:attribute>
<xsl:attribute name="width">auto</xsl:attribute>
<xsl:attribute name="scaling">uniform</xsl:attribute>
</xsl:attribute-set>