|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.io.JPod
public class JPod
Helper class for jPod (PDF handling).
| Constructor Summary | |
|---|---|
JPod()
|
|
| Method Summary | |
|---|---|
static void |
close(de.intarsys.pdf.pd.PDDocument document)
Closes the document again. |
static String |
extract(File file)
Extracts all text from the specified PDF file. |
static String |
extract(File file,
Range range)
Extracts all text from the specified PDF file. |
static List<BufferedImage> |
extractImages(File file)
Extracts all images from the specified PDF file. |
static int |
getPageCount(File file)
Determines the page count of a PDF file. |
static de.intarsys.pdf.pd.PDDocument |
load(File file)
Loads the specified PDF document. |
static de.intarsys.pdf.pd.PDDocument |
load(String file)
Loads the specified PDF document. |
static boolean |
save(de.intarsys.pdf.pd.PDDocument doc,
File file)
Saves the PDF document under the specified filename. |
static boolean |
save(de.intarsys.pdf.pd.PDDocument doc,
String file)
Saves the PDF document under the specified filename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPod()
| Method Detail |
|---|
public static de.intarsys.pdf.pd.PDDocument load(String file)
file - the file to load
public static de.intarsys.pdf.pd.PDDocument load(File file)
file - the file to load
public static void close(de.intarsys.pdf.pd.PDDocument document)
document - the document to close, can be null
public static boolean save(de.intarsys.pdf.pd.PDDocument doc,
String file)
doc - the document to savefile - the file to save the document to
public static boolean save(de.intarsys.pdf.pd.PDDocument doc,
File file)
doc - the document to savefile - the file to save the document to
public static String extract(File file)
file - the PDF file to extract the content from
public static String extract(File file,
Range range)
file - the PDF file to extract the content fromrange - the range of pages to extract
public static List<BufferedImage> extractImages(File file)
file - the PDF file to extract the images from
public static int getPageCount(File file)
file - the PDF file to extract the content from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||