public final class PrintUtils extends Object
| Constructor and Description |
|---|
PrintUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AffineTransform |
getPageTransform(int cropBoxX,
int cropBoxY,
int width,
int height,
int pageRotation,
PageFormat format,
boolean autoRotate,
boolean centerOnScaling,
boolean chooseSourceByPDFSize,
int scalingMode)
Create a AffineTransform to effect page according to scaling and
centring options.
|
static AffineTransform |
getPageTransform(Rectangle crop,
int pageRotation,
PageFormat format,
boolean autoRotate,
boolean centerOnScaling,
boolean chooseSourceByPDFSize,
int scalingMode)
Create a AffineTransform to effect page according to scaling and
centring options.
|
static void |
refreshPrinterList() |
public static AffineTransform getPageTransform(int cropBoxX, int cropBoxY, int width, int height, int pageRotation, PageFormat format, boolean autoRotate, boolean centerOnScaling, boolean chooseSourceByPDFSize, int scalingMode)
cropBoxX - The crop box x positioncropBoxY - The crop box y positionwidth - The crop box width positionheight - The crop box height positionpageRotation - The pages rotationformat - The print page formatautoRotate - The print auto rotate optioncenterOnScaling - The print centre on scaling optionchooseSourceByPDFSize - Use PDF page size for print page formatscalingMode - The print scaling optionpublic static AffineTransform getPageTransform(Rectangle crop, int pageRotation, PageFormat format, boolean autoRotate, boolean centerOnScaling, boolean chooseSourceByPDFSize, int scalingMode)
crop - The pages crop boxpageRotation - The pages rotationformat - The print page formatautoRotate - The print auto rotate optioncenterOnScaling - The print centre on scaling optionchooseSourceByPDFSize - Use PDF page size for print page formatscalingMode - The print scaling optionpublic static void refreshPrinterList()
Copyright © 2017. All rights reserved.