public class PdfOptions extends ImageOptionsBase
The PDF options.
| Constructor and Description |
|---|
PdfOptions() |
| Modifier and Type | Method and Description |
|---|---|
PdfDocumentOptions |
getCorePdfOptions()
Gets or sets the core PDF options.
|
boolean |
getIs3DContent()
Gets or sets whether content of the document should be represented as 3D model.
|
PdfDocumentInfo |
getPdfDocumentInfo()
Gets or sets metadata for document.
|
FileFormat |
getTargetFormat() |
void |
setCorePdfOptions(PdfDocumentOptions value)
Gets or sets the core PDF options.
|
void |
setIs3DContent(boolean value)
Gets or sets whether content of the document should be represented as 3D model.
|
void |
setPdfDocumentInfo(PdfDocumentInfo value)
Gets or sets metadata for document.
|
getInterruptionToken, getLayers, getOutputMode, getPalette, getPc3File, getRenderToGraphicsBound, getResolutionSettings, getRotation, getSource, getTimeout, getUserWatermarkColor, getUserWatermarkText, getVectorRasterizationOptions, getXmpData, setInterruptionToken, setLayers, setOutputMode, setPalette, setPc3File, setRenderToGraphicsBound, setResolutionSettings, setRotation, setSource, setTimeout, setUserWatermarkColor, setUserWatermarkText, setVectorRasterizationOptions, setXmpDatapublic FileFormat getTargetFormat()
getTargetFormat in class ImageOptionsBasepublic PdfDocumentInfo getPdfDocumentInfo()
Gets or sets metadata for document.
public void setPdfDocumentInfo(PdfDocumentInfo value)
Gets or sets metadata for document.
public PdfDocumentOptions getCorePdfOptions()
Gets or sets the core PDF options.
public void setCorePdfOptions(PdfDocumentOptions value)
Gets or sets the core PDF options.
value - The core PDF options.public final boolean getIs3DContent()
Gets or sets whether content of the document should be represented as 3D model. Allows to export U3D content directly to PDF in a form of interactive 3D annotation object. The resulting PDF file will contain single 3D model object occupying the entire page with margins.
Sets up the export of U3dImage into PDF containing 3D model with desired size.using (U3dImage u3dImage = (U3dImage)Image.Load(fileName)) { PdfOptions pdfOptions = new PdfOptions() {Is3DContent = true}; var rasterizationOptions = new CadRasterizationOptions(); rasterizationOptions.PageWidth = 1600; rasterizationOptions.PageHeight = 1600; pdfOptions.VectorRasterizationOptions = rasterizationOptions; u3dImage.Save(outFile, pdfOptions); }
public final void setIs3DContent(boolean value)
Gets or sets whether content of the document should be represented as 3D model. Allows to export U3D content directly to PDF in a form of interactive 3D annotation object. The resulting PDF file will contain single 3D model object occupying the entire page with margins.
Sets up the export of U3dImage into PDF containing 3D model with desired size.using (U3dImage u3dImage = (U3dImage)Image.Load(fileName)) { PdfOptions pdfOptions = new PdfOptions() {Is3DContent = true}; var rasterizationOptions = new CadRasterizationOptions(); rasterizationOptions.PageWidth = 1600; rasterizationOptions.PageHeight = 1600; pdfOptions.VectorRasterizationOptions = rasterizationOptions; u3dImage.Save(outFile, pdfOptions); }
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.