diff options
author | Kelly Campbell <kellyc@apache.org> | 2001-03-29 07:34:57 +0000 |
---|---|---|
committer | Kelly Campbell <kellyc@apache.org> | 2001-03-29 07:34:57 +0000 |
commit | 4805c63fb1a1fd0c075dbf872cf1e07ae119a934 (patch) | |
tree | b5fddf0df53ca4b2fc1a1683ade45bfdd4e72c13 /docs/examples | |
parent | 86284c5b1d29aac3415887b81147fa1f61a6ff6a (diff) | |
download | xmlgraphics-fop-4805c63fb1a1fd0c075dbf872cf1e07ae119a934.tar.gz xmlgraphics-fop-4805c63fb1a1fd0c075dbf872cf1e07ae119a934.zip |
Fixed basic-link horizontal position with justification turned on.
PR: 953
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194179 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/build.xml | 2 | ||||
-rw-r--r-- | docs/examples/fo/newlinktest.fo | 114 |
2 files changed, 116 insertions, 0 deletions
diff --git a/docs/examples/build.xml b/docs/examples/build.xml index 09e3b7b04..5c22ea6e4 100644 --- a/docs/examples/build.xml +++ b/docs/examples/build.xml @@ -46,6 +46,7 @@ <fop fofile="${foDir}/table.fo" pdffile="${testDir}/table.pdf"/> <fop fofile="${foDir}/list.fo" pdffile="${testDir}/list.pdf"/> <fop fofile="${foDir}/link.fo" pdffile="${testDir}/link.pdf"/> + <fop fofile="${foDir}/newlinktest.fo" pdffile="${testDir}/newlinktest.pdf"/> <fop fofile="${foDir}/border.fo" pdffile="${testDir}/border.pdf"/> <fop fofile="${foDir}/extensive.fo" pdffile="${testDir}/extensive.pdf"/> <fop fofile="${foDir}/images.fo" pdffile="${testDir}/images.pdf"/> @@ -85,6 +86,7 @@ <fop fofile="${foDir}/table.fo" pdffile="${referenceDir}/table.pdf"/> <fop fofile="${foDir}/list.fo" pdffile="${referenceDir}/list.pdf"/> <fop fofile="${foDir}/link.fo" pdffile="${referenceDir}/link.pdf"/> + <fop fofile="${foDir}/newlinktest.fo" pdffile="${referenceDir}/newlinktest.pdf"/> <fop fofile="${foDir}/border.fo" pdffile="${referenceDir}/border.pdf"/> <fop fofile="${foDir}/extensive.fo" pdffile="${referenceDir}/extensive.pdf"/> <fop fofile="${foDir}/images.fo" pdffile="${referenceDir}/images.pdf"/> diff --git a/docs/examples/fo/newlinktest.fo b/docs/examples/fo/newlinktest.fo new file mode 100644 index 000000000..55df88218 --- /dev/null +++ b/docs/examples/fo/newlinktest.fo @@ -0,0 +1,114 @@ +<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + + <!-- layout for the first page --> + <fo:simple-page-master master-name="first" + margin-top="1in" + margin-bottom="1in" + margin-left="1in" + margin-right="1in"> + <fo:region-body/> + </fo:simple-page-master> + + + </fo:layout-master-set> + <!-- end: defines page layout --> + + <!-- actual layout --> + <fo:page-sequence master-name="first"> + + + + +<fo:flow flow-name="xsl-region-body"> + + <fo:block space-after.optimum="3pt" font-family="serif" id="block1"> + FOP is the world's first print formatter driven by XSL formatting + objects. It is a Java 1.1 application that reads a formatting object + tree and then turns it into a PDF document. The formatting object + tree, can be in the form of an XML document (output by an XSLT engine + like XT or Xalan) or can be passed in memory as a DOM Document or (in + the case of XT) SAX events. + </fo:block> + + <fo:block space-after.optimum="12pt" font-family="serif">FOP is part of Apache's XML project. The homepage of FOP is + <fo:inline font-style="italic" font-family="serif"><fo:basic-link color="blue" external-destination="http://xml.apache.org/fop">http://xml.apache.org/fop</fo:basic-link></fo:inline> + </fo:block> + +<fo:block space-after.optimum="12pt" font-family="serif" font-weight="bold" text-align="center"> +align="start" +</fo:block> + +<fo:block space-after.optimum="12pt" font-family="serif" text-align="start"> + Apache FOP is the world's first print formatter driven by XSL formatting + objects. It is a Java 1.1 application that reads a <fo:basic-link internal-destination="block1" color="blue">formatting object</fo:basic-link> + tree and then turns it into a <fo:basic-link internal-destination="block1" color="blue">PDF document</fo:basic-link>. The formatting object + tree, can be in the form of an XML <fo:basic-link internal-destination="block1" color="blue">document</fo:basic-link> (output by an XSLT engine + like XT or Xalan) or can be passed in memory as a DOM Document or (in + the case of XT) SAX events. + + </fo:block> + +<fo:block space-after.optimum="12pt" font-family="serif" font-weight="bold" text-align="center"> +align="center" +</fo:block> + +<fo:block space-after.optimum="12pt" font-family="serif" text-align="center"> + Apache FOP is the world's first print formatter driven by XSL formatting + objects. It is a Java 1.1 application that reads a <fo:basic-link internal-destination="block1" color="blue">formatting object</fo:basic-link> + tree and then turns it into a <fo:basic-link internal-destination="block1" color="blue">PDF document</fo:basic-link>. The formatting object + tree, can be in the form of an XML <fo:basic-link internal-destination="block1" color="blue">document</fo:basic-link> (output by an XSLT engine + like XT or Xalan) or can be passed in memory as a DOM Document or (in + the case of XT) SAX events. + + </fo:block> + +<fo:block space-after.optimum="12pt" font-family="serif" font-weight="bold" text-align="center"> +align="justify" +</fo:block> + + <fo:block space-after.optimum="12pt" font-family="serif" text-align="justify"> + Apache FOP is the world's first print formatter driven by XSL formatting + objects. It is a Java 1.1 application that reads a <fo:basic-link internal-destination="block1" color="blue">formatting object</fo:basic-link> + tree and then turns it into a <fo:basic-link internal-destination="block1" color="blue">PDF document</fo:basic-link>. The formatting object + tree, can be in the form of an XML <fo:basic-link internal-destination="block1" color="blue">document</fo:basic-link> (output by an XSLT engine + like XT or Xalan) or can be passed in memory as a DOM Document or (in + the case of XT) SAX events. + + </fo:block> + +<!-- table start --> + <fo:table> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell ><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">ugly</fo:basic-link></fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">dice</fo:basic-link></fo:block></fo:table-cell> + <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">art</fo:basic-link></fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">java</fo:basic-link></fo:block></fo:table-cell> + <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + +</fo:flow> + +</fo:page-sequence> +</fo:root> |