Class PdfFormat

PdfFormat class

Adobe’s Portable Document Format

public class PdfFormat : FileFormat

Properties

NameDescription
CanExport { get; }Gets whether Aspose.3D supports export scene to current file format.(Inherited from FileFormat.)
CanImport { get; }Gets whether Aspose.3D supports import scene from current file format.(Inherited from FileFormat.)
ContentType { get; }Gets file format content type(Inherited from FileFormat.)
Extension { get; }Gets the extension name of this type.(Inherited from FileFormat.)
Extensions { get; }Gets the extension names of this type.(Inherited from FileFormat.)
FileFormatType { get; }Gets file format type(Inherited from FileFormat.)
Version { get; }Gets file format version(Inherited from FileFormat.)

Methods

NameDescription
CreateLoadOptions()Create a default load options for this file format(Inherited from FileFormat.)
CreateSaveOptions()Create a default save options for this file format(Inherited from FileFormat.)
Extract(Stream, byte[])Extract raw 3D content from PDF stream.
Extract(string, byte[])Extract raw 3D content from PDF file.
ExtractScene(string)Extract 3D scenes from PDF file.
ExtractScene(Stream, byte[])Extract raw 3D content from PDF stream.
ExtractScene(string, byte[])Extract 3D scenes from PDF file.
override ToString()Formats to string(Inherited from FileFormat.)

Examples

The following code shows how to extract all supported 3D scenes from a 3D PDF file, and write them to obj format.

var scenes = FileFormat.PDF.ExtractScene("input.pdf");
for(int i = 0; i < scenes.Count; i++) 
{
    scenes[i].Save($"output-{i}.obj");
}

See Also