cz.muni.pdfjbim
Class PdfImageReplacer
java.lang.Object
cz.muni.pdfjbim.PdfImageReplacer
public class PdfImageReplacer
- extends Object
class for replacing images inside PDF document by their recompressed version
- Author:
- Radim Hatlapatka (208155@mail.muni.cz)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdfImageReplacer
public PdfImageReplacer()
replaceImageUsingIText
public void replaceImageUsingIText(String pdfName,
OutputStream os,
Jbig2ForPdf imagesData)
throws PdfRecompressionException
- replace images by they recompressed version according to JBIG2 standard
positions and image data given in imagesData
- Parameters:
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
- Throws:
PdfRecompressionException - if version of PDF is lower than 1.4 or was catch DocumentException or IOException
replaceImageUsingIText
public void replaceImageUsingIText(InputStream originalPdf,
OutputStream os,
Jbig2ForPdf imagesData)
throws PdfRecompressionException
- replace images by they recompressed version according to JBIG2 standard
positions and image data given in imagesData
- Parameters:
originalPdf - 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
- Throws:
PdfRecompressionException - if version of PDF is lower than 1.4 or was catch DocumentException or IOException
Copyright © 2012 Faculty of Informatics, Masaryk University, Brno. All Rights Reserved.