org.apache.poi.xwpf.converter.pdf.internal
Class FastPdfMapper

java.lang.Object
  extended by org.apache.poi.xwpf.converter.core.openxmlformats.OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
      extended by org.apache.poi.xwpf.converter.pdf.internal.FastPdfMapper
All Implemented Interfaces:
IMasterPageHandler<StylableMasterPage>

public class FastPdfMapper
extends OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>


Field Summary
 
Fields inherited from class org.apache.poi.xwpf.converter.core.openxmlformats.OpenXMlFormatsVisitor
options, stylesDocument
 
Constructor Summary
FastPdfMapper(IOpenXMLFormatsPartProvider provider, OutputStream out, PdfOptions options)
           
 
Method Summary
protected  void addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br, IITextContainer paragraphContainer)
           
 StylableMasterPage createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr)
           
protected  void endVisitDocument()
          End of visit document.
protected  void endVisitParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph, IITextContainer pdfParentContainer, IITextContainer pdfParagraphContainer)
           
protected  void endVisitTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table, IITextContainer parentContainer, IITextContainer tableContainer)
           
protected  void endVisitTableCell(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc cell, IITextContainer tableContainer, IITextContainer tableCellContainer)
           
protected  void pageBreak()
           
 void setActiveMasterPage(StylableMasterPage masterPage)
           
protected  IITextContainer startVisitDocument()
          Start of visit document.
protected  IITextContainer startVisitParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph, ListItemContext itemContext, IITextContainer pdfParentContainer)
           
protected  IITextContainer startVisitTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table, float[] colWidths, IITextContainer pdfParentContainer)
           
protected  IITextContainer startVisitTableCell(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc cell, IITextContainer tableContainer)
           
protected  void startVisitTableRow(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow row, IITextContainer tableContainer, boolean headerRow)
           
protected  void visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph, IITextContainer paragraphContainer)
           
protected  void visitFooter(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr currentFooter, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef footerRef, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr, StylableMasterPage masterPage)
           
protected  void visitHeader(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr currentHeader, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef headerRef, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr, StylableMasterPage masterPage)
           
protected  void visitPicture(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture picture, Float offsetX, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromH.Enum relativeFromH, Float offsetY, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromV.Enum relativeFromV, org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STWrapText.Enum wrapText, IITextContainer pdfParentContainer)
           
protected  void visitRun(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR run, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph, boolean pageNumber, String url, IITextContainer pdfParagraphContainer)
           
protected  void visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab o, IITextContainer paragraphContainer)
           
protected  void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs, IITextContainer paragraphContainer)
           
protected  void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText docxText, boolean pageNumber, IITextContainer pdfParagraphContainer)
           
 
Methods inherited from class org.apache.poi.xwpf.converter.core.openxmlformats.OpenXMlFormatsVisitor
createStylesDocument, getImageExtractor, getMasterPageManager, getOptions, getParentTable, getPictureBytes, getStylesDocument, isWordDocumentPartParsing, start, visitAnchor, visitBodyElements, visitBR, visitCell, visitDrawing, visitFooterRef, visitHeaderRef, visitInline, visitParagraph, visitParagraphBody, visitTable, visitTableBody, visitTableCellBody, visitTableRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastPdfMapper

public FastPdfMapper(IOpenXMLFormatsPartProvider provider,
                     OutputStream out,
                     PdfOptions options)
              throws Exception
Throws:
Exception
Method Detail

startVisitDocument

protected IITextContainer startVisitDocument()
                                      throws Exception
Description copied from class: OpenXMlFormatsVisitor
Start of visit document.

Specified by:
startVisitDocument in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Returns:
Throws:
Exception

endVisitDocument

protected void endVisitDocument()
                         throws Exception
Description copied from class: OpenXMlFormatsVisitor
End of visit document.

Specified by:
endVisitDocument in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

setActiveMasterPage

public void setActiveMasterPage(StylableMasterPage masterPage)

createMasterPage

public StylableMasterPage createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr)

pageBreak

protected void pageBreak()
                  throws Exception
Specified by:
pageBreak in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

startVisitParagraph

protected IITextContainer startVisitParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph,
                                              ListItemContext itemContext,
                                              IITextContainer pdfParentContainer)
                                       throws Exception
Specified by:
startVisitParagraph in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

endVisitParagraph

protected void endVisitParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph,
                                 IITextContainer pdfParentContainer,
                                 IITextContainer pdfParagraphContainer)
                          throws Exception
Specified by:
endVisitParagraph in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitRun

protected void visitRun(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR run,
                        org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph,
                        boolean pageNumber,
                        String url,
                        IITextContainer pdfParagraphContainer)
                 throws Exception
Overrides:
visitRun in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitText

protected void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText docxText,
                         boolean pageNumber,
                         IITextContainer pdfParagraphContainer)
                  throws Exception
Specified by:
visitText in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitTab

protected void visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab o,
                        IITextContainer paragraphContainer)
                 throws Exception
Specified by:
visitTab in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitTabs

protected void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs,
                         IITextContainer paragraphContainer)
                  throws Exception
Specified by:
visitTabs in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitBookmark

protected void visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark,
                             org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP paragraph,
                             IITextContainer paragraphContainer)
                      throws Exception
Specified by:
visitBookmark in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

addNewLine

protected void addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
                          IITextContainer paragraphContainer)
                   throws Exception
Specified by:
addNewLine in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitHeader

protected void visitHeader(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr currentHeader,
                           org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef headerRef,
                           org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
                           StylableMasterPage masterPage)
                    throws Exception
Specified by:
visitHeader in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitFooter

protected void visitFooter(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr currentFooter,
                           org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef footerRef,
                           org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
                           StylableMasterPage masterPage)
                    throws Exception
Specified by:
visitFooter in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

startVisitTable

protected IITextContainer startVisitTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table,
                                          float[] colWidths,
                                          IITextContainer pdfParentContainer)
                                   throws Exception
Specified by:
startVisitTable in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

endVisitTable

protected void endVisitTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table,
                             IITextContainer parentContainer,
                             IITextContainer tableContainer)
                      throws Exception
Specified by:
endVisitTable in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

startVisitTableRow

protected void startVisitTableRow(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow row,
                                  IITextContainer tableContainer,
                                  boolean headerRow)
                           throws Exception
Specified by:
startVisitTableRow in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

startVisitTableCell

protected IITextContainer startVisitTableCell(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc cell,
                                              IITextContainer tableContainer)
                                       throws Exception
Specified by:
startVisitTableCell in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

endVisitTableCell

protected void endVisitTableCell(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc cell,
                                 IITextContainer tableContainer,
                                 IITextContainer tableCellContainer)
                          throws Exception
Specified by:
endVisitTableCell in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception

visitPicture

protected void visitPicture(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture picture,
                            Float offsetX,
                            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromH.Enum relativeFromH,
                            Float offsetY,
                            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromV.Enum relativeFromV,
                            org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STWrapText.Enum wrapText,
                            IITextContainer pdfParentContainer)
                     throws Exception
Specified by:
visitPicture in class OpenXMlFormatsVisitor<IITextContainer,PdfOptions,StylableMasterPage>
Throws:
Exception


Copyright © 2013. All rights reserved.