From: Keiron Liddle Date: Fri, 8 Nov 2002 09:25:34 +0000 (+0000) Subject: added some image examples X-Git-Tag: Alt-Design-integration-base~341 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb4d7f6ab1726f37d541bbb61a1a64169ba6058d;p=xmlgraphics-fop.git added some image examples some minor fixes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195448 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/design/book.xml b/src/documentation/content/xdocs/design/book.xml index 84da0fa9d..6f8fa0d98 100644 --- a/src/documentation/content/xdocs/design/book.xml +++ b/src/documentation/content/xdocs/design/book.xml @@ -6,6 +6,9 @@ copyright="@year@ The Apache Software Foundation" xmlns:xlink="http://www.w3.org/1999/xlink"> + + + @@ -14,7 +17,7 @@ - + diff --git a/src/documentation/content/xdocs/design/extending.xml b/src/documentation/content/xdocs/design/extending.xml index ae0938ec1..d0a954586 100644 --- a/src/documentation/content/xdocs/design/extending.xml +++ b/src/documentation/content/xdocs/design/extending.xml @@ -85,7 +85,9 @@ document into PDF markup.

eg. -Search]]> + +Search +]]> to result in a text box referencing the following PDF action: >]]> diff --git a/src/documentation/content/xdocs/dev/book.xml b/src/documentation/content/xdocs/dev/book.xml index ef98ef0ba..44c8096cc 100644 --- a/src/documentation/content/xdocs/dev/book.xml +++ b/src/documentation/content/xdocs/dev/book.xml @@ -13,12 +13,14 @@ -

+ + + diff --git a/src/documentation/content/xdocs/dev/examples.xml b/src/documentation/content/xdocs/dev/examples.xml index 89975a21d..1773b58db 100644 --- a/src/documentation/content/xdocs/dev/examples.xml +++ b/src/documentation/content/xdocs/dev/examples.xml @@ -1,14 +1,44 @@ - - -
- FO Examples -
- + + +
+ FO Examples +
+ +
+ Example Documents Using FOP +

+ These examples have been rendered using FOP. +

+
- + Images Examples

+Embedding images in FO: + + + + + + + + + + + + + + + + + + + + + + +
Images in FO
descriptionfo filepdf result
align in larger viewportalign.foalign.fo.pdf
align in smaller viewportalign2.foalign2.fo.pdf
scaling imagesize.fosize.fo.pdf

- -
+ +
diff --git a/src/documentation/content/xdocs/fo/align.fo b/src/documentation/content/xdocs/fo/align.fo new file mode 100644 index 000000000..6c9449a7a --- /dev/null +++ b/src/documentation/content/xdocs/fo/align.fo @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + +1. FOP test for images + + Align in Larger Viewport + +Default align: +(), start +(), end +(), center +(), before +(), after +(), center +(). + + +Default align: +(), start-before +(), start-after +(), start-center +(), center-before +(), center-center +(), center-after +(). + + + +end-before +(), end-center +(), end-after +(). + + + + This section is only required to show that the layout still works. + + + + + + diff --git a/src/documentation/content/xdocs/fo/align2.fo b/src/documentation/content/xdocs/fo/align2.fo new file mode 100644 index 000000000..8c85414d5 --- /dev/null +++ b/src/documentation/content/xdocs/fo/align2.fo @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + +1. FOP test for images + + Align in Smaller Viewport + +Default align: +(), start +(), center +(), end +(), before +(), after +(), center +(). + + +Default align: +(), start-before +(), start-center +(), start-after +(), center-before +(), center-after +(), center-center +(). + + + +end-before +(), end-after +(), end-center +(). + + + + This section is only required to show that the layout still works. + + + + + + diff --git a/src/documentation/content/xdocs/fo/size.fo b/src/documentation/content/xdocs/fo/size.fo new file mode 100644 index 000000000..ae6f763e2 --- /dev/null +++ b/src/documentation/content/xdocs/fo/size.fo @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + +1. FOP test for images + + Normal + +The image () is placed normally. + + + + + Sized + +The image +() +has the content size set. + + + + + Sized + +The image +() +has the width and height set. + + + + + Sized + +The image +() +has the ipd and bpd set. + + + + + Clipped + +The image +() +is clipped with the content size double the viewport size. + + + + + Clipped + +The image +() +is clipped with the content size double the viewport size. +This has error-if-overflow +set so there should be an error reported, it can recover from the +error by clipping to the viewport. + + + + + Scaling + +The image +() +has non-uniform scaling. + + +The image +() +has non-uniform scaling. + + +The image +() +has uniform scaling. + + +The image +() +has uniform scaling. + + + + + + This section is only required to show that the layout still works. + + + + + + diff --git a/src/documentation/resources/images/fop.jpg b/src/documentation/resources/images/fop.jpg new file mode 100644 index 000000000..8fe6ca9ff Binary files /dev/null and b/src/documentation/resources/images/fop.jpg differ diff --git a/src/documentation/sitemap.xmap b/src/documentation/sitemap.xmap index c6adaf1f3..1aa7af81b 100644 --- a/src/documentation/sitemap.xmap +++ b/src/documentation/sitemap.xmap @@ -352,10 +352,17 @@ - + + + + + + + + - +