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(); }
@Override protected void endVisitTable(XWPFTable table, IITextContainer pdfParentContainer, IITextContainer pdfTableContainer) throws Exception { pdfParentContainer.addElement(((ExtendedPdfPTable) pdfTableContainer) .getElement()); }
@Override protected void endVisitParagraph( CTP paragraph, IITextContainer pdfParentContainer, IITextContainer pdfParagraphContainer ) throws Exception { // add the iText paragraph in the current parent container. ExtendedParagraph pdfParagraph = (ExtendedParagraph) pdfParagraphContainer; pdfParentContainer.addElement( pdfParagraph.getElement() ); }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
public ExtendedDocument( OutputStream out, IPdfWriterConfiguration configuration ) throws DocumentException { this.writer = ExtendedPdfWriter.getInstance( this, out ); if (configuration != null) { configuration.configure( writer ); } headerFooter = createExtendedHeaderFooter(); initAttributes(); }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
protected float getFooterY( IMasterPageHeaderFooter footer ) { return document.getOriginMarginBottom() + footer.getTotalHeight(); }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
@Override protected void endVisitParagraph(XWPFParagraph docxParagraph, IITextContainer pdfParentContainer, IITextContainer pdfParagraphContainer) throws Exception { // add the iText paragraph in the current parent container. ExtendedParagraph pdfParagraph = (ExtendedParagraph) pdfParagraphContainer; pdfParentContainer.addElement(pdfParagraph.getElement()); this.currentRunX = null; }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
protected float getFooterY( IMasterPageHeaderFooter footer ) { return document.getOriginMarginBottom() + footer.getTotalHeight(); }
@Override protected void endVisitTable( CTTbl table, IITextContainer parentContainer, IITextContainer tableContainer ) throws Exception { parentContainer.addElement( ( (ExtendedPdfPTable) tableContainer ).getElement() ); }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
@Override protected void endVisitParagraph( CTP paragraph, IITextContainer pdfParentContainer, IITextContainer pdfParagraphContainer ) throws Exception { // add the iText paragraph in the current parent container. ExtendedParagraph pdfParagraph = (ExtendedParagraph) pdfParagraphContainer; pdfParentContainer.addElement( pdfParagraph.getElement() ); }
@Override protected void endVisitTable(XWPFTable table, IITextContainer pdfParentContainer, IITextContainer pdfTableContainer) throws Exception { pdfParentContainer.addElement(((ExtendedPdfPTable) pdfTableContainer) .getElement()); }
@Override protected void endVisitParagraph(XWPFParagraph docxParagraph, IITextContainer pdfParentContainer, IITextContainer pdfParagraphContainer) throws Exception { // add the iText paragraph in the current parent container. ExtendedParagraph pdfParagraph = (ExtendedParagraph) pdfParagraphContainer; pdfParentContainer.addElement(pdfParagraph.getElement()); this.currentRunX = null; }
@Override protected void endVisitTable( CTTbl table, IITextContainer parentContainer, IITextContainer tableContainer ) throws Exception { parentContainer.addElement( ( (ExtendedPdfPTable) tableContainer ).getElement() ); }