allow stream filters to contain indirect references to name tokens

This commit is contained in:
Eliot Jones
2021-04-25 16:22:22 -04:00
parent c74ca5fda8
commit 9ae0a5ec15
25 changed files with 239 additions and 73 deletions

View File

@@ -44,7 +44,7 @@
[NotNull]
private readonly IPdfTokenScanner pdfScanner;
private readonly IFilterProvider filterProvider;
private readonly ILookupFilterProvider filterProvider;
private readonly BookmarksProvider bookmarksProvider;
[NotNull]
@@ -92,7 +92,7 @@
DocumentInformation information,
EncryptionDictionary encryptionDictionary,
IPdfTokenScanner pdfScanner,
IFilterProvider filterProvider,
ILookupFilterProvider filterProvider,
AcroFormFactory acroFormFactory,
BookmarksProvider bookmarksProvider,
bool clipPaths)
@@ -202,7 +202,7 @@
return false;
}
metadata = new XmpMetadata(xmpStreamToken, filterProvider);
metadata = new XmpMetadata(xmpStreamToken, filterProvider, pdfScanner);
return true;
}
@@ -219,7 +219,11 @@
}
bookmarks = bookmarksProvider.GetBookmarks(Structure.Catalog);
if (bookmarks != null) return true;
if (bookmarks != null)
{
return true;
}
return false;
}