empira / PDFsharp-1.5

A .NET library for processing PDF
MIT License
1.28k stars 589 forks source link

correctly dispose File Stream #178

Closed gerwintmg closed 1 year ago

gerwintmg commented 1 year ago

If a Document is created but no pages are added the document object cannot be released as the filestream keeps the partial created file locked. By disposing the filestream in the dispose method we release the lock on the file.

ThomasHoevel commented 1 year ago

Fixed in PDFsharp 6.0.0.