com.itextpdf.text.pdf.util
Class SmartPdfSplitter
java.lang.Object
com.itextpdf.text.pdf.util.SmartPdfSplitter
public class SmartPdfSplitter
- extends Object
Splits a PDF based on a given file size.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected PdfReader reader
numberOfPages
protected int numberOfPages
currentPage
protected int currentPage
overSized
protected boolean overSized
SmartPdfSplitter
public SmartPdfSplitter(PdfReader reader)
throws IOException
- Throws:
IOException
hasMorePages
public boolean hasMorePages()
isOverSized
public boolean isOverSized()
split
public boolean split(OutputStream os,
long sizeInBytes)
throws IOException,
DocumentException
- Throws:
IOException
DocumentException
Copyright © 2015. All Rights Reserved.