com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class EmbeddedFileCollection

    • Method Detail

      • isSynchronized

        public boolean isSynchronized()

        Gets a value indicating whether access to this collection is synchronized (thread safe).

        Returns:
        boolean value
      • getSyncRoot

        public Object getSyncRoot()

        Gets an object that can be used to synchronize access to this collection.

        Returns:
        Object for synchronization
      • size

        public int size()

        Gets number of embedded files in collection.

        Returns:
        int value
      • iterator

        public com.aspose.ms.System.Collections.IEnumerator iterator()

        Returns colleciton enumerator.

        Specified by:
        iterator in interface Iterable<FileSpecification>
        Returns:
        Enumerator of colleciton.
      • add

        public void add(FileSpecification file)

        Adds embedded file specification into collection.

        Parameters:
        file - FileSpecification which should be added into colleciton.
      • delete

        public void delete(String name)

        Delete embedded file by name.

        Parameters:
        name - Name of the embedded file which should be deleted.
      • delete

        public void delete()

        Remove all embedded files from document.

      • get_Item

        public FileSpecification get_Item(int index)

        Gets embedded file by its index.

        Parameters:
        index - Index of embedded file. Numbering is started from 1.
        Returns:
        Retreived embedded file specification
      • get_Item

        public FileSpecification get_Item(String name)

        Gets embedded file by its name.

        Parameters:
        name - Embedded file name.
        Returns:
        Retreived embedded file specification.