Hi all,
I am currently trying to embed an external-graphic with a given absolute
width inside a table-cell. My problem is, it overflows the table-cell's
right boundary.
I tried setting max-width to 100%, yet it does not seem to work.
Here's a code snippet from my fo, with a shortened src attribute containing
the Base64 image data:
<table-cell border="solid 1pt"
border-color="#999999" padding="2pt"
text-align="left">
<block text-align="left">
<inline />
<block>
<inline font-size="8.0pt">The invoice
needs to checked for factual
correctness, i.e. correctly delivered
goods.</inline>
<block font-size="8.0pt"
space-after="0.0" space-before="0.0" />
<inline font-size="8.0pt" />
<block font-size="8.0pt">
<leader leader-pattern="space" />
</block>
<inline font-size="8.0pt" />
<block font-size="8.0pt">
<block>
<external-graphic
content-height="scale-down-to-fit"
content-type="content-type:image/jpg"
content-width="scale-down-to-fit"
max-width="100%" scaling="uniform"
src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD...="
width="100mm" />
</block>
</block>
<inline font-size="8.0pt" />
<block font-size="8.0pt">
<leader leader-pattern="space" />
</block>
<inline font-size="8.0pt" />
<block font-size="8.0pt">
<block>
<external-graphic
content-height="scale-down-to-fit"
content-type="content-type:image/jpg"
content-width="scale-down-to-fit"
max-width="100%" scaling="uniform"
src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD...=="
width="100mm" />
<block text-align="center"
width="100mm">Some text!</block>
</block>
</block>
<inline font-size="8.0pt" />
</block>
<inline />
</block>
</table-cell>
Of course, I can provide the complete code if so desired.
Best regards,
Robert
--
________________________________________________________
Besuchen Sie uns/Meet us:
DMS Expo <http://www.messe-stuttgart.de/where-it-works/>: 24.-26.09.2013 in
Stuttgart, Germany
BPM Summit <http://www.bpmsummitusa.com/>: 17.-20.09.2013 in San Francisco,
USA
Frankfurter Buchmesse <http://www.buchmesse.de/de/>: 09.-13.10.2013 in
Frankfurt, Germany
Building Business Capability
Conference<http://www.buildingbusinesscapability.com/>:
11.-15.11.2013 in Las Vegas, USA
________________________________________________________
Robert Gurol
Software Developer
[email protected]
T: +49 30 8562154-0
F: +49 30 8562154-19
Signavio GmbH
Nürnberger Straße 8
10787 Berlin
HRB 121584 B Amtsgericht Charlottenburg, Ust-ID: DE265675123
Geschäftsführer: Dr. Gero Decker, Torben Schreiter
________________________________________________________
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.