From f971851d24e2f9c039d950dbd157a5a1bf935797 Mon Sep 17 00:00:00 2001 From: psoares33 Date: Mon, 18 Aug 2008 19:17:57 +0000 Subject: [PATCH] PDF-A requires an EOL after obj. git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@13 820d3149-562b-4f88-9aa4-a8e61a3485cf --- src/core/iTextSharp/text/pdf/PdfIndirectObject.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/iTextSharp/text/pdf/PdfIndirectObject.cs b/src/core/iTextSharp/text/pdf/PdfIndirectObject.cs index 4fa6110..78624f4 100644 --- a/src/core/iTextSharp/text/pdf/PdfIndirectObject.cs +++ b/src/core/iTextSharp/text/pdf/PdfIndirectObject.cs @@ -79,7 +79,7 @@ public class PdfIndirectObject { /** the generation number */ protected int generation = 0; - internal static byte[] STARTOBJ = DocWriter.GetISOBytes(" obj"); + internal static byte[] STARTOBJ = DocWriter.GetISOBytes(" obj\n"); internal static byte[] ENDOBJ = DocWriter.GetISOBytes("\nendobj\n"); internal static int SIZEOBJ = STARTOBJ.Length + ENDOBJ.Length; internal PdfObject objecti; @@ -147,9 +147,6 @@ public class PdfIndirectObject { tmp = DocWriter.GetISOBytes(generation.ToString()); os.Write(tmp, 0, tmp.Length); os.Write(STARTOBJ, 0, STARTOBJ.Length); - int type = objecti.Type; - if (type != PdfObject.ARRAY && type != PdfObject.DICTIONARY && type != PdfObject.NAME && type != PdfObject.STRING) - os.WriteByte((byte)' '); objecti.ToPdf(writer, os); os.Write(ENDOBJ, 0, ENDOBJ.Length); }