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
6 changes: 2 additions & 4 deletions src/foundation/src/PDFsharp/src/PdfSharp/Pdf/PdfOutline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@ void Initialize()
destArray = dest as PdfArray;
if (destArray != null)
{
// Replace Action with /Dest entry.
Elements.Remove(Keys.A);
// Add /Dest entry keeping existing action, as it can contain additional entries within action, like /Next
Elements.Add(Keys.Dest, destArray);
SplitDestinationPage(destArray);
}
Expand All @@ -359,8 +358,7 @@ void Initialize()
}
if (destArray != null)
{
// Replace Action with /Dest entry.
Elements.Remove(Keys.A);
// Add /Dest entry keeping existing action, as it can contain additional entries within action, like /Next
Elements.Add(Keys.Dest, destArray);
SplitDestinationPage(destArray);
}
Expand Down