Skip to content

Commit 61be30e

Browse files
committed
Fix broken constructor by replacing File.OpenRead with File.OpenWrite
1 parent 328bd87 commit 61be30e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Synercoding.FileFormats.Pdf/PdfWriter.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public PdfWriter(string filePath)
3636
/// <param name="filePath">The path to the PDF file to create.</param>
3737
/// <param name="settings">The writer settings.</param>
3838
public PdfWriter(string filePath, WriterSettings settings)
39-
: this(File.OpenRead(filePath), settings, true)
39+
: this(File.OpenWrite(filePath), settings, true)
4040
{ }
4141

4242
/// <summary>

0 commit comments

Comments
 (0)