IPdfFileEditor.ContentsResizeParameters

遗产: java.lang.Object

public static class IPdfFileEditor.ContentsResizeParameters

用于指定页面大小调整参数的类。允许设置以下参数:结果页面的大小(宽度、高度),以默认空间单位或初始页面大小的百分比表示;默认空间单位或初始页面大小百分比的左、上、下和右页边距;某些值可能会留空以进行自动计算。这些值将在计算明确指定的值后根据其余页面大小计算。例如:如果页面宽度 = 100 并且新页面宽度指定为 60 个单位,则自动计算左右边距:(100 - 60) / 2 = 15。此类在 ResizeContents 方法中使用。

构造函数

构造函数描述
ContentsResizeParameters()创建调整大小参数,其中 al 值设置为“自动”。
ContentsResizeParameters(IPdfFileEditor.ContentsResizeValue leftMargin, IPdfFileEditor.ContentsResizeValue contentsWidth, IPdfFileEditor.ContentsResizeValue rightMargin, IPdfFileEditor.ContentsResizeValue topMargin, IPdfFileEditor.ContentsResizeValue contentsHeight, IPdfFileEditor.ContentsResizeValue bottomMargin)创建具有指定边距值和内容大小的调整大小参数。

方法

方法描述
contentSize(double width, double height)创建具有指定内容大小的调整大小参数。
contentSizePercent(double width, double height)创建具有以初始页面大小的百分比指定的 conets 大小的调整大小参数。
equals(Object arg0)
getBottomMargin()获取或设置结果页面的下边距。
getClass()
getContentsHeight()获取或设置结果页面上源页面内容的高度。
getContentsWidth()获取或设置结果页面上源页面内容的宽度。
getLeftMargin()获取或设置结果页面的左边距。
getRightMargin()获取或设置结果页面的右边距。
getTopMargin()获取或设置结果页面的上边距。
hashCode()
margins(double left, double right, double top, double bottom)创建具有指定边距值的调整大小参数。
marginsPercent(double left, double right, double top, double bottom)创建调整大小参数。
notify()
notifyAll()
pageResize(double width, double height)为页面调整大小创建调整大小参数。
pageResizePct(double widthPct, double heightPct)为页面调整大小创建调整大小参数。
setBottomMargin(IPdfFileEditor.ContentsResizeValue value)获取或设置结果页面的下边距。
setContentsHeight(IPdfFileEditor.ContentsResizeValue value)获取或设置结果页面上源页面内容的高度。
setContentsWidth(IPdfFileEditor.ContentsResizeValue value)获取或设置结果页面上源页面内容的宽度。
setLeftMargin(IPdfFileEditor.ContentsResizeValue value)获取或设置结果页面的左边距。
setRightMargin(IPdfFileEditor.ContentsResizeValue value)获取或设置结果页面的右边距。
setTopMargin(IPdfFileEditor.ContentsResizeValue value)获取或设置结果页面的上边距。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ContentsResizeParameters()

public ContentsResizeParameters()

创建调整大小参数,其中 al 值设置为“自动”。如果需要,可以指定后面的边距和内容大小。

ContentsResizeParameters(IPdfFileEditor.ContentsResizeValue leftMargin, IPdfFileEditor.ContentsResizeValue contentsWidth, IPdfFileEditor.ContentsResizeValue rightMargin, IPdfFileEditor.ContentsResizeValue topMargin, IPdfFileEditor.ContentsResizeValue contentsHeight, IPdfFileEditor.ContentsResizeValue bottomMargin)

public ContentsResizeParameters(IPdfFileEditor.ContentsResizeValue leftMargin, IPdfFileEditor.ContentsResizeValue contentsWidth, IPdfFileEditor.ContentsResizeValue rightMargin, IPdfFileEditor.ContentsResizeValue topMargin, IPdfFileEditor.ContentsResizeValue contentsHeight, IPdfFileEditor.ContentsResizeValue bottomMargin)

创建具有指定边距值和内容大小的调整大小参数。

参数:

范围类型描述
leftMarginContentsResizeValue左边距值。
contentsWidthContentsResizeValue内容宽度。
rightMarginContentsResizeValue右边距。
topMarginContentsResizeValue上边距。
contentsHeightContentsResizeValue内容高度。
bottomMarginContentsResizeValue底边距。

contentSize(double width, double height)

public static IPdfFileEditor.ContentsResizeParameters contentSize(double width, double height)

创建具有指定内容大小的调整大小参数。

参数:

范围类型描述
widthdouble内容的新宽度。
heightdouble内容新高度。

退货: ContentsResizeParameters - 返回新的调整大小参数。

contentSizePercent(double width, double height)

public static IPdfFileEditor.ContentsResizeParameters contentSizePercent(double width, double height)

创建具有以初始页面大小的百分比指定的 conets 大小的调整大小参数。保证金是自动计算的。

参数:

范围类型描述
widthdouble以百分比表示的新内容宽度。
heightdouble以百分比表示的新内容高度。

退货: ContentsResizeParameters - 新的调整大小参数。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getBottomMargin()

public IPdfFileEditor.ContentsResizeValue getBottomMargin()

获取或设置结果页面的下边距。

退货: ContentsResizeValue - ContentsResizeValue 对象

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getContentsHeight()

public IPdfFileEditor.ContentsResizeValue getContentsHeight()

获取或设置结果页面上源页面内容的高度。

退货: ContentsResizeValue - ContentsResizeValue 对象

getContentsWidth()

public IPdfFileEditor.ContentsResizeValue getContentsWidth()

获取或设置结果页面上源页面内容的宽度。

退货: ContentsResizeValue - ContentsResizeValue 对象

getLeftMargin()

public IPdfFileEditor.ContentsResizeValue getLeftMargin()

获取或设置结果页面的左边距。

退货: ContentsResizeValue - ContentsResizeValue 对象

getRightMargin()

public IPdfFileEditor.ContentsResizeValue getRightMargin()

获取或设置结果页面的右边距。

退货: ContentsResizeValue - ContentsResizeValue 对象

getTopMargin()

public IPdfFileEditor.ContentsResizeValue getTopMargin()

获取或设置结果页面的上边距。

退货: ContentsResizeValue - ContentsResizeValue 对象

hashCode()

public native int hashCode()

退货: 整数

margins(double left, double right, double top, double bottom)

public static IPdfFileEditor.ContentsResizeParameters margins(double left, double right, double top, double bottom)

创建具有指定边距值的调整大小参数。内容大小是自动计算的。

参数:

范围类型描述
leftdouble左边距。
rightdouble右边距。
topdouble上边距。
bottomdouble底边距。

退货: ContentsResizeParameters - 创建调整大小参数。

marginsPercent(double left, double right, double top, double bottom)

public static IPdfFileEditor.ContentsResizeParameters marginsPercent(double left, double right, double top, double bottom)

创建调整大小参数。边距以初始页面大小的百分比指定。

参数:

范围类型描述
leftdouble左边距(以页面宽度的百分比表示)。
rightdouble右边距(以页面高度的百分比表示)。
topdouble上边距(以页面高度的百分比表示)。
bottomdouble下边距(以页面高度的百分比表示)。

退货: ContentsResizeParameters - 返回新的调整大小参数。

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

pageResize(double width, double height)

public static IPdfFileEditor.ContentsResizeParameters pageResize(double width, double height)

为页面调整大小创建调整大小参数。

参数:

范围类型描述
widthdouble以单位为单位的新页面宽度。
heightdouble以单位为单位的新页面高度。

退货: ContentsResizeParameters - 新的调整参数。

pageResizePct(double widthPct, double heightPct)

public IPdfFileEditor.ContentsResizeParameters pageResizePct(double widthPct, double heightPct)

为页面调整大小创建调整大小参数。新尺寸以百分比指定。

参数:

范围类型描述
widthPctdouble以百分比表示的新页面宽度。
heightPctdouble以百分比表示的新页面高度。

退货: ContentsResizeParameters - 新的调整参数。

setBottomMargin(IPdfFileEditor.ContentsResizeValue value)

public void setBottomMargin(IPdfFileEditor.ContentsResizeValue value)

获取或设置结果页面的下边距。

参数:

范围类型描述
valueContentsResizeValueContentsResizeValue 对象

setContentsHeight(IPdfFileEditor.ContentsResizeValue value)

public void setContentsHeight(IPdfFileEditor.ContentsResizeValue value)

获取或设置结果页面上源页面内容的高度。

参数:

范围类型描述
valueContentsResizeValueContentsResizeValue 对象

setContentsWidth(IPdfFileEditor.ContentsResizeValue value)

public void setContentsWidth(IPdfFileEditor.ContentsResizeValue value)

获取或设置结果页面上源页面内容的宽度。

参数:

范围类型描述
valueContentsResizeValueContentsResizeValue 对象

setLeftMargin(IPdfFileEditor.ContentsResizeValue value)

public void setLeftMargin(IPdfFileEditor.ContentsResizeValue value)

获取或设置结果页面的左边距。

参数:

范围类型描述
valueContentsResizeValueContentsResizeValue 对象

setRightMargin(IPdfFileEditor.ContentsResizeValue value)

public void setRightMargin(IPdfFileEditor.ContentsResizeValue value)

获取或设置结果页面的右边距。

参数:

范围类型描述
valueContentsResizeValueContentsResizeValue 对象

setTopMargin(IPdfFileEditor.ContentsResizeValue value)

public void setTopMargin(IPdfFileEditor.ContentsResizeValue value)

获取或设置结果页面的上边距。

参数:

范围类型描述
valueContentsResizeValueContentsResizeValue 对象

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int