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.PDDocumentbuild()static PdfBuilderbuilder()PdfBuilderencrypt()PdfBuilderencrypt(java.lang.String ownerPassword)PdfBuilderencrypt(java.lang.String ownerPassword, java.lang.String userPassword)PdfBuilderfill(java.lang.String xml, java.util.Map<java.lang.String,java.lang.String> fonts)groovy.lang.MetaClassgetMetaClass()PdfBuilderincludeImage(java.io.File file, int pageNumber, float x, float y, float width, float height)PdfBuilderincludeImage(java.lang.String filePath, int pageNumber, float x, float y, float width, float height)PdfBuilderload(java.lang.String path)PdfBuilderload(java.lang.String... paths)PdfBuildermerge(org.apache.pdfbox.pdmodel.PDDocument... documents)PdfBuilderremovePages(int... pages)PdfBuilderresize(float left, float right, float up, float down)java.io.Filesave(java.lang.String path)voidsetMetaClass(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:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin 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)
-
-