Skip to content

Commit aa73290

Browse files
committed
Remove extra newlines from object stream
1 parent c8cd2a7 commit aa73290

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Synercoding.FileFormats.Pdf/LowLevel/ObjectStream.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ public ObjectStream Write(Separation separation)
251251
.Write(PdfName.Get("Range"), range);
252252
})
253253
.WriteByte(BRACKET_CLOSE)
254-
.EndObject()
255-
.NewLine();
254+
.EndObject();
256255

257256
return this;
258257
}
@@ -278,8 +277,7 @@ private void _indirectDictionary<T>(PdfReference reference, T data, Action<T, Pd
278277
InnerStream
279278
.StartObject(reference)
280279
.Dictionary(data, dictionaryAction)
281-
.EndObject()
282-
.NewLine();
280+
.EndObject();
283281
}
284282

285283
private void _indirectStream(PdfReference reference, Stream stream, params StreamFilter[] streamFilters)
@@ -316,8 +314,6 @@ private void _indirectStream<TData>(PdfReference reference, Stream stream, TData
316314
.CopyFrom(stream)
317315
.NewLine()
318316
.Write("endstream")
319-
.NewLine()
320-
.EndObject()
321-
.NewLine();
317+
.EndObject();
322318
}
323319
}

0 commit comments

Comments
 (0)