File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Synercoding.FileFormats.Pdf Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
using System ;
5
5
using System . Collections . Generic ;
6
6
using System . IO ;
7
+ using System . Reflection ;
7
8
8
9
namespace Synercoding . FileFormats . Pdf
9
10
{
@@ -38,7 +39,7 @@ public PdfWriter(Stream stream)
38
39
public PdfWriter ( Stream stream , bool ownsStream )
39
40
{
40
41
_stream = stream ;
41
- ( new Header ( ) ) . WriteToStream ( stream ) ;
42
+ new Header ( ) . WriteToStream ( stream ) ;
42
43
43
44
_pageTreeNode = _tableBuilder . ReserveId ( ) ;
44
45
_catalog = _tableBuilder . ReserveId ( ) ;
@@ -52,7 +53,7 @@ public PdfWriter(Stream stream, bool ownsStream)
52
53
/// </summary>
53
54
public DocumentInformation DocumentInformation { get ; } = new DocumentInformation ( )
54
55
{
55
- Producer = $ "Synercoding.FileFormats.Pdf { System . Reflection . Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version } ",
56
+ Producer = $ "Synercoding.FileFormats.Pdf { typeof ( PdfWriter ) . GetTypeInfo ( ) . Assembly . GetName ( ) . Version } ",
56
57
CreationDate = DateTime . Now
57
58
} ;
58
59
You can’t perform that action at this time.
0 commit comments