com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class EpubLoadOptions



  • public final class EpubLoadOptions
    extends LoadOptions

    Contains options for loading/importing EPUB file into pdf document.

    • Constructor Detail

      • EpubLoadOptions

        public EpubLoadOptions()

        Creates default load options for converting EPUB file into pdf document. Default pdf page size - A4 300dpi 2480 X 3508.

      • EpubLoadOptions

        public EpubLoadOptions(Dimension2D pageSize)

        Creates load options with specified page size.

        Parameters:
        pageSize - Defines pdf page width and height.
    • Method Detail

      • getPageSize

        public Dimension2D getPageSize()

        Gets output page size for import.

        Returns:
        Dimension2D object
      • getMargin

        public MarginInfo getMargin()

        Gets reference on object that represent marging info.

        Returns:
        MarginInfo object
      • setMargin

        public final void setMargin(MarginInfo value)

        Gets reference on object that represent marging info.

        Parameters:
        value - 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:
        MarginsAreaUsageModes value
        See Also:
        MarginsAreaUsageModes
      • setMarginsAreaUsageMode

        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:
        marginsAreaUsageMode - MarginsAreaUsageModes value
        See Also:
        MarginsAreaUsageModes
      • 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:
        PageSizeAdjustmentModes value
        See Also:
        PageSizeAdjustmentModes
      • setPageSizeAdjustmentMode

        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:
        pageSizeAdjustmentMode - PageSizeAdjustmentModes value
        See Also:
        PageSizeAdjustmentModes