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

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

Well, I have tried to use your approach and get rid of pixel garbage but it's really cumbersome solution. I propose you to choose another one.
Take a look:

<fo:table>
 <fo:table-column column-width="3mm"/>
 <fo:table-column column-width="40mm"/>
 <fo:table-column column-width="3mm"/>
 <fo:table-body>
  <fo:table-row height="3mm">
   <fo:table-cell>
    <fo:block line-height="0pt">
        <fo:instream-foreign-object width="3mm" height="3mm"
            content-width="scale-to-fit" content-height="scale-to-fit"
            scaling="uniform">
            <svg:svg width="3mm" height="3mm" viewBox="0 0 400 400">
                <svg:path d="M400,400 v-400 a400,400 0 0,0 -400,400 z"
                    fill="red" stroke="red" stroke-width="1"/>
            </svg:svg>
        </fo:instream-foreign-object>
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="0pt" background-color="red">
    <fo:block>
        <fo:leader leader-length="0pt"/>
    </fo:block>
   </fo:table-cell>
   <fo:table-cell>
    <fo:block line-height="0pt">
        <fo:instream-foreign-object width="3mm" height="3mm"
            content-width="scale-to-fit" content-height="scale-to-fit"
            scaling="uniform">
            <svg:svg width="3mm" height="3mm" viewBox="0 0 400 400">
                <svg:path d="M0,400 v-400 a400,400 0 0,1 400,400 z"
                    fill="red" stroke="red" stroke-width="1"/>
            </svg:svg>
        </fo:instream-foreign-object>
    </fo:block>
   </fo:table-cell>
  </fo:table-row>
  <fo:table-row background-color="red">
   <fo:table-cell>
    <fo:block>
        <fo:leader leader-length="0pt"/>
    </fo:block>
   </fo:table-cell>
   <fo:table-cell>
    <fo:block color="white"> The elliptical arc command draws a section of
        an ellipse which meets the following constraints: * the arc starts
        at the current point * the arc ends at point (x, y) * the ellipse
        has the two radii (rx, ry) * the x-axis of the ellipse is rotated by
        x-axis-rotation relative to the x-axis of the current coordinate
        system. </fo:block>
   </fo:table-cell>
   <fo:table-cell>
    <fo:block>
        <fo:leader leader-length="0pt"/>
    </fo:block>
   </fo:table-cell>
  </fo:table-row>
  <fo:table-row height="3mm">
   <fo:table-cell>
    <fo:block line-height="0pt">
        <fo:instream-foreign-object width="3mm" height="3mm"
            content-width="scale-to-fit" content-height="scale-to-fit"
            scaling="uniform">
            <svg:svg width="3mm" height="3mm" viewBox="0 0 400 400">
                <svg:path d="M0,0 a400,400 0 0,0 400,400 v-400 z" fill="red"
                    stroke="red" stroke-width="1"/>
            </svg:svg>
        </fo:instream-foreign-object>
    </fo:block>
   </fo:table-cell>
   <fo:table-cell background-color="red">
    <fo:block line-height="0pt">
        <fo:leader leader-length="0pt"/>
    </fo:block>
   </fo:table-cell>
   <fo:table-cell>
    <fo:block line-height="0pt">
     <fo:instream-foreign-object width="3mm" height="3mm"
         content-width="scale-to-fit" content-height="scale-to-fit"
         scaling="uniform">
         <svg:svg width="3mm" height="3mm" viewBox="0 0 400 400">
             <svg:path d="M0,0 h400 a400,400 0 0,1 -400,400 z" fill="red"
                 stroke="red" stroke-width="1"/>
         </svg:svg>
     </fo:instream-foreign-object>
    </fo:block>
   </fo:table-cell>
  </fo:table-row>
 </fo:table-body>
</fo:table>
Respectfully,
Volodymyr Rodymyuk

> -----Original Message-----
> From: Mark Cilia Vincenti [mailto:mark@gfi.com]
> Sent: Friday, October 12, 2007 3:26 PM
> To: Vladimir Rodimyuk
> Subject: RE: [xep-support] Problem with rounded edge box
>
> Hi Vladimir,
>
> Thanks for your answer. I have attached the TIFF images as per your
> suggestion. I tried opening your version (RoundedBox_mod.pdf) in Adobe
> Acrobat Professional and I could still see the thin red line around the
> images in the Transparency Flattener Preview.
>
> Best Regards,
>
> Mark Cilia Vincenti - Internal Developer - Marketing
> GFI Software - www.gfi.com
>
>
> -----Original Message-----
> From: Vladimir Rodimyuk [mailto:VladimirR@ukrinvent.com]
> Sent: 12 October 2007 2:07 PM
> To: Mark Cilia Vincenti
> Subject: FW: [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:block line-height="0mm">
> <fo:external-graphic height="3mm" width="3mm"
> content-height="3mm" content-width="3mm"
> scaling="non-uniform" src="url('images/crop_circle_rt.tif')"/>
> <!-- ^~~~~~~~~~~Here is the major difference -->
> </fo:block>
>
> 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).
>

-------------------
(*) 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 11:00:37 2007

This archive was generated by hypermail 2.1.8 : Fri Oct 12 2007 - 11:00:38 PDT