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.

color.fo 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <fo:layout-master-set>
  4. <fo:simple-page-master master-name="simplePM"
  5. page-height="25cm"
  6. page-width="20cm"
  7. margin-top="1cm"
  8. margin-bottom="1cm"
  9. margin-left="1.5cm"
  10. margin-right="1.5cm">
  11. <fo:region-body margin-top="3cm" margin-bottom="3cm"/>
  12. <fo:region-before extent="2.5cm"/>
  13. <fo:region-after extent="2.5cm"/>
  14. </fo:simple-page-master>
  15. </fo:layout-master-set>
  16. <fo:page-sequence master-reference="simplePM">
  17. <fo:flow flow-name="xsl-region-body">
  18. <fo:block color="#C00000">
  19. This is a simple fo text in red color.
  20. <fo:leader leader-pattern="rule" rule-thickness="3.0pt"></fo:leader>
  21. </fo:block>
  22. <fo:block color="#00C000">
  23. This is a simple fo text in green color followed by black line.
  24. <fo:leader color="#000000" leader-pattern="rule" rule-thickness="3.0pt"></fo:leader>
  25. </fo:block>
  26. <fo:block color="#0000C0">
  27. This is a simple fo text in blue color.
  28. <fo:inline color="#C055C0">This is in</fo:inline>
  29. <fo:inline color="#550055">the same sentence</fo:inline>
  30. This is text in blue again
  31. <fo:leader leader-pattern="rule" rule-thickness="3.0pt"></fo:leader>
  32. </fo:block>
  33. </fo:flow>
  34. </fo:page-sequence>
  35. </fo:root>