Class PdfFormat
Contents
[
Hide
]PdfFormat class
Adobe’s Portable Document Format
public class PdfFormat : FileFormat
Properties
| Name | Description |
|---|---|
| CanExport { get; } | Gets whether Aspose.3D supports export scene to current file format. |
| CanImport { get; } | Gets whether Aspose.3D supports import scene from current file format. |
| ContentType { get; } | Gets file format content type |
| Extension { get; } | Gets the extension name of this type. |
| Extensions { get; } | Gets the extension names of this type. |
| FileFormatType { get; } | Gets file format type |
| Version { get; } | Gets file format version |
Methods
| Name | Description |
|---|---|
| CreateLoadOptions() | Create a default load options for this file format |
| CreateSaveOptions() | Create a default save options for this file format |
| 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 |
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
- class FileFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D