Hello list,

Excuse me for my poor english, but it is so far...
I'am learning to use xml docbook and xsl transformation. My aim is to convert xml docbook files to xsl-fo files (with saxon for the moment) and then xsl-fo files to pdf files using fop. For pdf output, I successively use fop 0.20.5, fop 0.92 beta and fop-trunk built with sources files (2006 may 03rd )
My xml docbook file have links to external png graphics.
Fop 0.92 beta and fop-trunk are configured with the same userconfig.xml file (see attached file) The pdf files I obtain with fop 0.92 beta or fop-trunk have the same weight.

But the problem is they are much greater than pdf file produced with fop 0.20.5. The ratio is 4. However, the compression using zlib flate is on.

I have tested on other xml docbook file with external graphics links and it is the same thing.

I have read some documentation but I didn't find a way to reduce the files weight produced with fop 0.92 or trunk.

Please, can anyone help me to find the solution ?

Thanks in advance

--
Hugues Leonardi
<?xml version="1.0"?>

<!--

This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.

Relative config url's will be resolved relative to
the location of this file.

-->

<!-- NOTE: This is the version of the configuration -->
<fop version="1.0">

  <!-- Base URL for resolving relative URLs -->
  <base>.</base>
  
  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
  <source-resolution>72</source-resolution>
  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
  <target-resolution>72</target-resolution>
  
  <!-- Default page-height and page-width, in case
       value is specified as auto -->
  <default-page-settings height="11in" width="8.26in"/>
  
  <!-- Information for specific renderers -->
  <!-- Uses renderer mime type for renderers -->
  <renderers>
    <renderer mime="application/pdf">
      <filterList>
        <!-- provides compression using zlib flate (default is on) -->
        <value>flate</value>
  
        <!-- encodes binary data into printable ascii characters (default off)
             This provides about a 4:5 expansion of data size -->
        <!-- <value>ascii-85</value> -->
  
        <!-- encodes binary data with hex representation (default off)
             This filter is not recommended as it doubles the data size -->
        <!-- <value>ascii-hex</value> -->
      </filterList>

      <fonts>
        <!-- embedded fonts -->
        <!--
        This information must exactly match the font specified
        in the fo file. Otherwise it will use a default font.

        For example,
        <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
            Arial-normal-normal font
        </fo:inline>
        for the font triplet specified by:
        <font-triplet name="Arial" style="normal" weight="bold"/>

        If you do not want to embed the font in the pdf document
        then do not include the "embed-url" attribute.
        The font will be needed where the document is viewed
        for it to be displayed properly.

        possible styles: normal | italic | oblique | backslant
        possible weights: normal | bold | 100 | 200 | 300 | 400
                          | 500 | 600 | 700 | 800 | 900
        (normal = 400, bold = 700)
        -->

        <!--
        <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
          <font-triplet name="Arial" style="normal" weight="normal"/>
          <font-triplet name="ArialMT" style="normal" weight="normal"/>
        </font>
        <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
          <font-triplet name="Arial" style="normal" weight="bold"/>
          <font-triplet name="ArialMT" style="normal" weight="bold"/>
        </font>
        -->
		
		  <font metrics-url="c:\docbook\fonts\arial.xml" kerning="yes" embed-url="c:\docbook\fonts\arial.ttf">
		    <font-triplet name="Arial" style="normal" weight="normal"/>
		    <font-triplet name="ArialMT" style="normal" weight="normal"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\arialb.xml" kerning="yes" embed-url="c:\docbook\fonts\arialb.ttf">
		    <font-triplet name="Arial" style="normal" weight="bold"/>
		    <font-triplet name="ArialMT" style="normal" weight="bold"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\ariali.xml" kerning="yes" embed-url="c:\docbook\fonts\ariali.ttf">
		    <font-triplet name="Arial" style="italic" weight="normal"/>
		    <font-triplet name="ArialMT" style="italic" weight="normal"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\arialbi.xml" kerning="yes" embed-url="c:\docbook\fonts\arialbi.ttf">
		    <font-triplet name="Arial" style="italic" weight="bold"/>
		    <font-triplet name="ArialMT" style="italic" weight="bold"/>
		  </font>
		 
		  <font metrics-url="c:\docbook\fonts\times.xml" kerning="yes" embed-url="c:\docbook\fonts\times.ttf">
		    <font-triplet name="Times" style="normal" weight="normal"/>
		    <font-triplet name="TimesMT" style="normal" weight="normal"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\timesb.xml" kerning="yes" embed-url="c:\docbook\fonts\timesb.ttf">
		    <font-triplet name="Times" style="normal" weight="bold"/>
		    <font-triplet name="TimesMT" style="normal" weight="bold"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\timesi.xml" kerning="yes" embed-url="c:\docbook\fonts\timesi.ttf">
		    <font-triplet name="Times" style="italic" weight="normal"/>
		    <font-triplet name="TimesMT" style="italic" weight="normal"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\timesbi.xml" kerning="yes" embed-url="c:\docbook\fonts\timesbi.ttf">
		    <font-triplet name="Times" style="italic" weight="bold"/>
		    <font-triplet name="TimesMT" style="italic" weight="bold"/>
		  </font>

		  <font metrics-url="c:\docbook\fonts\verdana.xml" kerning="yes" embed-url="c:\docbook\fonts\verdana.ttf">
		    <font-triplet name="Verdana" style="normal" weight="normal"/>
		    <font-triplet name="VerdanaMT" style="normal" weight="normal"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\verdanab.xml" kerning="yes" embed-url="c:\docbook\fonts\verdanab.ttf">
		    <font-triplet name="Verdana" style="normal" weight="bold"/>
		    <font-triplet name="VerdanaMT" style="normal" weight="bold"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\verdanai.xml" kerning="yes" embed-url="c:\docbook\fonts\verdanai.ttf">
		    <font-triplet name="Verdana" style="italic" weight="normal"/>
		    <font-triplet name="VerdanaMT" style="italic" weight="normal"/>
		  </font>
		  <font metrics-url="c:\docbook\fonts\FRA000.xml" kerning="yes" embed-url="c:\docbook\fonts\Fra000.TTF">
		    <font-triplet name="FranklinGEC" style="normal" weight="normal"/>
			<font-triplet name="FranklinGEC" style="normal" weight="bold"/>
		  </font>

      </fonts>

      <!-- This option lets you specify additional options on an XML handler -->
      <!--xml-handler namespace="http://www.w3.org/2000/svg";>
        <stroke-text>false</stroke-text>
      </xml-handler-->

    </renderer>

    <renderer mime="application/postscript">
      <!-- This option forces the PS renderer to rotate landscape pages -->
      <!--auto-rotate-landscape>true</auto-rotate-landscape-->
      
      <!-- This option lets you specify additional options on an XML handler -->
      <!--xml-handler namespace="http://www.w3.org/2000/svg";>
        <stroke-text>false</stroke-text>
      </xml-handler-->
    </renderer>

    <renderer mime="application/vnd.hp-PCL">
    </renderer>

    <!-- MIF does not have a renderer
    <renderer mime="application/vnd.mif">
    </renderer>
    -->

    <renderer mime="image/svg+xml">
      <format type="paginated"/>
      <link value="true"/>
      <strokeText value="false"/>
    </renderer>

    <renderer mime="application/awt">
    </renderer>

    <renderer mime="text/xml">
    </renderer>

    <!-- RTF does not have a renderer
    <renderer mime="text/rtf">
    </renderer>
    -->

    <renderer mime="text/plain">
      <pageSize columns="80"/>
    </renderer>

  </renderers>

</fop>

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/328 - Release Date: 01/05/2006

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

Reply via email to