aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMehdi Houshmand <mehdi@apache.org>2012-01-24 09:53:32 +0000
committerMehdi Houshmand <mehdi@apache.org>2012-01-24 09:53:32 +0000
commitf248634b7fcd300446c25275d89cf7e07f3757c3 (patch)
tree6c21f675be9722d81f8eaade9f5d58bbfbb94c75 /examples
parentfb20c15fa4aafcc71ddb7288d45d32db118a7d86 (diff)
downloadxmlgraphics-fop-f248634b7fcd300446c25275d89cf7e07f3757c3.tar.gz
xmlgraphics-fop-f248634b7fcd300446c25275d89cf7e07f3757c3.zip
Reverted changes made in r1234877, see bugzilla#52513
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1235189 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples')
-rw-r--r--examples/embedding/java/embedding/ExampleFO2JPSPrint.java3
-rw-r--r--examples/embedding/java/embedding/atxml/ExampleConcat.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/embedding/java/embedding/ExampleFO2JPSPrint.java b/examples/embedding/java/embedding/ExampleFO2JPSPrint.java
index 1e0ec4853..4f18b71ab 100644
--- a/examples/embedding/java/embedding/ExampleFO2JPSPrint.java
+++ b/examples/embedding/java/embedding/ExampleFO2JPSPrint.java
@@ -85,7 +85,8 @@ public class ExampleFO2JPSPrint {
//Set up a custom user agent so we can supply our own renderer instance
FOUserAgent userAgent = fopFactory.newFOUserAgent();
- PageableRenderer renderer = new PageableRenderer(userAgent);
+ PageableRenderer renderer = new PageableRenderer();
+ renderer.setUserAgent(userAgent);
userAgent.setRendererOverride(renderer);
// Construct FOP with desired output format
diff --git a/examples/embedding/java/embedding/atxml/ExampleConcat.java b/examples/embedding/java/embedding/atxml/ExampleConcat.java
index 289f7d074..adec1b08c 100644
--- a/examples/embedding/java/embedding/atxml/ExampleConcat.java
+++ b/examples/embedding/java/embedding/atxml/ExampleConcat.java
@@ -93,7 +93,8 @@ public class ExampleConcat {
userAgent, MimeConstants.MIME_PDF);
//Create the XMLRenderer to create the area tree XML
- XMLRenderer xmlRenderer = new XMLRenderer(userAgent);
+ XMLRenderer xmlRenderer = new XMLRenderer();
+ xmlRenderer.setUserAgent(userAgent);
//Tell the XMLRenderer to mimic the target renderer
xmlRenderer.mimicRenderer(targetRenderer);