Uniform scaling not working?

Robert Gurol <[email protected]>
Newsgroups gmane.text.xml.xfc.general
Message-ID <CAPxgbL40z-PFDAWtkH0zJnTpVgoXOSUQdT31ZKNmfgV5xF2QUw@mail.gmail.com>
Good afternoon,

recently, my task is to insert a picture in the footer of a document,
inside a table.

Depending on the input data, the picture may span multiple columns and
rows, and its size is unspecified. Thus, I
- generate the picture with  the size constraints (width, height) as
appropriate for its surrounding table cell,
- specify scaling to be uniform, and
- set content-width and content-height both to "scale-to-fit" (same
observable effect with "scale-down-to-fit").

The effect is not as expected - while in PDF output the picture is scaled
down uniformly, it is distorted for DOCX output (stretched as far as width
and height go). An attached picture demonstrates the effect.

I currently use XFC in its 4.6.1 version in Java, the same effect is
present with version 4.4.1.

Is this a bug, is there a workaround? Uniform scaling ought to be supported
according to the conformance statement

Regards,

Robert Gurol

PS: Example XSL code:
,,,
<static-content flow-name="header">
          <block background-color="#ffffff" font-family="Helvetica"
          font-size="10pt" margin-bottom="0mm" margin-top="0mm">
            <block>
              <table table-layout="fixed" width="100%">
                <table-column column-width="proportional-column-width(2)" />
                <table-column column-width="proportional-column-width(1)" />
                <table-column column-width="proportional-column-width(1)" />
                <table-column column-width="proportional-column-width(2)" />
                <table-body start-indent="0pt">
                  <table-row height="10mm">
                    <table-cell number-columns-spanned="1"
                    number-rows-spanned="2" padding="2pt"
                    text-align="left">
                      <block>
                        <external-graphic content-height="scale-to-fit"
                        content-type="content-type:image/jpg"
                        content-width="scale-to-fit"
                        height="20.0mm" scaling="uniform"
                        width="56.666666666666664mm">
                          <!-- shortened attribute content for this example
-->
                          <attribute name="src"
                          xmlns="http://www.w3.org/1999/XSL/Transform
">data:image/jpg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/4AAcT2NhZC...</attribute>
                        </external-graphic>
                      </block>
                    </table-cell>
                    <table-cell number-columns-spanned="2"
                    padding="2pt" text-align="center">
                      <block>&#194;&#160;</block>
                    </table-cell>
                    <table-cell padding="2pt" text-align="right">
                      <block>&#194;&#160;</block>
                    </table-cell>
                  </table-row>
                  <table-row height="10mm">
                    <table-cell number-columns-spanned="2"
                    padding="2pt" text-align="center">
                      <block>&#194;&#160;</block>
                    </table-cell>
                    <table-cell padding="2pt" text-align="right">
                      <block>&#194;&#160;</block>
                    </table-cell>
                  </table-row>
                </table-body>
              </table>
            </block>
          </block>
        </static-content>
,,,

-- 
_______________________________________________________________________
 Signavio und 1&1 sind Gewinner des Process Solution Awards 2011
 http://www.signavio.com/
_______________________________________________________________________

Robert Gurol
Software Developer
[email protected]
T +49 30 488 172 50
F +49 30 250 43 747

Signavio GmbH
Goethestr. 2-3
10623 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.

 
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support
_bug scaling xfc.PNG (image/png, 55.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.