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.2KB

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