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 44using System ;
55using System . Collections . Generic ;
66using System . IO ;
7+ using System . Reflection ;
78
89namespace 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
You can’t perform that action at this time.
0 commit comments