diff --git a/Directory.Build.props b/Directory.Build.props
index d268479..4ac8765 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -35,7 +35,6 @@
https://github.com/synercoder/FileFormats.Pdf/
https://api.nuget.org/v3/index.json;
- https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
true
diff --git a/src/Synercoding.FileFormats.Pdf/LowLevel/ObjectStream.cs b/src/Synercoding.FileFormats.Pdf/LowLevel/ObjectStream.cs
index 981b3cf..527a13c 100644
--- a/src/Synercoding.FileFormats.Pdf/LowLevel/ObjectStream.cs
+++ b/src/Synercoding.FileFormats.Pdf/LowLevel/ObjectStream.cs
@@ -3,7 +3,6 @@
using Synercoding.FileFormats.Pdf.LowLevel.Internal;
using Synercoding.FileFormats.Pdf.LowLevel.Text;
using Synercoding.FileFormats.Pdf.LowLevel.XRef;
-using System.IO.Compression;
namespace Synercoding.FileFormats.Pdf.LowLevel;
@@ -251,8 +250,7 @@ public ObjectStream Write(Separation separation)
.Write(PdfName.Get("Range"), range);
})
.WriteByte(BRACKET_CLOSE)
- .EndObject()
- .NewLine();
+ .EndObject();
return this;
}
@@ -278,8 +276,7 @@ private void _indirectDictionary(PdfReference reference, T data, Action(PdfReference reference, Stream stream, TData
dictionaryAction(data, dictionary);
})
+ .NewLine()
.Write("stream")
.NewLine()
.CopyFrom(stream)
.NewLine()
.Write("endstream")
- .NewLine()
- .EndObject()
- .NewLine();
+ .EndObject();
}
}
diff --git a/src/Synercoding.FileFormats.Pdf/PackageDetails.props b/src/Synercoding.FileFormats.Pdf/PackageDetails.props
index 94e8325..657822a 100644
--- a/src/Synercoding.FileFormats.Pdf/PackageDetails.props
+++ b/src/Synercoding.FileFormats.Pdf/PackageDetails.props
@@ -10,7 +10,7 @@
Synercoding.FileFormats.Pdf
Synercoding.FileFormats.Pdf
Contains classes which makes it easy to quickly create a pdf file.
- Fixed broken zlib stream by removing explicit header and replacing deflate with zlib.
+ Added and removed newlines on byte level to better match the standard.
diff --git a/src/Synercoding.FileFormats.Pdf/PdfWriter.cs b/src/Synercoding.FileFormats.Pdf/PdfWriter.cs
index 40a1163..3f2a887 100644
--- a/src/Synercoding.FileFormats.Pdf/PdfWriter.cs
+++ b/src/Synercoding.FileFormats.Pdf/PdfWriter.cs
@@ -335,6 +335,7 @@ private static void _writeTrailer(PdfStream stream, uint startXRef, int size, Pd
.Write(PdfName.Get("Root"), root)
.Write(PdfName.Get("Info"), documentInfo);
})
+ .NewLine()
.Write("startxref")
.NewLine()
.Write(startXRef)