|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.muni.pdfjbim.PdfImageProcessor
public class PdfImageProcessor
This will read a pdf and extract images (names of images are stored in list and put back their compressed version)
| Constructor Summary | |
|---|---|
PdfImageProcessor()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
extractImages(File pdfFile,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
Deprecated. This method extracts images from PDF |
void |
extractImages(InputStream is,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
Deprecated. This method extracts images by going through all COSObjects pointed from xref table |
void |
extractImages(String pdfFile,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
Deprecated. This method extracts images from PDF |
void |
extractImagesUsingPdfObjectAccess(String pdfFile,
String password,
Set<Integer> pagesToProcess,
Boolean silent,
Boolean binarize)
Deprecated. -- do not use doesn't work properly yet This method extracts images by going through PDF tree structure |
void |
extractImagesUsingPdfParser(InputStream is,
String prefix,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
Deprecated. This method extracts images by going through all COSObjects pointed from xref table |
List<String> |
getNamesOfImages()
Deprecated. |
List<PdfImageInformation> |
getOriginalImageInformations()
Deprecated. |
String |
getUniqueFileName(String prefix,
String suffix)
Deprecated. get file name that is not used right now |
void |
replaceImageUsingIText(String pdfName,
OutputStream os,
Jbig2ForPdf imagesData)
Deprecated. replace images by they recompressed version according to JBIG2 standard positions and image data given in imagesData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdfImageProcessor()
| Method Detail |
|---|
public List<String> getNamesOfImages()
public List<PdfImageInformation> getOriginalImageInformations()
public void extractImages(File pdfFile,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
throws PdfRecompressionException
pdfFile - input PDF filepassword - password for access to PDF if neededpagesToProcess - list of pages which should be processed if null given => processed all pages
-- not working yetbinarize - -- enables processing of nonbitonal images as well (LZW is still not
processed because of output with inverted colors)
PdfRecompressionException - if problem to extract images from PDF
public void extractImages(String pdfFile,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
throws PdfRecompressionException
pdfFile - name of input PDF filepassword - password for access to PDF if neededpagesToProcess - list of pages which should be processed if null given => processed all pages
-- not working yetbinarize - -- enables processing of nonbitonal images as well (LZW is still not
processed because of output with inverted colors)
PdfRecompressionException - if problem to extract images from PDF
public void extractImages(InputStream is,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
throws PdfRecompressionException
pdfFile - name of input PDF filepassword - password for access to PDF if neededpagesToProcess - list of pages which should be processed if null given => processed all pages
-- not working yetbinarize - -- enables processing of nonbitonal images as well (LZW is still not
processed because of output with inverted colors)
PdfRecompressionException - if problem to extract images from PDF
public void extractImagesUsingPdfParser(InputStream is,
String prefix,
String password,
Set<Integer> pagesToProcess,
Boolean binarize)
throws PdfRecompressionException
is - input stream containing PDF filepassword - password for access to PDF if neededpagesToProcess - list of pages which should be processed if null given => processed all pages
-- not working yetbinarize - -- enables processing of nonbitonal images as well (LZW is still not
processed because of output with inverted colors)
PdfRecompressionException - if problem to extract images from PDF
public void extractImagesUsingPdfObjectAccess(String pdfFile,
String password,
Set<Integer> pagesToProcess,
Boolean silent,
Boolean binarize)
throws PdfRecompressionException
pdfFile - name of input PDF filepassword - password for access to PDF if neededpagesToProcess - list of pages which should be processed if null given => processed all pages
-- not working yetsilent - -- if true error messages are not written to output otherwise they arebinarize - -- enables processing of nonbitonal images as well (LZW is still not
processed because of output with inverted colors)
PdfRecompressionException - if problem to extract images from PDF
public String getUniqueFileName(String prefix,
String suffix)
prefix - represents prefix of the name of filesuffix - represents suffix of the name of file
public void replaceImageUsingIText(String pdfName,
OutputStream os,
Jbig2ForPdf imagesData)
throws PdfRecompressionException
pdfName - represents name of original PDF fileos - represents output stream for writing changed PDF fileimagesData - contains compressed images according to JBIG2 standard and informations about them
PdfRecompressionException - if version of PDF is lower than 1.4 or was catch DocumentException or IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||