public final class ImageToPDF extends Object
| Modifier and Type | Method and Description |
|---|---|
org.apache.pdfbox.pdmodel.common.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(org.apache.pdfbox.pdmodel.common.PDRectangle mediaBox)
Sets page size of produced PDF.
|
public static void main(String[] args) throws IOException
IOExceptionpublic org.apache.pdfbox.pdmodel.common.PDRectangle getMediaBox()
public void setMediaBox(org.apache.pdfbox.pdmodel.common.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–2019 The Apache Software Foundation. All rights reserved.