Click or drag to resize

PdfPortfolioFileCollection Class

Represents a collection of a PdfFileSpecifications contained in the Portfolio (root files) or some Portfolio folder.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.PdfPdfCollection
      SautinSoft.PdfPdfCollectionPdfFileSpecification
        SautinSoft.Pdf.PortfoliosPdfPortfolioFileCollection

Namespace: SautinSoft.Pdf.Portfolios
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public sealed class PdfPortfolioFileCollection : PdfCollection<PdfFileSpecification>, 
	IList, ICollection, IEnumerable, IList<PdfFileSpecification>, 
	ICollection<PdfFileSpecification>, IEnumerable<PdfFileSpecification>

The PdfPortfolioFileCollection type exposes the following members.

Methods
 NameDescription
Public methodAdd Adds a new PdfFileSpecification with the EmbeddedFile copied from the resource specified by the filePath to EmbeddedFiles under the PdfPortfolio (root file) or parent PdfPortfolioFolder.
Public methodAddEmpty

Add a new PdfFileSpecification with the specified name and an empty EmbeddedFile to EmbeddedFiles under the PdfPortfolio (root file) or parent PdfPortfolioFolder.

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 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
Remarks
This collection is a filtered view of the EmbeddedFiles that contains only PdfFileSpecifications located in the current PdfPortfolioFolder (the associated key of a PdfFileSpecification in the EmbeddedFiles has a prefix folder ID that is equal to the internal ID of the current PdfPortfolioFolder.
See Also