Hi again,

I finally got my code to work. I ignored that the "width" property is
expanded and overwrites any inline-progression-dimension settings
(confer http://www.w3.org/TR/xsl/#d0e4413).

With external-graphic code like this instead, it works for me:
          <external-graphic content-height="scale-down-to-fit"
                  content-width="scale-down-to-fit"
                  scaling="uniform"
                  inline-progression-dimension.optimum="100mm"
                  inline-progression-dimension.maximum="100%"
                  content-type="content-type:image/jpg"
                  xmlns="http://www.w3.org/1999/XSL/Format";
                  src="data:image/jpg;base64,/9j/4AAQSkZJRgABA..."/>

Thanks again for the hint in the right direction

Regards,

Robert

2013/9/20 Robert Gurol <robert.gu...@signavio.com>:
> PS: I should probably mention that I am using FOP 1.1
>
>
> 2013/9/20 Robert Gurol <robert.gu...@signavio.com>
>>
>> Hi,
>>
>> thank you for your reply! I almost felt bad when this seemed to have
>> turned out to be an FO issue, but unfortunately, neither setting
>> block-progression-dimension.maximum="100%" nor setting
>> inline-progression-dimension.maximum="100%" seem to do the trick.
>>
>> The external-graphic still exceeds the table-cell's right boundary.
>>
>> Here is my current snippet:
>>
>>                  <table border="solid 1pt" border-color="#999999"
>>                 border-spacing="2pt" font-size="8pt"
>>                 table-layout="fixed" width="100%">
>>                   <table-column column-width="6mm" />
>>                   <table-column
>> column-width="proportional-column-width(1)" />
>>                   <table-column
>> column-width="proportional-column-width(1)" />
>>                   <table-header start-indent="0pt">
>>                     ...
>>                   </table-header>
>>                   <table-body start-indent="0pt">
>>                     ...
>>                     <table-row height="1cm">
>>                       <table-cell border="solid 1pt"
>>                       border-color="#999999" padding="2pt"
>>                       text-align="left">
>>                         <block text-align="left">
>>                           <inline>2</inline>
>>                         </block>
>>                       </table-cell>
>>                       <table-cell border="solid 1pt"
>>                       border-color="#999999" padding="2pt"
>>                       text-align="left">
>>                         <block text-align="left">
>>                           <inline />
>>                           <block>
>>                             <inline>check for factually correct
>>                             purchase invoice</inline>
>>                           </block>
>>                           <inline />
>>                         </block>
>>                       </table-cell>
>>                       <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
>> block-progression-dimension.maximum="100%"
>>                                 content-height="scale-down-to-fit"
>>                                 content-type="content-type:image/jpg"
>>                                 content-width="scale-down-to-fit"
>>
>> inline-progression-dimension.maximum="100%"
>>                                 scaling="uniform"
>>
>> src="data:image/jpg;base64,/9j/4AAQSkZ...iZX0ooooA/9k="
>>                                 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
>> block-progression-dimension.maximum="100%"
>>                                 content-height="scale-down-to-fit"
>>                                 content-type="content-type:image/jpg"
>>                                 content-width="scale-down-to-fit"
>>
>> inline-progression-dimension.maximum="100%"
>>                                 scaling="uniform"
>>
>> src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgA...lR//2Q=="
>>                                 width="100mm" />
>>                                 <block text-align="center"
>>                                 width="100mm">Some text</block>
>>                               </block>
>>                             </block>
>>                             <inline font-size="8.0pt" />
>>                           </block>
>>                           <inline />
>>                         </block>
>>                       </table-cell>
>>                     </table-row>
>>                     ...
>>                   </table-body>
>>           </table>
>>
>> Thanks in advance for help,
>> Best regards,
>>
>> Robert
>>
>>
>> 2013/9/20 Pascal Sancho <psancho....@gmail.com>
>>>
>>> Hi,
>>>
>>> max-width property doesn't apply to fo:external-graphic; see REC
>>> XSL-FO § 6.6.5 at [1]
>>>
>>> but...
>>>
>>> block-progression-dimension does;
>>> so you can use:
>>> block-progression-dimension.maximum="100%", that should do the trick.
>>>
>>> [1] http://www.w3.org/TR/xsl/#fo_external-graphic
>>>
>>> 2013/9/19 Robert Gurol <robert.gu...@signavio.com>:
>>> > 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
>>>
>>> --
>>> pascal
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>
>>
>>
>> --
>> ________________________________________________________
>>
>> Besuchen Sie uns/Meet us:
>> Signavio Customer Day: 13.09.2013 in Berlin, Germany
>> DMS Expo: 24.-26.09.2013 in Stuttgart, Germany
>> BPM Summit: 17.-20.09.2013 in San Francisco, USA
>> Frankfurter Buchmesse: 09.-13.10.2013 in Frankfurt, Germany
>> Building Business Capability Conference: 11.-15.11.2013 in Las Vegas, USA
>> ________________________________________________________
>>
>> Robert Gurol
>> Software Developer
>> robert.gu...@signavio.com
>> 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.
>
>
>
>
> --
> ________________________________________________________
>
> Besuchen Sie uns/Meet us:
> Signavio Customer Day: 13.09.2013 in Berlin, Germany
> DMS Expo: 24.-26.09.2013 in Stuttgart, Germany
> BPM Summit: 17.-20.09.2013 in San Francisco, USA
> Frankfurter Buchmesse: 09.-13.10.2013 in Frankfurt, Germany
> Building Business Capability Conference: 11.-15.11.2013 in Las Vegas, USA
> ________________________________________________________
>
> Robert Gurol
> Software Developer
> robert.gu...@signavio.com
> 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.



-- 
________________________________________________________

Besuchen Sie uns/Meet us:
Signavio Customer Day: 13.09.2013 in Berlin, Germany
DMS Expo: 24.-26.09.2013 in Stuttgart, Germany
BPM Summit: 17.-20.09.2013 in San Francisco, USA
Frankfurter Buchmesse: 09.-13.10.2013 in Frankfurt, Germany
Building Business Capability Conference: 11.-15.11.2013 in Las Vegas, USA
________________________________________________________

Robert Gurol
Software Developer
robert.gu...@signavio.com
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to