diff options
author | Keiron Liddle <keiron@apache.org> | 2002-07-01 10:39:29 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-07-01 10:39:29 +0000 |
commit | 7afbc7cb22f8a9922279ea5049685df4faac70eb (patch) | |
tree | 74eb0aacf3c9872391a25d48c8d91cc90e196411 /src/org/apache/fop/pdf/PDFXObject.java | |
parent | 256485c97c7117cf834050dfffaa06d15e27fb5a (diff) | |
download | xmlgraphics-fop-7afbc7cb22f8a9922279ea5049685df4faac70eb.tar.gz xmlgraphics-fop-7afbc7cb22f8a9922279ea5049685df4faac70eb.zip |
fixed some minor errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf/PDFXObject.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFXObject.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/apache/fop/pdf/PDFXObject.java b/src/org/apache/fop/pdf/PDFXObject.java index 8a3b9ad46..8430751d9 100644 --- a/src/org/apache/fop/pdf/PDFXObject.java +++ b/src/org/apache/fop/pdf/PDFXObject.java @@ -62,7 +62,7 @@ public class PDFXObject extends PDFObject { p = p + "<</Type /XObject\n"; p = p + "/Subtype /Image\n"; p = p + "/Name /Im" + Xnum + "\n"; - p = p + "/Length " + imgStream.getDataLength() + "\n"; + p = p + "/Length " + (imgStream.getDataLength() + 1) + "\n"; p = p + "/Width " + pdfimage.getWidth() + "\n"; p = p + "/Height " + pdfimage.getHeight() + "\n"; p = p + "/BitsPerComponent " + pdfimage.getBitsPerPixel() + @@ -133,7 +133,7 @@ public class PDFXObject extends PDFObject { String p = this.number + " " + this.generation + " obj\n"; p = p + "<</Type /XObject\n"; p = p + "/Subtype /PS\n"; - p = p + "/Length " + imgStream.getDataLength(); + p = p + "/Length " + (imgStream.getDataLength() + 1); p = p + dictEntries; p = p + ">>\n"; |