com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PDF3DContent



  • public class PDF3DContent
    extends Object

    Class PDF3DContent.

    • Constructor Detail

      • PDF3DContent

        public PDF3DContent()

        Initializes a new instance of the PDF3DContent class.

      • PDF3DContent

        public PDF3DContent(String filename)

        Initializes a new instance of the PDF3DContent class.

        Parameters:
        filename - The filename.
        Throws:
        com.aspose.ms.System.ArgumentException - Unknown 3D Artwork type
    • Method Detail

      • getExtension

        public String getExtension()

        Gets the extension .

        Returns:
        String object: The extension.
      • load

        public void load(String filename)

        Loads 3D content with the specified filename.

        Parameters:
        filename - The filename.
        Throws:
        com.aspose.ms.System.ArgumentException - Unknown 3D content type
      • loadAsPRC

        public void loadAsPRC(String filename)

        Loads 3D content with the specified filename as PRC format.

        Parameters:
        filename - The filename.
      • loadAsU3D

        public void loadAsU3D(String filename)

        Loads 3D content with the specified filename as U3D format.

        Parameters:
        filename - The filename.
      • loadAsPRC

        public void loadAsPRC(InputStream stream)

        Loads 3D content from stream as PRC format.

        Parameters:
        stream - The 3D content stream.
      • loadAsU3D

        public void loadAsU3D(InputStream stream)

        Loads 3D content from stream as U3D format.

        Parameters:
        stream - The 3D content stream.
      • loadAsPRC

        public void loadAsPRC(byte[] stream)

        Loads 3D content from byte array as PRC format.

        Parameters:
        stream - The stream.
      • loadAsU3D

        public void loadAsU3D(byte[] stream)

        Loads 3D content from byte array as U3D format.

        Parameters:
        stream - The stream.
      • saveToFile

        public void saveToFile(String filename)

        Saves 3D content to file.

        Parameters:
        filename - The file name.
        Throws:
        com.aspose.ms.System.ArgumentException - 3DArtwork content format is PRC or U3D.
      • getAsStream

        public InputStream getAsStream()

        Gets 3D content as stream.

        Returns:
        Stream.
      • getAsByteArray

        public byte[] getAsByteArray()

        Gets 3D content as byte array.

        Returns:
        System.Byte[].