Documentation ¶
Index ¶
- type FDFGenerator
- type Form
- type InputType
- type PDFInject
- func (pdf PDFInject) Fill(form Form, formPDFFile string) (*string, error)
- func (pdf PDFInject) FillModel(model interface{}, formPDFFile string) (*string, error)
- func (pdf PDFInject) FillModelWithDestFile(model interface{}, formPDFFile string, destPDFFile string) (*string, error)
- func (pdf PDFInject) FillWithDestFile(form Form, formPDFFile, destPDFFile string) (*string, error)
- func (pdf PDFInject) SetInputType(in InputType)
- func (pdf PDFInject) SetOverWrite(canOverwrited bool)
- func (pdf PDFInject) Stamp(stampPDFFile, srcPDFFile string) error
- func (pdf PDFInject) StampWithDestFile(stampPDFFile, srcPDFFile, destPDFFile string) error
- type ShellCommand
- type TempFile
- type XFDFGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FDFGenerator ¶ added in v1.0.1
type FDFGenerator struct {
// contains filtered or unexported fields
}
TempPDFDir manage PDF Inject process
func NewFDFGenerator ¶ added in v1.0.1
func NewFDFGenerator(dir, prefix string) (*FDFGenerator, error)
NewFDFGenerator Create a FDF Generator.
func (*FDFGenerator) CreateFDFFile ¶ added in v1.0.1
func (t *FDFGenerator) CreateFDFFile(form Form) (string, error)
CreateFDFFile Create a temporary fdf file
func (*FDFGenerator) GetTempOutputFile ¶ added in v1.0.1
func (t *FDFGenerator) GetTempOutputFile() string
GetTempOutputFile get temp output file for pdf
func (*FDFGenerator) Remove ¶ added in v1.0.1
func (t *FDFGenerator) Remove()
Remove delete temp directory when finish process
type Form ¶
type Form map[string]interface{}
Form represents fields from the PDF form. define in key value map.
type PDFInject ¶
type PDFInject struct {
// contains filtered or unexported fields
}
func NewWithDestFile ¶
func (PDFInject) FillModelWithDestFile ¶ added in v1.0.1
func (PDFInject) FillWithDestFile ¶
func (PDFInject) SetInputType ¶ added in v1.0.1
func (PDFInject) SetOverWrite ¶
SetOverWrite allow overWrite to Destination file
func (PDFInject) StampWithDestFile ¶
type ShellCommand ¶
type ShellCommand struct {
// contains filtered or unexported fields
}
func NewShellCommand ¶
func NewShellCommand(name string) ShellCommand
type TempFile ¶ added in v1.0.1
type TempFile struct {
// contains filtered or unexported fields
}
func NewTempFile ¶ added in v1.0.1
NewTempFile Create a FDF Generator.
func (*TempFile) GetTempOutputFilePath ¶ added in v1.0.1
GetTempOutputFilePath Get a temporary output file path
type XFDFGenerator ¶
type XFDFGenerator struct {
// contains filtered or unexported fields
}
TempPDFDir manage PDF Inject process
func NewXFDFGenerator ¶
func NewXFDFGenerator(dir, prefix string) (*XFDFGenerator, error)
NewXFDFGenerator Create a XFDF Generator.
func (*XFDFGenerator) CreateXFDFFile ¶
func (t *XFDFGenerator) CreateXFDFFile(form Form) (string, error)
CreateXFDFFile Create a temporary fdf file
func (*XFDFGenerator) GetTempOutputFile ¶ added in v1.0.1
func (t *XFDFGenerator) GetTempOutputFile() string
GetTempOutputFile get temp output file for pdf
func (*XFDFGenerator) Remove ¶
func (t *XFDFGenerator) Remove()
Remove all temp file when finish process