com.itextpdf.text.pdf.util
Class SmartPdfSplitter

java.lang.Object
  extended by com.itextpdf.text.pdf.util.SmartPdfSplitter

public class SmartPdfSplitter
extends Object

Splits a PDF based on a given file size.


Field Summary
protected  int currentPage
           
protected  int numberOfPages
           
protected  boolean overSized
           
protected  PdfReader reader
           
 
Constructor Summary
SmartPdfSplitter(PdfReader reader)
           
 
Method Summary
 boolean hasMorePages()
           
 boolean isOverSized()
           
 boolean split(OutputStream os, long sizeInBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected PdfReader reader

numberOfPages

protected int numberOfPages

currentPage

protected int currentPage

overSized

protected boolean overSized
Constructor Detail

SmartPdfSplitter

public SmartPdfSplitter(PdfReader reader)
                 throws IOException
Throws:
IOException
Method Detail

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.