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.

link.fo 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <!-- defines page layout -->
  4. <fo:layout-master-set>
  5. <fo:simple-page-master master-name="first"
  6. page-height="29.7cm"
  7. page-width="21cm"
  8. margin-top="1cm"
  9. margin-bottom="2cm"
  10. margin-left="2.5cm"
  11. margin-right="2.5cm">
  12. <fo:region-body margin-top="3cm"/>
  13. <fo:region-before extent="3cm"/>
  14. <fo:region-after extent="1.5cm"/>
  15. </fo:simple-page-master>
  16. </fo:layout-master-set>
  17. <!-- end: defines page layout -->
  18. <!-- actual layout -->
  19. <fo:page-sequence master-reference="first">
  20. <!-- text body -->
  21. <fo:flow flow-name="xsl-region-body">
  22. <!-- Normal text -->
  23. <fo:block text-align="center">0. Normal text without link
  24. </fo:block>
  25. <!-- Normal text -->
  26. <fo:block text-align="center"
  27. font-family="serif">1. <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  28. </fo:block>
  29. <!-- Normal text -->
  30. <fo:block text-align="center">---</fo:block>
  31. <!-- Normal text -->
  32. <fo:block text-align="center">
  33. 2. A one line example (text-align='start'): <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  34. </fo:block>
  35. <!-- Normal text -->
  36. <fo:block text-align="center">---</fo:block>
  37. <!-- Normal text -->
  38. <fo:block text-align="start">
  39. 3. A multiline text (text-align='start'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  40. enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  41. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  42. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  43. </fo:block>
  44. <!-- Normal text -->
  45. <fo:block text-align="center">---</fo:block>
  46. <!-- Normal text -->
  47. <fo:block text-align="center">
  48. 4. A multiline text (text-align='centered'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  49. enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  50. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  51. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  52. </fo:block>
  53. <!-- Normal text -->
  54. <fo:block text-align="center">---</fo:block>
  55. <!-- Normal text -->
  56. <fo:block text-align="end">
  57. 5. A multiline text (text-align='end'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  58. enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  59. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  60. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  61. </fo:block>
  62. <!-- Normal text -->
  63. <fo:block text-align="center">---</fo:block>
  64. <!-- Normal text -->
  65. <fo:block text-align="justify">
  66. 6. A multiline text (text-align='justify'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  67. enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  68. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  69. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  70. </fo:block>
  71. <!-- Normal text -->
  72. <fo:block text-align="center">---</fo:block>
  73. <!-- Normal text -->
  74. <fo:block text-align="start"
  75. space-before.optimum="6pt"
  76. line-height="24pt"
  77. font-family="serif"
  78. padding-top="3pt"
  79. >
  80. 7. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  81. enable <fo:basic-link external-destination="normal.pdf">generic</fo:basic-link> SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  82. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  83. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  84. </fo:block>
  85. <!-- Normal text -->
  86. <fo:block text-align="start"
  87. space-before.optimum="6pt"
  88. line-height="24pt"
  89. font-family="serif"
  90. padding-top="3pt"
  91. >
  92. 8. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif, padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  93. enable <fo:basic-link external-destination="normal.pdf">generic</fo:basic-link> SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  94. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  95. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  96. </fo:block>
  97. <!-- Normal text -->
  98. <fo:block text-align="start"
  99. space-before.optimum="6pt"
  100. line-height="24pt"
  101. font-family="serif"
  102. padding-top="3pt"
  103. >
  104. 9. Linking to a specific page of an external:
  105. <fo:basic-link external-destination="extensive.pdf#page=1">extensive.pdf, Page 2</fo:basic-link>.
  106. </fo:block>
  107. <!-- Normal text -->
  108. <!-- <fo:block text-align="start"
  109. space-before.optimum="6pt"
  110. line-height="24pt"
  111. font-family="serif"
  112. padding-top="3pt"
  113. >
  114. 8. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif, padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
  115. enable <fo:basic-link external-destination="normal.pdf">generic</fo:basic-link> SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
  116. has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
  117. go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
  118. </fo:block>
  119. -->
  120. </fo:flow>
  121. </fo:page-sequence>
  122. </fo:root>