Package org.hcl.pdftemplate
Class PdfBuilder<Data>
java.lang.Object
org.hcl.pdftemplate.PdfBuilder<Data>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBufferedImage(float x, float y, FunctionWithException<Data, BufferedImage> image) addI18n(float x, float y, String resourceKey, FunctionWithException<Data, Object[]> params) addImage(float x, float y, BiFunctionWithException<org.apache.pdfbox.pdmodel.PDDocument, Data, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject> image) addJfreeChart(float x, float y, int width, int height, FunctionWithException<Data, org.jfree.chart.JFreeChart> chart) addJfreeChart(float x, float y, FunctionWithException<Data, org.jfree.chart.JFreeChart> chart) addJfreeChartAndImage(float x, float y, FunctionWithException<Data, org.jfree.chart.JFreeChart> chart, float xOffset, float yOffset, FunctionWithException<Data, BufferedImage> image) addText(float x, float y, FunctionWithException<Data, String> text) build()static <Data> PdfBuilder<Data>builder(ResourceBundle bundle) font(org.apache.pdfbox.pdmodel.font.PDType1Font font) fontSize(int fontSize) pageNo(int pageNo)
-
Field Details
-
bundle
-
-
Constructor Details
-
PdfBuilder
public PdfBuilder()
-
-
Method Details
-
builder
-
build
-
pageNo
-
font
-
fontSize
-
addText
-
addI18n
public PdfBuilder<Data> addI18n(float x, float y, String resourceKey, FunctionWithException<Data, Object[]> params) -
addI18n
-
addParts
public PdfBuilder<Data> addParts(FunctionWithException<PdfBuilder<Data>, PdfBuilder<Data>> fn) throws Exception- Throws:
Exception
-
addJfreeChart
public PdfBuilder<Data> addJfreeChart(float x, float y, FunctionWithException<Data, org.jfree.chart.JFreeChart> chart) -
addJfreeChartAndImage
public PdfBuilder<Data> addJfreeChartAndImage(float x, float y, FunctionWithException<Data, org.jfree.chart.JFreeChart> chart, float xOffset, float yOffset, FunctionWithException<Data, BufferedImage> image) -
addJfreeChart
public PdfBuilder<Data> addJfreeChart(float x, float y, int width, int height, FunctionWithException<Data, org.jfree.chart.JFreeChart> chart) -
addImage
public PdfBuilder<Data> addImage(float x, float y, BiFunctionWithException<org.apache.pdfbox.pdmodel.PDDocument, Data, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject> image) -
addBufferedImage
public PdfBuilder<Data> addBufferedImage(float x, float y, FunctionWithException<Data, BufferedImage> image)
-