public class PDF3DContent extends Object
Class PDF3DContent.
Constructor and Description |
---|
PDF3DContent()
Initializes a new instance of the
PDF3DContent class. |
PDF3DContent(String filename)
Initializes a new instance of the
PDF3DContent class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAsByteArray()
Gets 3D content as byte array.
|
InputStream |
getAsStream()
Gets 3D content as stream.
|
String |
getExtension()
Gets the extension .
|
void |
load(String filename)
Loads 3D content with the specified filename.
|
void |
loadAsPRC(byte[] stream)
Loads 3D content from byte array as PRC format.
|
void |
loadAsPRC(InputStream stream)
Loads 3D content from stream as PRC format.
|
void |
loadAsPRC(String filename)
Loads 3D content with the specified filename as PRC format.
|
void |
loadAsU3D(byte[] stream)
Loads 3D content from byte array as U3D format.
|
void |
loadAsU3D(InputStream stream)
Loads 3D content from stream as U3D format.
|
void |
loadAsU3D(String filename)
Loads 3D content with the specified filename as U3D format.
|
void |
saveToFile(String filename)
Saves 3D content to file.
|
public PDF3DContent()
Initializes a new instance of the PDF3DContent
class.
public PDF3DContent(String filename)
Initializes a new instance of the PDF3DContent
class.
filename
- The filename.com.aspose.ms.System.ArgumentException
- Unknown 3D Artwork typepublic String getExtension()
Gets the extension .
public void load(String filename)
Loads 3D content with the specified filename.
filename
- The filename.com.aspose.ms.System.ArgumentException
- Unknown 3D content typepublic void loadAsPRC(String filename)
Loads 3D content with the specified filename as PRC format.
filename
- The filename.public void loadAsU3D(String filename)
Loads 3D content with the specified filename as U3D format.
filename
- The filename.public void loadAsPRC(InputStream stream)
Loads 3D content from stream as PRC format.
stream
- The 3D content stream.public void loadAsU3D(InputStream stream)
Loads 3D content from stream as U3D format.
stream
- The 3D content stream.public void loadAsPRC(byte[] stream)
Loads 3D content from byte array as PRC format.
stream
- The stream.public void loadAsU3D(byte[] stream)
Loads 3D content from byte array as U3D format.
stream
- The stream.public void saveToFile(String filename)
Saves 3D content to file.
filename
- The file name.com.aspose.ms.System.ArgumentException
- 3DArtwork content format is PRC or U3D.public InputStream getAsStream()
Gets 3D content as stream.
public byte[] getAsByteArray()
Gets 3D content as byte array.