public class KotlinBuilderKt
Modifier and Type | Method and Description |
---|---|
static org.apache.pdfbox.pdmodel.PDDocument |
document(kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.Document,kotlin.Unit> init)
Creates the outermost Document
class Element representing the pdf, and returns
the rendered PDDocument that can be saved to a
java.io.File or java.io.OutputStream. |
static RowElement |
header(TableElement $receiver,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.RowElement,kotlin.Unit> init) |
static ImageElement |
image(Document $receiver,
java.lang.String imagePath) |
static ImageElement |
image(Document $receiver,
java.lang.String imagePath,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.ImageElement,kotlin.Unit> init) |
static ImageElement |
image(Document $receiver,
java.awt.image.BufferedImage bufferedImage) |
static ImageElement |
image(Document $receiver,
java.awt.image.BufferedImage bufferedImage,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.ImageElement,kotlin.Unit> init) |
static RowElement |
row(TableElement $receiver,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.RowElement,kotlin.Unit> init) |
static TableElement |
table(Document $receiver,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.TableElement,kotlin.Unit> init) |
static TextElement |
text(Document $receiver,
java.lang.String value) |
static TextElement |
text(Document $receiver,
java.lang.String value,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.TextElement,kotlin.Unit> init) |
static TextElement |
text(RowElement $receiver,
java.lang.String value) |
static TextElement |
text(RowElement $receiver,
java.lang.String value,
kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.TextElement,kotlin.Unit> init) |
public static org.apache.pdfbox.pdmodel.PDDocument document(kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.Document,kotlin.Unit> init)
Creates the outermost Documentclass Element
representing the pdf, and returns
the rendered PDDocument that can be saved to a
java.io.File or java.io.OutputStream.
class Element
,
java.io.File,
java.io.OutputStreampublic static TextElement text(Document $receiver, java.lang.String value)
public static TextElement text(Document $receiver, java.lang.String value, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.TextElement,kotlin.Unit> init)
public static ImageElement image(Document $receiver, java.lang.String imagePath)
public static ImageElement image(Document $receiver, java.lang.String imagePath, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.ImageElement,kotlin.Unit> init)
public static ImageElement image(Document $receiver, java.awt.image.BufferedImage bufferedImage)
public static ImageElement image(Document $receiver, java.awt.image.BufferedImage bufferedImage, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.ImageElement,kotlin.Unit> init)
public static TableElement table(Document $receiver, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.TableElement,kotlin.Unit> init)
public static RowElement header(TableElement $receiver, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.RowElement,kotlin.Unit> init)
public static RowElement row(TableElement $receiver, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.RowElement,kotlin.Unit> init)
public static TextElement text(RowElement $receiver, java.lang.String value)
public static TextElement text(RowElement $receiver, java.lang.String value, kotlin.jvm.functions.Function1<? super com.github.timrs2998.pdfbuilder.TextElement,kotlin.Unit> init)