Hi Chris,
        I think I have got the reason for the problem - it is a font issue.
The SVG created refers to the font 'CF TradeGothic CondEighteen Bold';
However, there is no such font declared in my userconfig.xml file.

        I have attached my config file.

Regards,
Saptarshi.


-----Original Message-----
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 7:28 PM
To: [EMAIL PROTECTED]
Subject: Re: FOP distorting images


Saptarshi Sen wrote:

> Hi,
>       I am trying to generate PDF images (charts with embedded fonts) using
> FOP version 0.20.5.
> 
>       We first generate a SVG image using a charting tool called PopChart
> (version 5.1.0). We then create the 'fo' file from this SVG. This is
finally
> fed to FOP to generate the PDF.
> 
>       In doing so, legends in the chart are overlapping - the chart is
> getting cutoff on the right hand side.
> 
>       The SVG image is actually fine - which leads me to believe that the
> problem crops up at the 'fo to pdf' stage. Attached alongwith are the SVG
and
> FO files as well as the PDF generated using FOP.

Why couldnt the problem be with the SVG to FO conversion that you mention
above?

<snip/>

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<!--<!DOCTYPE configuration SYSTEM "config.dtd">-->
<!--
     this file contains templates which allow an user easy
     configuration of Fop. Actually normally you don't need this configuration
     file, but if you need to change configuration, you should
     always use this file and *not* config.xml.
     Usage: java org.apache.fop.apps.Fop -c userconfig.xml -fo fo-file -pdf pdf-file
-->


<configuration>

<!--
baseDir: normally the base directory is the directory where the fo file is
         located. if you want to specify your own, uncomment this entry.
         This value can also be a URL. Actually, the value is converted to
         a URL.
-->
<!--
  <entry>
    <key>baseDir</key>
    <value></value>
  </entry>
-->

<!--
fontBaseDir: Similar to baseDir, except that this value is used for fonts. If
         it isn't specified, the value from baseDir is used.
-->
<!--
  <entry>
    <key>fontBaseDir</key>
    <value></value>
  </entry>
-->

<!--
************************************************************************
                        HYPHENATION
************************************************************************
-->

<!--
   hyphenation directory
   if you want to specify your own directory with hyphenation pattern
   then uncomment the next entry and add the directory name
-->

<!--
  <entry>
    <key>hyphenation-dir</key>
    <value>/java/xml-fop/hyph</value>
  </entry>
-->



<entry>
   <key>strokeSVGText</key>
   <value>false</value>
</entry>









<!--
************************************************************************
  Add fonts here
************************************************************************
-->

<fonts>
 <!-- example -->

 <font metrics-file="TRADE_GOTHIC.xml" kerning="yes" embed-file="TRADE_GOTHIC.ttf">
    <font-triplet name="TradeGothic" style="normal" weight="normal"/>
 </font>
 <font metrics-file="FUTURA_BOOK.xml" kerning="yes" embed-file="FUTURA_BOOK.ttf">
    <font-triplet name="Futura Book" style="normal" weight="normal"/>
 </font>
 <font metrics-file="FUTURA_COND_LIGHT.xml" kerning="yes" embed-file="FUTURA_COND_LIGHT.ttf">
    <font-triplet name="Futura CondensedLight" style="normal" weight="normal"/>
 </font>
 <font metrics-file="FUTURA_HEAVY.xml" kerning="yes" embed-file="FUTURA_HEAVY.ttf">
    <font-triplet name="Futura Heavy" style="normal" weight="normal"/>
 </font>
 <font metrics-file="FUTURA_MEDIUM.xml" kerning="yes" embed-file="FUTURA_MEDIUM.ttf">
    <font-triplet name="Futura Medium" style="normal" weight="normal"/>
 </font>
 <font metrics-file="TRADE_GOTHIC_BOLD.xml" kerning="yes" embed-file="TRADE_GOTHIC_BOLD.ttf">
    <font-triplet name="TradeGothic Bold" style="normal" weight="normal"/>
 </font>
 <font metrics-file="TRADE_GOTHIC_BOLD_COND20.xml" kerning="yes" embed-file="TRADE_GOTHIC_BOLD_COND20.ttf">
    <font-triplet name="TradeGothic CondEighteen" style="normal" weight="bold"/>
 </font>
 <font metrics-file="TRADE_GOTHIC_COND_18.xml" kerning="yes" embed-file="TRADE_GOTHIC_COND_18.ttf">
    <font-triplet name="TradeGothic CondEighteen" style="normal" weight="normal"/>
 </font>

 <font metrics-file="times.xml" kerning="yes" embed-file="times.ttf">
    <font-triplet name="TimesRoman" style="normal" weight="normal"/>
 </font>
 <font metrics-file="timesbold.xml" kerning="yes" embed-file="timesbd.ttf">
    <font-triplet name="TimesRoman" style="normal" weight="bold"/>
 </font>
 <font metrics-file="timesitalic.xml" kerning="yes" embed-file="timesi.ttf">
    <font-triplet name="TimesRoman" style="italic" weight="normal"/>
 </font>
 <font metrics-file="timesitalicbold.xml" kerning="yes" embed-file="timesbi.ttf">
    <font-triplet name="TimesRoman" style="italic" weight="bold"/>
 </font>

<font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf">
    <font-triplet name="Arial" style="normal" weight="normal"/>
 </font>
 <font metrics-file="arialbold.xml" kerning="yes" embed-file="arialbd.ttf">
    <font-triplet name="Arial" style="normal" weight="bold"/>
 </font>
 <font metrics-file="arialitalic.xml" kerning="yes" embed-file="ariali.ttf">
    <font-triplet name="Arial" style="italic" weight="normal"/>
 </font>
 <font metrics-file="arialitalicbold.xml" kerning="yes" embed-file="arialbi.ttf">
    <font-triplet name="Arial" style="italic" weight="bold"/>
 </font>

 <font metrics-file="ARIALUNI.xml" kerning="yes" embed-file="ARIALUNI.ttf">
    <font-triplet name="Arial Unicode" style="normal" weight="normal"/>
 </font>
  <font metrics-file="BATANG.xml" kerning="yes" embed-file="BATANG.ttf">
     <font-triplet name="Batang" style="normal" weight="normal"/>
 </font>
  <font metrics-file="PMINGLIU.xml" kerning="yes" embed-file="PMINGLIU.ttf">
     <font-triplet name="Pmingliu" style="normal" weight="normal"/>
 </font>
<!--
 <font metrics-file="arialb.xml" kerning="yes" embed-file="arialb.ttf">
    <font-triplet name="Arial" style="normal" weight="bold"/>
    <font-triplet name="ArialMT" style="normal" weight="bold"/>
 </font>
 <font metrics-file="ariali.xml" kerning="yes" embed-file="ariali.ttf">
    <font-triplet name="Arial" style="italic" weight="normal"/>
    <font-triplet name="ArialMT" style="italic" weight="normal"/>
 </font>
 <font metrics-file="arialbi.xml" kerning="yes" embed-file="arialbi.ttf">
    <font-triplet name="Arial" style="italic" weight="bold"/>
    <font-triplet name="ArialMT" style="italic" weight="bold"/>
 </font>
 -->
 <!-- Example Japanese fonts
 <font metrics-file="msgothic.xml" embed-file="D:\winnt\font\msgothic.ttc" kerning="yes">
    <font-triplet name="Gothic" style="normal" weight="normal"/>
    <font-triplet name="Gothic" style="normal" weight="bold"/>
    <font-triplet name="Gothic" style="italic" weight="normal"/>
    <font-triplet name="Gothic" style="italic" weight="bold"/>
 </font>
 <font metrics-file="msmincho.xml" embed-file="Cyberbit.ttf" kerning="yes">
    <font-triplet name="Mincho" style="normal" weight="normal"/>
    <font-triplet name="Mincho" style="normal" weight="bold"/>
    <font-triplet name="Mincho" style="italic" weight="normal"/>
    <font-triplet name="Mincho" style="italic" weight="bold"/>
   </font>
  -->
</fonts>


<entry>	<key>fontBaseDir</key>	<value>/export/home/weblogic/chartconfig/FOP_CONFIG/</value></entry></configuration>



-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

-----------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to