@Override public void open() { super.open(); if ( configuration != null ) { configuration.configureOutputIntents(this); } }
public ExtendedDocument(OutputStream out, IPdfAWriterConfiguration configuration) throws DocumentException { if ( configuration != null ) { this.writer = ExtendedPdfAWriter.getInstance( this, out, configuration ); configuration.configure( (PdfAWriter) writer ); } else { this.writer = ExtendedPdfAWriter.getInstance( this, out ); } headerFooter = createExtendedHeaderFooter(); initAttributes(); }
public static ExtendedPdfAWriter getInstance( Document document, OutputStream os, IPdfAWriterConfiguration configuration ) throws DocumentException { PdfDocument pdf = new PdfDocument(); document.addDocListener( pdf ); PdfAConformanceLevel conformanceLevel = null; if ( configuration != null ) { conformanceLevel = configuration.getConformanceLevel(); } ExtendedPdfAWriter writer = new ExtendedPdfAWriter( pdf, os, conformanceLevel, configuration ); pdf.addWriter( writer ); return writer; }