Class PdfBuilder
- java.lang.Object
-
- com.netgrif.application.engine.pdf.service.PdfBuilder
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class PdfBuilder extends java.lang.Object implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description PdfBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pdfbox.pdmodel.PDDocument
build()
static PdfBuilder
builder()
PdfBuilder
encrypt()
PdfBuilder
encrypt(java.lang.String ownerPassword)
PdfBuilder
encrypt(java.lang.String ownerPassword, java.lang.String userPassword)
PdfBuilder
fill(java.lang.String xml, java.util.Map<java.lang.String,java.lang.String> fonts)
groovy.lang.MetaClass
getMetaClass()
PdfBuilder
includeImage(java.io.File file, int pageNumber, float x, float y, float width, float height)
PdfBuilder
includeImage(java.lang.String filePath, int pageNumber, float x, float y, float width, float height)
PdfBuilder
load(java.lang.String path)
PdfBuilder
load(java.lang.String... paths)
PdfBuilder
merge(org.apache.pdfbox.pdmodel.PDDocument... documents)
PdfBuilder
removePages(int... pages)
PdfBuilder
resize(float left, float right, float up, float down)
java.io.File
save(java.lang.String path)
void
setMetaClass(groovy.lang.MetaClass mc)
-
-
-
Method Detail
-
encrypt
public PdfBuilder encrypt(java.lang.String ownerPassword)
-
encrypt
public PdfBuilder encrypt()
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
builder
public static PdfBuilder builder()
-
load
public PdfBuilder load(java.lang.String path)
-
load
public PdfBuilder load(java.lang.String... paths)
-
save
public java.io.File save(java.lang.String path)
-
build
public org.apache.pdfbox.pdmodel.PDDocument build()
-
includeImage
public PdfBuilder includeImage(java.lang.String filePath, int pageNumber, float x, float y, float width, float height)
-
includeImage
public PdfBuilder includeImage(java.io.File file, int pageNumber, float x, float y, float width, float height)
-
fill
public PdfBuilder fill(java.lang.String xml, java.util.Map<java.lang.String,java.lang.String> fonts)
-
merge
public PdfBuilder merge(org.apache.pdfbox.pdmodel.PDDocument... documents)
-
encrypt
public PdfBuilder encrypt(java.lang.String ownerPassword, java.lang.String userPassword)
-
removePages
public PdfBuilder removePages(int... pages)
-
resize
public PdfBuilder resize(float left, float right, float up, float down)
-
-