IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

XSL/XSLT/XPATH XML Discussion :

Probleme font avec FOP !


Sujet :

XSL/XSLT/XPATH XML

  1. #21
    Nouveau membre du Club
    Inscrit en
    Juillet 2007
    Messages
    39
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 39
    Points : 31
    Points
    31
    Par défaut
    ok ça c'est ton fichier XML perso de config que tu passes en paramètre à FOP lors de l'execution c'est ça ?

  2. #22
    Membre expérimenté
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    1 466
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 1 466
    Points : 1 610
    Points
    1 610
    Par défaut
    ouaip.

  3. #23
    Débutant  
    Inscrit en
    Mars 2006
    Messages
    300
    Détails du profil
    Informations forums :
    Inscription : Mars 2006
    Messages : 300
    Points : 60
    Points
    60
    Par défaut
    tu fais :
    fop -c "ton fichier de config" -xml "ton ficgier xml" -xsl "ta feuille xsl" -pdf "resultat.pdf"

    ce fichier config est : fop.xconf voici son contenu :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    <?xml version="1.0"?>
    <!--
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at
     
           http://www.apache.org/licenses/LICENSE-2.0
     
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <!-- $Id: fop.xconf 447325 2006-09-18 08:55:33Z jeremias $ -->
     
    <!--
     
    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>
            -->
    		 <auto-detect/>
     
          </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="image/png">
          <!--transparent-page-background>true</transparent-page-background-->
        </renderer>
     
        <renderer mime="image/tiff">
          <!--transparent-page-background>true</transparent-page-background-->
          <!--compression>CCITT T.6</compression-->
        </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>

  4. #24
    Nouveau membre du Club
    Inscrit en
    Juillet 2007
    Messages
    39
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 39
    Points : 31
    Points
    31
    Par défaut
    ecoute c'est très gentil désormais cela marche impeccable! merci!

  5. #25
    Débutant  
    Inscrit en
    Mars 2006
    Messages
    300
    Détails du profil
    Informations forums :
    Inscription : Mars 2006
    Messages : 300
    Points : 60
    Points
    60
    Par défaut
    tres bien content pour toi...
    je te remercie de meme pour le probleme de pagination !

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 2 PremièrePremière 12

Discussions similaires

  1. Réponses: 3
    Dernier message: 16/04/2009, 08h56
  2. [XSL-FO]Probleme avec FOP
    Par clairepar dans le forum XSL/XSLT/XPATH
    Réponses: 3
    Dernier message: 26/02/2008, 21h54
  3. Probleme avec fop 0.93
    Par saidino dans le forum Documents
    Réponses: 1
    Dernier message: 21/07/2007, 09h23
  4. Problème de fonts avec vncviewer
    Par gorgonite dans le forum Applications et environnements graphiques
    Réponses: 5
    Dernier message: 09/12/2006, 16h36
  5. [FOP] Probleme config avec cooktop
    Par jaktok dans le forum XSL/XSLT/XPATH
    Réponses: 4
    Dernier message: 31/08/2006, 23h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo