public class PdfMapper extends XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>
document, options, processingTotalPageCountField, stylesDocument, totalPageFieldUsed, WORD_MEDIA| Constructor and Description |
|---|
PdfMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document,
OutputStream out,
PdfOptions options,
Integer expectedPageCount) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
IITextContainer pdfParagraphContainer) |
StylableMasterPage |
createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr) |
protected void |
endVisitDocument() |
protected void |
endVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph docxParagraph,
IITextContainer pdfParentContainer,
IITextContainer pdfParagraphContainer) |
protected void |
endVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents,
IITextContainer container,
IITextContainer sdtContainer) |
protected void |
endVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
IITextContainer pdfParentContainer,
IITextContainer pdfTableContainer) |
protected void |
endVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
IITextContainer tableContainer,
IITextContainer tableCellContainer) |
int |
getPageCount() |
protected void |
pageBreak() |
void |
setActiveMasterPage(StylableMasterPage masterPage) |
protected IITextContainer |
startVisitDocument() |
protected IITextContainer |
startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph docxParagraph,
ListItemContext itemContext,
IITextContainer pdfParentContainer) |
protected IITextContainer |
startVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents,
IITextContainer container) |
protected IITextContainer |
startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
float[] colWidths,
IITextContainer pdfParentContainer) |
protected IITextContainer |
startVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
IITextContainer pdfTableContainer,
boolean firstRow,
boolean lastRow,
boolean firstCol,
boolean lastCol,
List<org.apache.poi.xwpf.usermodel.XWPFTableCell> vMergeCells) |
protected void |
startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
IITextContainer tableContainer,
int rowIndex,
boolean headerRow) |
boolean |
useTotalPageField() |
protected void |
visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark,
org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
IITextContainer paragraphContainer) |
protected void |
visitBR(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
IITextContainer paragraphContainer) |
protected void |
visitEmptyRun(IITextContainer pdfParagraphContainer) |
protected void |
visitFooter(org.apache.poi.xwpf.usermodel.XWPFFooter footer,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef footerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
StylableMasterPage masterPage) |
protected void |
visitHeader(org.apache.poi.xwpf.usermodel.XWPFHeader header,
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.apache.poi.xwpf.usermodel.XWPFRun docxRun,
boolean pageNumber,
String url,
IITextContainer pdfParagraphContainer) |
protected void |
visitSDTBody(org.apache.poi.xwpf.usermodel.XWPFSDT contents,
IITextContainer sdtContainer) |
protected void |
visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab tab,
IITextContainer pdfParagraphContainer) |
protected void |
visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs,
IITextContainer pdfParagraphContainer) |
protected void |
visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText docxText,
boolean pageNumber,
IITextContainer pdfParagraphContainer) |
createStylesDocument, endVisitTableRow, getBodyElements, getImageExtractor, getMasterPageManager, getOptions, getPictureData, getPictureDataByID, getStylesDocument, getXWPFAbstractNum, getXWPFFooter, getXWPFHeader, getXWPFNum, getXWPFStyle, isWordDocumentPartParsing, start, visitAnchor, visitBodyElements, visitCell, visitDrawing, visitFooterRef, visitHeaderRef, visitInline, visitParagraph, visitParagraphBody, visitSDT, visitStyleText, visitTable, visitTableBody, visitTableCellBody, visitTableRowpublic PdfMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document,
OutputStream out,
PdfOptions options,
Integer expectedPageCount)
throws Exception
Exceptionprotected IITextContainer startVisitDocument() throws Exception
startVisitDocument in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void endVisitDocument()
throws Exception
endVisitDocument in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected IITextContainer startVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents, IITextContainer container)
startVisitSDT in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>protected void endVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents,
IITextContainer container,
IITextContainer sdtContainer)
endVisitSDT in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>protected void visitSDTBody(org.apache.poi.xwpf.usermodel.XWPFSDT contents,
IITextContainer sdtContainer)
throws Exception
visitSDTBody in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitHeader(org.apache.poi.xwpf.usermodel.XWPFHeader header,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef headerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
StylableMasterPage masterPage)
throws Exception
visitHeader in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitFooter(org.apache.poi.xwpf.usermodel.XWPFFooter footer,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef footerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
StylableMasterPage masterPage)
throws Exception
visitFooter in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionpublic void setActiveMasterPage(StylableMasterPage masterPage)
public StylableMasterPage createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr)
protected IITextContainer startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph docxParagraph, ListItemContext itemContext, IITextContainer pdfParentContainer) throws Exception
startVisitParagraph in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void endVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph docxParagraph,
IITextContainer pdfParentContainer,
IITextContainer pdfParagraphContainer)
throws Exception
endVisitParagraph in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitEmptyRun(IITextContainer pdfParagraphContainer) throws Exception
visitEmptyRun in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitRun(org.apache.poi.xwpf.usermodel.XWPFRun docxRun,
boolean pageNumber,
String url,
IITextContainer pdfParagraphContainer)
throws Exception
visitRun in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText docxText,
boolean pageNumber,
IITextContainer pdfParagraphContainer)
throws Exception
visitText in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab tab,
IITextContainer pdfParagraphContainer)
throws Exception
visitTab in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs,
IITextContainer pdfParagraphContainer)
throws Exception
visitTabs in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
IITextContainer pdfParagraphContainer)
throws Exception
addNewLine in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitBR(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
IITextContainer paragraphContainer)
throws Exception
visitBR in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void pageBreak()
throws Exception
pageBreak in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark,
org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
IITextContainer paragraphContainer)
throws Exception
visitBookmark in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected IITextContainer startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, IITextContainer pdfParentContainer) throws Exception
startVisitTable in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void endVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
IITextContainer pdfParentContainer,
IITextContainer pdfTableContainer)
throws Exception
endVisitTable in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
IITextContainer tableContainer,
int rowIndex,
boolean headerRow)
throws Exception
startVisitTableRow in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected IITextContainer startVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, IITextContainer pdfTableContainer, boolean firstRow, boolean lastRow, boolean firstCol, boolean lastCol, List<org.apache.poi.xwpf.usermodel.XWPFTableCell> vMergeCells) throws Exception
startVisitTableCell in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionprotected void endVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
IITextContainer tableContainer,
IITextContainer tableCellContainer)
endVisitTableCell in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>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
visitPicture in class XWPFDocumentVisitor<IITextContainer,PdfOptions,StylableMasterPage>Exceptionpublic int getPageCount()
public boolean useTotalPageField()
Copyright © 2017. All Rights Reserved.