Re: Uniform scaling not working?

Robert Gurol <[email protected]>
Newsgroups gmane.text.xml.xfc.general
Message-ID <CAPxgbL51v+QhKMMAuLCruJ78qQem=0Lc-7_PL+W2FgHDiukwRQ@mail.gmail.com>
My fo file is attached.

Regards,

Robert Gurol

2012/6/7 Hussein Shafie <[email protected]>

> On 06/07/2012 04:01 PM, Robert Gurol wrote:
>
>>
>> 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,
>>
>
> We have dozens of tests which deal with image scaling. May be you have
> found a case which is not covered by our tests. On the other hand, may be
> your issue is triggered by the context in which you use the
> fo:external-graphic.
>
>
>
>
>  is there a workaround?
>>
>
> Don't know.
>
>
>
>
>  Uniform scaling ought to be
>> supported according to the conformance statement
>>
>
>
> Please provide us with an actual, valid, XSL-FO file (a .fo, not a .xsl)
> which would allow us to quickly and easily reproduce the problem here at
> XMLmind. If this XSL-FO file references external graphics files (e.g. PNG),
> please also send us these graphics files.
>
>
>
>
>
>
>> 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<http://www.w3.org/1999/XSL/Transform>
>> ">data:image/jpg;**base64,/9j/**4AAQSkZJRgABAgAAAQABAAD/**
>> 4AAcT2NhZC...</attribute>
>> </external-graphic>
>> </block>
>> </table-cell>
>>
>
>


-- 
_______________________________________________________________________
 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
bla.fo (application/octet-stream, 235.3 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.