You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fop.xconf 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0"?>
  2. <!--
  3. This is an example configuration file for FOP.
  4. This file contains the same settings as the default values
  5. and will have no effect if used unchanged.
  6. Relative config url's will be resolved relative to
  7. the location of this file.
  8. -->
  9. <!-- NOTE: This is the version of the configuration -->
  10. <fop version="1.0">
  11. <userAgent>
  12. <base url="./"/>
  13. <!-- pixel to millimeter to specify dpi, 72dpi -->
  14. <pixelToMillimeter value="0.35277777777777777778"/>
  15. <!-- default page-height and page-width, in case
  16. value is specified as auto -->
  17. <pageHeight value="11in"/>
  18. <pageWidth value="8.26in"/>
  19. </userAgent>
  20. <!-- Information for specific renderers -->
  21. <!-- Uses renderer mime type for renderers -->
  22. <renderers>
  23. <renderer mime="application/pdf">
  24. <filterList>
  25. <!-- provides compression using zlib flate (default is on) -->
  26. <value>flate</value>
  27. <!-- encodes binary data into printable ascii characters (default off)
  28. This provides about a 4:5 expansion of data size -->
  29. <!-- <value>ascii-85</value> -->
  30. <!-- encodes binary data with hex representation (default off)
  31. This filter is not recommended as it doubles the data size -->
  32. <!-- <value>ascii-hex</value> -->
  33. </filterList>
  34. <fonts>
  35. <!-- embedded fonts -->
  36. <!--
  37. This information must exactly match the font specified
  38. in the fo file. Otherwise it will use a default font.
  39. For example,
  40. <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
  41. Arial-normal-normal font
  42. </fo:inline>
  43. for the font triplet specified by:
  44. <font-triplet name="Arial" style="normal" weight="bold"/>
  45. If you do not want to embed the font in the pdf document
  46. then do not include the "embed-url" attribute.
  47. The font will be needed where the document is viewed
  48. for it to be displayed properly.
  49. possible styles: normal | italic | oblique | backslant
  50. possible weights: normal | bold | 100 | 200 | 300 | 400
  51. | 500 | 600 | 700 | 800 | 900
  52. (normal = 400, bold = 700)
  53. -->
  54. <!--
  55. <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
  56. <font-triplet name="Arial" style="normal" weight="normal"/>
  57. <font-triplet name="ArialMT" style="normal" weight="normal"/>
  58. </font>
  59. <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
  60. <font-triplet name="Arial" style="normal" weight="bold"/>
  61. <font-triplet name="ArialMT" style="normal" weight="bold"/>
  62. </font>
  63. -->
  64. </fonts>
  65. <xmlHandler mime="text/svg+xml">
  66. </xmlHandler>
  67. </renderer>
  68. <renderer mime="application/postscript">
  69. <xmlHandler mime="image/svg+xml">
  70. </xmlHandler>
  71. </renderer>
  72. <renderer mime="application/vnd.hp-PCL">
  73. </renderer>
  74. <!-- MIF does not have a renderer
  75. <renderer mime="application/vnd.mif">
  76. </renderer>
  77. -->
  78. <renderer mime="image/svg+xml">
  79. <format type="paginated"/>
  80. <link value="true"/>
  81. <strokeText value="false"/>
  82. </renderer>
  83. <renderer mime="application/awt">
  84. </renderer>
  85. <renderer mime="text/xml">
  86. </renderer>
  87. <!-- RTF does not have a renderer
  88. <renderer mime="text/rtf">
  89. </renderer>
  90. -->
  91. <renderer mime="text/plain">
  92. <pageSize columns="80"/>
  93. </renderer>
  94. </renderers>
  95. </fop>