Class ExistingPagesSizePredictor

java.lang.Object
org.sejda.sambox.output.ExistingPagesSizePredictor
All Implemented Interfaces:
Closeable, AutoCloseable, COSVisitor

public class ExistingPagesSizePredictor extends Object
Component that tries to predict the size of a resulting document if PDPages and COSObjectables are added to it. The component does its best to return exact predicted values and it does that by simulating an actual write, despite that, the predicted values should be considered rough estimations and not a byte precision ones.
Author:
Andrea Vacondio