From bb4d7f6ab1726f37d541bbb61a1a64169ba6058d Mon Sep 17 00:00:00 2001
From: Keiron Liddle
Date: Fri, 8 Nov 2002 09:25:34 +0000
Subject: [PATCH] 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
---
.../content/xdocs/design/book.xml | 5 +-
.../content/xdocs/design/extending.xml | 4 +-
src/documentation/content/xdocs/dev/book.xml | 4 +-
.../content/xdocs/dev/examples.xml | 48 +++++--
src/documentation/content/xdocs/fo/align.fo | 68 ++++++++++
src/documentation/content/xdocs/fo/align2.fo | 68 ++++++++++
src/documentation/content/xdocs/fo/size.fo | 118 ++++++++++++++++++
src/documentation/resources/images/fop.jpg | Bin 0 -> 2339 bytes
src/documentation/sitemap.xmap | 11 +-
9 files changed, 312 insertions(+), 14 deletions(-)
create mode 100644 src/documentation/content/xdocs/fo/align.fo
create mode 100644 src/documentation/content/xdocs/fo/align2.fo
create mode 100644 src/documentation/content/xdocs/fo/size.fo
create mode 100644 src/documentation/resources/images/fop.jpg
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 @@
-
-
-
-
+
+
+
+
+
+ Example Documents Using FOP
+
+ These examples have been rendered using FOP.
+
+
-
+ Images Examples
+Embedding images in FO:
+
+ Images in FO
+
+ description
+ fo file
+ pdf result
+
+
+ align in larger viewport
+ align.fo
+ align.fo.pdf
+
+
+ align in smaller viewport
+ align2.fo
+ align2.fo.pdf
+
+
+ scaling image
+ size.fo
+ size.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 0000000000000000000000000000000000000000..8fe6ca9ff0eff08005df813dad4f3fa7a2b74dd3
GIT binary patch
literal 2339
zcmb7FX*kq<7ykceFk>xCX&C!h6J{Dqs3~g360(#?Le`X>R3v3-GZV57GPcSZ#x^L~
zw=5&FB}lDjGG(I!zaSe$IHuy5E9-a
zA|WOvDItbLN~6>irDav+kVqwMWmOF{7K@cqJaSYAqpx-ti}`H=a&vR@@$wzu=Rbgv
zLCRqM?_f6pf^fhUaD{@h07MXk3WDrb00{sP=T4
zQ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