/** * Starts the process of adding extra content to an existing PDF * document. * @param reader the original document. It cannot be reused * @param os the output stream * @param pdfVersion the new pdf version or '\0' to keep the same version as the original * document * @throws DocumentException on error * @throws IOException on error */ public PdfStamper(PdfReader reader, Stream os, char pdfVersion) { stamper = new PdfStamperImp(reader, os, pdfVersion, false); }
/** Starts the process of adding extra content to an existing PDF * document. * @param reader the original document. It cannot be reused * @param os the output stream * @throws DocumentException on error * @throws IOException on error */ public PdfStamper(PdfReader reader, Stream os) { stamper = new PdfStamperImp(reader, os, '\0', false); }
/** * Starts the process of adding extra content to an existing PDF * document, possibly as a new revision. * @param reader the original document. It cannot be reused * @param os the output stream * @param pdfVersion the new pdf version or '\0' to keep the same version as the original * document * @param append if <CODE>true</CODE> appends the document changes as a new revision. This is * only useful for multiple signatures as nothing is gained in speed or memory * @throws DocumentException on error * @throws IOException on error */ public PdfStamper(PdfReader reader, Stream os, char pdfVersion, bool append) { stamper = new PdfStamperImp(reader, os, pdfVersion, append); }
/// <summary> /// Creates a new instance of StampContent /// </summary> internal StampContent(PdfStamperImp stamper, PdfStamperImp.PageStamp ps) : base(stamper) { Ps = ps; pageResources = ps.PageResources; }
/** * The verification constructor * @param stp the PdfStamper to apply the validation to */ internal LtvVerification(PdfStamper stp) { writer = (PdfStamperImp)stp.Writer; reader = stp.Reader; acroFields = stp.AcroFields; }
/** * Constructs XmlSignatureAppearance object. * @param writer the writer to which the signature will be written. */ internal XmlSignatureAppearance(PdfStamperImp writer) { this.writer = writer; }