class PdfStamper implements PdfViewerPreferences, PdfEncryptionSettings {

    public void close() throws DocumentException, IOException {
        if (stamper.closed)
            return;
        if (!hasSignature) {
            mergeVerification();
            stamper.close(moreInfo);
        }
        else {
            throw new DocumentException("Signature defined. Must be closed in PdfSignatureAppearance.");
        }
    }

    public  PdfStamper(final PdfReader reader, final OutputStream os);
    public  PdfStamper(final PdfReader reader, final OutputStream os, final char pdfVersion);
    public  PdfStamper(final PdfReader reader, final OutputStream os, final char pdfVersion, final boolean append);
    protected  PdfStamper();

}