FW: [xep-support] Problem with rounded edge box

From: Vladimir Rodimyuk <VladimirR@ukrinvent.com>
Date: Fri Oct 12 2007 - 09:50:55 PDT

First time I posted this message it was bounced because of too large size of it. So I have to delete attachments and modify original letter to add FO code.
-----Original Message-----
From: Vladimir Rodimyuk
Sent: Friday, October 12, 2007 2:49 PM
To: 'xep-support@renderx.com'
Subject: RE: [xep-support] Problem with rounded edge box

Hi Mark,

Of course it can be done. I believe that you would get the answer much faster if you had attached your tiff images. You have to face it - people usually do not want to do some extra job.

Anyway, I think the reason for this issue is that you are using uniform scaling while your images are not exactly 3mm wide. Take a look at FO and PDF files in attach. I made some changes to your FO code, but the crucial thing is the 'scaling' attribute. After I've changed its value to 'non-uniform' it works.
<fo:table width="30mm" table-layout="fixed"
   background-color="rgb-icc (204, 0, 0, #CMYK, 0, 1, 0.81, 0.04)">
     <fo:table-column column-number="1" column-width="3mm"/>
     <fo:table-column column-number="2" column-width="24mm"/>
     <fo:table-column column-number="3" column-width="3mm"/>
        <fo:table-row height="5.07mm">
           <fo:table-cell display-align="before">
             <fo:block line-height="0mm">
                <fo:external-graphic height="3mm" width="3mm"
                   content-height="3mm" content-width="3mm"
                   scaling="non-uniform" />
  <!-- ^~~~~Here is the major difference -->
Although, I think there are a lot of methods to do rounded corner in a different way. E.g. you can try to use embedded SVG graphics and table 3x3 (to reduce issues with background and extra spaces).

Volodymyr Rodymyuk

> -----Original Message-----
> On Behalf Of Mark Cilia Vincenti
> Subject: RE: [xep-support] Problem with rounded edge box
> So is this not possible to do with XEP please? ...
> -----Original Message-----
> On Behalf Of Mark Cilia Vincenti
> Subject: [xep-support] Problem with rounded edge box
> Hi,
> I'm trying to make a red box with rounded corners which will have white
> text inside. The text inside may end up wrapping over more than one line,
> so I decided to have a 3x2 table with the middle column spanning over 2
> rows. The text goes in this middle column whereas the other 4 cells have
> images with rounded corners.

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Fri Oct 12 10:46:15 2007

This archive was generated by hypermail 2.1.8 : Fri Oct 12 2007 - 10:46:20 PDT