mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-12-21 11:13:55 +08:00
add method to retrieve any embedded files
This commit is contained in:
@@ -62,6 +62,11 @@
|
||||
[NotNull]
|
||||
public Structure Structure { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Access to rare or advanced features of the PDF specification.
|
||||
/// </summary>
|
||||
public AdvancedPdfDocumentAccess Advanced { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The version number of the PDF specification which this file conforms to, for example 1.4.
|
||||
/// </summary>
|
||||
@@ -104,6 +109,7 @@
|
||||
Information = information ?? throw new ArgumentNullException(nameof(information));
|
||||
pages = new Pages(catalog, pageFactory, isLenientParsing, pdfScanner);
|
||||
Structure = new Structure(catalog, crossReferenceTable, pdfScanner);
|
||||
Advanced = new AdvancedPdfDocumentAccess(pdfScanner, filterProvider, catalog, isLenientParsing);
|
||||
documentForm = new Lazy<AcroForm>(() => acroFormFactory.GetAcroForm(catalog));
|
||||
}
|
||||
|
||||
@@ -242,6 +248,7 @@
|
||||
{
|
||||
try
|
||||
{
|
||||
Advanced.Dispose();
|
||||
pdfScanner.Dispose();
|
||||
inputBytes.Dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user