aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/pdf/PDFResources.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/pdf/PDFResources.java')
-rw-r--r--src/org/apache/fop/pdf/PDFResources.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/apache/fop/pdf/PDFResources.java b/src/org/apache/fop/pdf/PDFResources.java
index 8d5281349..30ee840dd 100644
--- a/src/org/apache/fop/pdf/PDFResources.java
+++ b/src/org/apache/fop/pdf/PDFResources.java
@@ -174,7 +174,7 @@ public class PDFResources extends PDFObject {
if (!this.xObjects.isEmpty())
{
p = p.append("/XObject <<");
- for (int i = 1; i < this.xObjects.size(); i++) {
+ for (int i = 1; i <= this.xObjects.size(); i++) {
p = p.append("/Im" + i + " " +
((PDFXObject)
this.xObjects.elementAt(i -
@@ -182,7 +182,8 @@ public class PDFResources extends PDFObject {
+
" \n");
}
- }
+ p = p.append(" >>\n");
+ }
p = p.append(">> \nendobj\n");