Tim Nuwin
Tim Nuwin

Reputation: 2887

XSL-FO - Scaling image inside a table

This table is inside another table. Why is the image not scaling to 1 inch?

         <fo:table table-layout="fixed">
                    <fo:table-column column-width="1.00in" />
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block>
                                    <fo:external-graphic src="url('{$url}')" scaling="uniform" scaling-method="auto" width="1.00in"/>                                       
                                </fo:block>  
                            </fo:table-cell>
                        </fo:table-row>                                                 
                    </fo:table-body>
                </fo:table>

Upvotes: 1

Views: 1599

Answers (1)

Tim Nuwin
Tim Nuwin

Reputation: 2887

I had to specify the content-width attribute in external-graphic.

Upvotes: 4

Related Questions