From: Jeremias Maerki Date: Fri, 20 Jun 2003 12:26:40 +0000 (+0000) Subject: Fix length entry in for embedded Type1 font (leads to errors in PDF viewers other... X-Git-Tag: fop-0_20_5~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a854fd0ccaac5d7d8608e716562dcb84506ee96d;p=xmlgraphics-fop.git Fix length entry in for embedded Type1 font (leads to errors in PDF viewers other than Acrobat Reader) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@196515 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 00d835411..49b0586a0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ ============================================================================== Done since 0.20.4 release +- Fix for bug: Wrong length value for embedded Type1 font stream (JM) - Fix for bug #20506 (grayscale images in PS renderer) (JM) Submitted by: Zhong(George) Yi - Fix for bad font encodings in the PS renderer (Fonts get reencoded as diff --git a/src/org/apache/fop/pdf/PDFT1Stream.java b/src/org/apache/fop/pdf/PDFT1Stream.java index 11fe4af6e..946f569ef 100644 --- a/src/org/apache/fop/pdf/PDFT1Stream.java +++ b/src/org/apache/fop/pdf/PDFT1Stream.java @@ -73,7 +73,7 @@ public class PDFT1Stream extends PDFStream { int length = 0; String filterEntry = applyFilters(); String preData = this.number + " " + this.generation - + " obj\n<< /Length " + pfb.getLength() + " " + + " obj\n<< /Length " + getDataLength() + " " + filterEntry + " /Length1 " + pfb.getLength1() + " /Length2 " + pfb.getLength2()