Documentation ¶
Index ¶
- type Form
- type PDFInject
- func (pdf PDFInject) Fill(form Form, formPDFFile string) error
- func (pdf PDFInject) FillWithDestFile(form Form, formPDFFile, destPDFFile string) error
- 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 TempPDFDir
- type XFDFForm
- type XFDFGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) FillWithDestFile ¶
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 TempPDFDir ¶
type TempPDFDir struct {
// contains filtered or unexported fields
}
TempPDFDir manage PDF Inject process
func NewTempDir ¶
func NewTempDir(dir, prefix string) (*TempPDFDir, error)
NewTempDir Create a temporary directory.
func (*TempPDFDir) CreateFDFFile ¶
func (t *TempPDFDir) CreateFDFFile(form Form) (string, error)
CreateFDFFile Create a temporary fdf file
func (*TempPDFDir) CreateTempOutputFile ¶
func (t *TempPDFDir) CreateTempOutputFile() string
CreateTempOutputFile Create a temporary output file
func (*TempPDFDir) Remove ¶
func (t *TempPDFDir) Remove()
Remove delete temp directory when finish process
type XFDFForm ¶
type XFDFForm map[string]interface{}
Form represents fields from the PDF form. define in key value map.
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) CreateTempOutputFile ¶
func (t *XFDFGenerator) CreateTempOutputFile() string
CreateTempOutputFile Create a temporary output file
func (*XFDFGenerator) CreateXFDFFile ¶
func (t *XFDFGenerator) CreateXFDFFile(form Form) (string, error)
CreateXFDFFile Create a temporary fdf file
func (*XFDFGenerator) Remove ¶
func (t *XFDFGenerator) Remove()
Remove all temp file when finish process
Click to show internal directories.
Click to hide internal directories.