Пример #1
0
 /**
 * Constructs a <CODE>PdfWriter</CODE>.
 * <P>
 * Remark: a PdfWriter can only be constructed by calling the method
 * <CODE>getInstance(Document document, Stream os)</CODE>.
 *
 * @param    document    The <CODE>PdfDocument</CODE> that has to be written
 * @param    os          The <CODE>Stream</CODE> the writer has to write to.
 */
 protected PdfWriter(PdfDocument document, Stream os)
     : base(document, os)
 {
     pdfIsoConformance = GetPdfIsoConformance();
     root = new PdfPages(this);
     pdf = document;
     directContent = new PdfContentByte(this);
     directContentUnder = new PdfContentByte(this);
 }
Пример #2
0
 //  ESSENTIALS
 //  Construct a PdfWriter instance
 /**
 * Constructs a <CODE>PdfWriter</CODE>.
 */
 protected PdfWriter()
 {
     pdfIsoConformance = GetPdfIsoConformance();
     root = new PdfPages(this);
 }