aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/xml/pdf-a
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2016-03-06 06:14:41 +0000
committerGlenn Adams <gadams@apache.org>2016-03-06 06:14:41 +0000
commit57949ba0cfffa2dd5933a103c6ad867de9f1e7a0 (patch)
treecd1d8100a9135449635251820f39f272151005ac /fop/test/xml/pdf-a
parentc8cde713f54ca731f4a7f3bfaef8af9e8a1b9262 (diff)
downloadxmlgraphics-fop-57949ba0cfffa2dd5933a103c6ad867de9f1e7a0.tar.gz
xmlgraphics-fop-57949ba0cfffa2dd5933a103c6ad867de9f1e7a0.zip
Configure maven build.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop/test/xml/pdf-a')
-rw-r--r--fop/test/xml/pdf-a/base14-font.fo13
-rw-r--r--fop/test/xml/pdf-a/minimal-pdf-a.fo13
-rw-r--r--fop/test/xml/pdf-a/svg-transparency.fo24
-rw-r--r--fop/test/xml/pdf-a/svg-with-transparent-image.fo24
-rw-r--r--fop/test/xml/pdf-a/with-cmyk-images.fo14
-rw-r--r--fop/test/xml/pdf-a/with-rgb-images.fo14
6 files changed, 102 insertions, 0 deletions
diff --git a/fop/test/xml/pdf-a/base14-font.fo b/fop/test/xml/pdf-a/base14-font.fo
new file mode 100644
index 000000000..a33623ec9
--- /dev/null
+++ b/fop/test/xml/pdf-a/base14-font.fo
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="A4">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Hello World!</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/fop/test/xml/pdf-a/minimal-pdf-a.fo b/fop/test/xml/pdf-a/minimal-pdf-a.fo
new file mode 100644
index 000000000..94adf72e2
--- /dev/null
+++ b/fop/test/xml/pdf-a/minimal-pdf-a.fo
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator" font-weight="bold">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="A4">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Hello World!</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/fop/test/xml/pdf-a/svg-transparency.fo b/fop/test/xml/pdf-a/svg-transparency.fo
new file mode 100644
index 000000000..922416fbc
--- /dev/null
+++ b/fop/test/xml/pdf-a/svg-transparency.fo
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="page"
+ page-height="420pt" page-width="620pt" margin="10pt">
+ <fo:region-body display-align="center"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="page">
+ <fo:flow flow-name="xsl-region-body" text-align="center">
+ <fo:block font-size="20pt">RGB Circles</fo:block>
+ <fo:block><fo:instream-foreign-object>
+ <svg xmlns="http://www.w3.org/2000/svg" width="300" height="286.6">
+ <g style="fill-opacity:0.7; stroke:black; stroke-width:3"
+ transform="translate(0, 286.6) scale(1, -1) translate(100, 100)">
+ <circle cx="50" cy="86.6" r="80" style="fill:red;"/>
+ <circle cx="0" cy="0" r="80" style="fill:green;"/>
+ <circle cx="100" cy="0" r="80" style="fill:blue;"/>
+ </g>
+ </svg>
+ </fo:instream-foreign-object></fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/fop/test/xml/pdf-a/svg-with-transparent-image.fo b/fop/test/xml/pdf-a/svg-with-transparent-image.fo
new file mode 100644
index 000000000..503872224
--- /dev/null
+++ b/fop/test/xml/pdf-a/svg-with-transparent-image.fo
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="page"
+ page-height="320pt" page-width="420pt" margin="10pt">
+ <fo:region-body display-align="center"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="page">
+ <fo:flow flow-name="xsl-region-body" text-align="center">
+ <fo:block start-indent="50pt" end-indent="50pt" font-size="15pt" space-after="10pt">SVG
+ referencing a bitmap image that has transparency</fo:block>
+ <fo:block><fo:instream-foreign-object>
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+ width="100" height="100">
+ <rect x="0" y="0" width="100%" height="100%" fill="none" stroke="black"
+ stroke-width="2"/>
+ <image x="0" y="0" width="100%" height="100%"
+ xlink:href="resources/images/list-item.png"/>
+ </svg>
+ </fo:instream-foreign-object></fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/fop/test/xml/pdf-a/with-cmyk-images.fo b/fop/test/xml/pdf-a/with-cmyk-images.fo
new file mode 100644
index 000000000..a5f40a064
--- /dev/null
+++ b/fop/test/xml/pdf-a/with-cmyk-images.fo
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator" font-weight="bold">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="A4">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Hello World!</fo:block>
+ <fo:block><fo:external-graphic src="resources/images/cmyk.jpg"/></fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/fop/test/xml/pdf-a/with-rgb-images.fo b/fop/test/xml/pdf-a/with-rgb-images.fo
new file mode 100644
index 000000000..820e41693
--- /dev/null
+++ b/fop/test/xml/pdf-a/with-rgb-images.fo
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="A4">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Hello World!</fo:block>
+ <fo:block><fo:external-graphic src="resources/images/bgimg300dpi.jpg"/></fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>