public abstract class BaseExcelConverter extends Object implements ExcelConverter
| Constructor and Description |
|---|
BaseExcelConverter(FileConverterContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addPicsToTable(com.itextpdf.layout.element.Table table,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected abstract com.itextpdf.layout.element.Cell |
convertCell(org.apache.poi.ss.usermodel.Cell cell,
int rowspan,
int colspan,
float maxWidth,
String fontPath) |
void |
convertToPdf()
excel to pdf
|
static com.itextpdf.layout.property.TextAlignment |
getTextAlignment(org.apache.poi.ss.usermodel.HorizontalAlignment alignment,
org.apache.poi.ss.usermodel.CellType cellType) |
static com.itextpdf.layout.property.VerticalAlignment |
getVerticalAlignment(org.apache.poi.ss.usermodel.VerticalAlignment verticalAlignment) |
public BaseExcelConverter(FileConverterContext context)
public void convertToPdf()
ExcelConverterconvertToPdf in interface ExcelConverterprotected abstract void addPicsToTable(com.itextpdf.layout.element.Table table,
org.apache.poi.ss.usermodel.Sheet sheet)
protected abstract com.itextpdf.layout.element.Cell convertCell(org.apache.poi.ss.usermodel.Cell cell,
int rowspan,
int colspan,
float maxWidth,
String fontPath)
throws IOException
IOExceptionpublic static com.itextpdf.layout.property.VerticalAlignment getVerticalAlignment(org.apache.poi.ss.usermodel.VerticalAlignment verticalAlignment)
public static com.itextpdf.layout.property.TextAlignment getTextAlignment(org.apache.poi.ss.usermodel.HorizontalAlignment alignment,
org.apache.poi.ss.usermodel.CellType cellType)
Copyright © 2024 Chat2DB. All rights reserved.