public final class ImageToPDF extends Object
Modifier and Type | Method and Description |
---|---|
PDRectangle |
getMediaBox()
Sets page size of produced PDF.
|
boolean |
isAutoOrientation()
Gets whether page orientation (portrait / landscape) should be decided automatically for each
page depending on image proportion.
|
boolean |
isLandscape()
Tells the paper orientation.
|
static void |
main(String[] args) |
void |
setAutoOrientation(boolean autoOrientation)
Sets whether page orientation (portrait / landscape) should be decided automatically for each
page depending on image proportion.
|
void |
setLandscape(boolean landscape)
Sets paper orientation.
|
void |
setMediaBox(PDRectangle mediaBox)
Sets page size of produced PDF.
|
public static void main(String[] args) throws IOException
IOException
public PDRectangle getMediaBox()
public void setMediaBox(PDRectangle mediaBox)
mediaBox
- public boolean isLandscape()
public void setLandscape(boolean landscape)
landscape
- public boolean isAutoOrientation()
public void setAutoOrientation(boolean autoOrientation)
autoOrientation
- true if auto, false if not.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.