Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OpenXmlPowerTools/PtOpenXmlUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1944,10 +1944,10 @@ public bool Compare(MediaData arg)
#if !NET35
public static class UriFixer
{
public static void FixInvalidUri(Stream fs, Func<string, Uri> invalidUriHandler)
public static void FixInvalidUri(Stream fs, Func<string, Uri> invalidUriHandler, bool leaveOpen = false)
{
XNamespace relNs = "http://schemas.openxmlformats.org/package/2006/relationships";
using (ZipArchive za = new ZipArchive(fs, ZipArchiveMode.Update))
using (ZipArchive za = new ZipArchive(fs, ZipArchiveMode.Update, leaveOpen))
{
foreach (var entry in za.Entries.ToList())
{
Expand Down