aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/pdf/PDFResources.java
diff options
context:
space:
mode:
authorSteve Coffman <gears@apache.org>2000-04-21 19:35:53 +0000
committerSteve Coffman <gears@apache.org>2000-04-21 19:35:53 +0000
commit7d9431f9ed2814a6543fcc94f9deaa26210c6979 (patch)
treee6f45ad5c592800dc0c856ce479989eea76e22fd /src/org/apache/fop/pdf/PDFResources.java
parent43a550c35509a8618086cf56909fffb02827f107 (diff)
downloadxmlgraphics-fop-7d9431f9ed2814a6543fcc94f9deaa26210c6979.tar.gz
xmlgraphics-fop-7d9431f9ed2814a6543fcc94f9deaa26210c6979.zip
Andreas Rueckert's patch to fix inline gif image support. Does not add
compression. I verified that this does not alter the output pdf of the example fo files, and it compiles cleanly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193337 13f79535-47bb-0310-9956-ffa450edef68
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");