Skip to content

Commit 606ad7d

Browse files
committed
Fixed build error
1 parent 69aa642 commit 606ad7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Synercoding.FileFormats.Pdf/PdfWriter.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using System.IO;
7+
using System.Reflection;
78

89
namespace Synercoding.FileFormats.Pdf
910
{
@@ -38,7 +39,7 @@ public PdfWriter(Stream stream)
3839
public PdfWriter(Stream stream, bool ownsStream)
3940
{
4041
_stream = stream;
41-
(new Header()).WriteToStream(stream);
42+
new Header().WriteToStream(stream);
4243

4344
_pageTreeNode = _tableBuilder.ReserveId();
4445
_catalog = _tableBuilder.ReserveId();
@@ -52,7 +53,7 @@ public PdfWriter(Stream stream, bool ownsStream)
5253
/// </summary>
5354
public DocumentInformation DocumentInformation { get; } = new DocumentInformation()
5455
{
55-
Producer = $"Synercoding.FileFormats.Pdf {System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}",
56+
Producer = $"Synercoding.FileFormats.Pdf {typeof(PdfWriter).GetTypeInfo().Assembly.GetName().Version}",
5657
CreationDate = DateTime.Now
5758
};
5859

0 commit comments

Comments
 (0)