Click or drag to resize

PdfAssociatedFileCollection Class

Represents a collection of associated files that provide a means to associate content in other formats with selected objects of a PDF file and to identify the relationship between them.

For associated files their associated PdfFileSpecification shall include the AssociatedRelationshipType property indicating one of several possible relationships that the file has to the associated PDF object.

Inheritance Hierarchy
System.Object
  SautinSoft.Pdf.PdfObject
    SautinSoft.Pdf.PdfCollection
      SautinSoft.Pdf.PdfCollection<PdfFileSpecification>
        SautinSoft.Pdf.PdfOptionalCollection<PdfFileSpecification>
          SautinSoft.Pdf.PdfAssociatedFileCollection

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public sealed class PdfAssociatedFileCollection : PdfOptionalCollection<PdfFileSpecification>, 
	IList, ICollection, IEnumerable, IList<PdfFileSpecification>, 
	ICollection<PdfFileSpecification>, IEnumerable<PdfFileSpecification>

The PdfAssociatedFileCollection type exposes the following members.

Methods
 NameDescription
Public methodAdd Adds a new PdfFileSpecification with the specified relationship and the EmbeddedFile copied from the resource specified by the filePath.
Public methodAddEmpty

Adds a new PdfFileSpecification with the specified relationship and an empty EmbeddedFile.

Use the OpenWrite(Boolean) method of the EmbeddedFile of a returned PdfFileSpecification to fill the empty EmbeddedFile.

Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfCollection.
(Defined by PdfObjectExtensions)
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or null if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddArray Gets the PdfArray that serves as a backing storage of the specified PdfCollection.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also