EpubLoadOptions
Inheritance: java.lang.Object, com.aspose.pdf.LoadOptions
public final class EpubLoadOptions extends LoadOptions
Contains options for loading/importing EPUB file into pdf document.
Constructors
Constructor | Description |
---|---|
EpubLoadOptions() | Creates default load options for converting EPUB file into pdf document. |
EpubLoadOptions(Dimension2D pageSize) | Creates load options with specified page size. |
Methods
Method | Description |
---|---|
getPageSize() | Gets output page size for import. |
getMargin() | Gets reference on object that represent marging info. |
setMargin(MarginInfo value) | Gets reference on object that represent marging info. |
getMarginsAreaUsageMode() | Represents mode of usage of margins area - defines treatement of instructions (if any) of CSS of imported document related to usage of margins. |
setMarginsAreaUsageMode(int marginsAreaUsageMode) | Represents mode of usage of margins area - defines treatement of instructions (if any) of CSS of imported document related to usage of margins. |
getPageSizeAdjustmentMode() | ATTENTION! |
setPageSizeAdjustmentMode(int pageSizeAdjustmentMode) | ATTENTION! |
EpubLoadOptions()
public EpubLoadOptions()
Creates default load options for converting EPUB file into pdf document. Default pdf page size - A4 300dpi 2480 X 3508.
EpubLoadOptions(Dimension2D pageSize)
public EpubLoadOptions(Dimension2D pageSize)
Creates load options with specified page size.
Parameters:
Parameter | Type | Description |
---|---|---|
pageSize | java.awt.geom.Dimension2D | Defines pdf page width and height. |
getPageSize()
public Dimension2D getPageSize()
Gets output page size for import.
Returns: java.awt.geom.Dimension2D - Dimension2D object
getMargin()
public MarginInfo getMargin()
Gets reference on object that represent marging info.
Returns: MarginInfo - MarginInfo object
setMargin(MarginInfo value)
public final void setMargin(MarginInfo value)
Gets reference on object that represent marging info.
Parameters:
Parameter | Type | Description |
---|---|---|
value | MarginInfo | MarginInfo object |
getMarginsAreaUsageMode()
public int getMarginsAreaUsageMode()
Represents mode of usage of margins area - defines treatement of instructions (if any) of CSS of imported document related to usage of margins.
Returns: int - MarginsAreaUsageModes value
setMarginsAreaUsageMode(int marginsAreaUsageMode)
public void setMarginsAreaUsageMode(int marginsAreaUsageMode)
Represents mode of usage of margins area - defines treatement of instructions (if any) of CSS of imported document related to usage of margins.
Parameters:
Parameter | Type | Description |
---|---|---|
marginsAreaUsageMode | int | MarginsAreaUsageModes value |
getPageSizeAdjustmentMode()
public int getPageSizeAdjustmentMode()
ATTENTION! The feature implemented but did not put yet to public API since blocker issue in OSHARED layer revealed for sample document. Represents mode of usage of page size during conversion. Formats (like HTML, EPUB etc), usually have float design, so, it allows to fit required pagesize. But sometimes content has specified horizontal positions or size that does not allow put content into required page size. In such case we can define what should be done in this case (i.e when size of content does not fit required initial page size of result PDF document).
Returns: int - PageSizeAdjustmentModes value
setPageSizeAdjustmentMode(int pageSizeAdjustmentMode)
public void setPageSizeAdjustmentMode(int pageSizeAdjustmentMode)
ATTENTION! The feature implemented but did not put yet to public API since blocker issue in OSHARED layer revealed for sample document. Represents mode of usage of page size during conversion. Formats (like HTML, EPUB etc), usually have float design, so, it allows to fit required pagesize. But sometimes content has specified horizontal positions or size that does not allow put content into required page size. In such case we can define what should be done in this case (i.e when size of content does not fit required initial page size of result PDF document).
Parameters:
Parameter | Type | Description |
---|---|---|
pageSizeAdjustmentMode | int | PageSizeAdjustmentModes value |