Package org.hcl.pdftemplate
Class PdfBuilder<Data>
java.lang.Object
org.hcl.pdftemplate.PdfBuilder<Data>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBufferedImage(float x, float y, FunctionWithException<Data, BufferedImage> image) 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()font(org.apache.pdfbox.pdmodel.font.PDType1Font font) fontSize(int fontSize) pageNo(int pageNo)
-
Constructor Details
-
PdfBuilder
public PdfBuilder()
-
-
Method Details
-
builder
-
build
-
pageNo
-
font
-
fontSize
-
addText
-
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)
-