PdfConvertOptions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject, com.groupdocs.conversion.options.convert.ConvertOptions, com.groupdocs.conversion.options.convert.CommonConvertOptions
All Implemented Interfaces: java.io.Serializable, com.groupdocs.conversion.options.convert.IPageMarginConvertOptions, com.groupdocs.conversion.options.convert.IPageSizeConvertOptions, com.groupdocs.conversion.options.convert.IPageOrientationConvertOptions
public class PdfConvertOptions extends CommonConvertOptions<PdfFileType> implements Serializable, IPageMarginConvertOptions, IPageSizeConvertOptions, IPageOrientationConvertOptions
Options for conversion to Pdf file type.
| Constructor | Description |
|---|---|
| PdfConvertOptions() | Initializes new instance of PdfConvertOptions class. |
| Method | Description |
|---|---|
| getDpi() | Desired page DPI after conversion. |
| setDpi(int value) | Desired page DPI after conversion. |
| getPassword() | Set this property if you want to protect the converted document with a password. |
| setPassword(String value) | Set this property if you want to protect the converted document with a password. |
| getMarginTop() | Desired page top margin in points after conversion. |
| setMarginTop(float value) | Desired page top margin in points after conversion. |
| getMarginBottom() | Desired page bottom margin in points after conversion. |
| setMarginBottom(float value) | Desired page bottom margin in points after conversion. |
| getMarginLeft() | Desired page left margin in points after conversion. |
| setMarginLeft(float value) | Desired page left margin in points after conversion. |
| getMarginRight() | Desired page right margin in points after conversion. |
| setMarginRight(float value) | Desired page right margin in points after conversion. |
| getPdfOptions() | Pdf specific convert options |
| setPdfOptions(PdfOptions value) | Pdf specific convert options |
| getRotate() | Page rotation |
| setRotate(Rotation value) | Page rotation |
| getPageOrientation() | |
| setPageOrientation(PageOrientation pageOrientation) | |
| getPageSize() | |
| setPageSize(PageSize pageSize) | |
| getPageWidth() | |
| setPageWidth(float pageWidth) | |
| getPageHeight() | |
| setPageHeight(float pageHeight) |
public PdfConvertOptions()
Initializes new instance of PdfConvertOptions class.
public final int getDpi()
Desired page DPI after conversion. The default resolution is: 96 dpi.
Returns: int
public final void setDpi(int value)
Desired page DPI after conversion. The default resolution is: 96 dpi.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final String getPassword()
Set this property if you want to protect the converted document with a password.
Returns: java.lang.String
public final void setPassword(String value)
Set this property if you want to protect the converted document with a password.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final float getMarginTop()
Desired page top margin in points after conversion.
Returns: float
public final void setMarginTop(float value)
Desired page top margin in points after conversion.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public final float getMarginBottom()
Desired page bottom margin in points after conversion.
Returns: float
public final void setMarginBottom(float value)
Desired page bottom margin in points after conversion.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public final float getMarginLeft()
Desired page left margin in points after conversion.
Returns: float
public final void setMarginLeft(float value)
Desired page left margin in points after conversion.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public final float getMarginRight()
Desired page right margin in points after conversion.
Returns: float
public final void setMarginRight(float value)
Desired page right margin in points after conversion.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public final PdfOptions getPdfOptions()
Pdf specific convert options
Returns: PdfOptions
public final void setPdfOptions(PdfOptions value)
Pdf specific convert options
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | PdfOptions |
public final Rotation getRotate()
Page rotation
Returns: Rotation
public final void setRotate(Rotation value)
Page rotation
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Rotation |
public PageOrientation getPageOrientation()
Gets page orientation after conversion
Returns: PageOrientation
public void setPageOrientation(PageOrientation pageOrientation)
Sets desired page orientation after conversion
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageOrientation | PageOrientation |
public PageSize getPageSize()
Gets desired page size after conversion
Returns: PageSize
public void setPageSize(PageSize pageSize)
Set desired page size after conversion
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageSize | PageSize |
public float getPageWidth()
Specified page width in points if is set to PageSize.Custom
Returns: float
public void setPageWidth(float pageWidth)
Set desired page width
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageWidth | float |
public float getPageHeight()
Specified page height in points if is set to PageSize.Custom
Returns: float
public void setPageHeight(float pageHeight)
Set desired page height
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageHeight | float |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.