Class AdvancedPdfDocumentAccess
Provides access to rare or advanced features from the PDF specification.
public class AdvancedPdfDocumentAccess : IDisposable
- Inheritance
-
AdvancedPdfDocumentAccess
- Implements
- Inherited Members
Methods
Dispose()
public void Dispose()
ReplaceIndirectObject(IndirectReference, Func<IToken, IToken>)
Replaces the token in an internal cache that will be returned instead of scanning the source PDF data for future requests.
public void ReplaceIndirectObject(IndirectReference reference, Func<IToken, IToken> replacer)
Parameters
reference
IndirectReferenceThe object number for the object to replace.
replacer
Func<IToken, IToken>Func that takes existing token as input and return new token.
ReplaceIndirectObject(IndirectReference, IToken)
Replaces the token in an internal cache that will be returned instead of scanning the source PDF data for future requests.
public void ReplaceIndirectObject(IndirectReference reference, IToken replacement)
Parameters
reference
IndirectReferenceThe object number for the object to replace.
replacement
ITokenReplacement token to use.
TryGetEmbeddedFiles(out IReadOnlyList<EmbeddedFile>)
Get any embedded files contained in this PDF document. Since PDF 1.3 any external file referenced by the document may have its contents embedded within the referring PDF file, allowing its contents to be stored or transmitted along with the PDF file.
public bool TryGetEmbeddedFiles(out IReadOnlyList<EmbeddedFile> embeddedFiles)
Parameters
embeddedFiles
IReadOnlyList<EmbeddedFile>The set of embedded files in this document.