Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶ added in v0.3.0
type Certificate struct { PrivKey *rsa.PrivateKey Cert *x509.Certificate }
Certificate represents a x509 certificate and its key loaded from a PFX.
type Processor ¶
Processor offers an interface for executing PDF docsign jobs.
func (*Processor) GetStats ¶
GetStats returns doc sign success / failure statistics from bulk operations.
func (*Processor) Listen ¶
Listen starts a listener that consumes PDF file names in fileQ signs them.
func (*Processor) ProcessDoc ¶
func (p *Processor) ProcessDoc(certName string, pr SignProps, password string, b io.ReadSeeker) ([]byte, error)
ProcessDoc takes a document and signs it (with optional password protection).
type SignCoords ¶
type SignCoords struct { Pages []int `json:"pages"` X1 float64 `json:"x1"` X2 float64 `json:"x2"` Y1 float64 `json:"y1"` Y2 float64 `json:"y2"` }
SignCoords holds the signature annotation co-ordinates.
type SignProps ¶
type SignProps struct { Name string `json:"name"` Reason string `json:"reason"` Location string `json:"location"` Annotations []map[string]string `json:"annotations"` Style SignStyle `json:"style"` Coords []SignCoords `json:"coords"` }
SignProps represents signature properties that are required to do sign a document.
type SignStyle ¶
type SignStyle struct { AutoSize bool `json:"autoSize"` Font string `json:"font"` FontSize float64 `json:"fontSize"` LineHeight float64 `json:"lineHeight"` FontColor string `json:"fontColor"` BgColor string `json:"bgColor"` BorderSize float64 `json:"borderSize"` BorderColor string `json:"borderColor"` FontColorRGBA model.PdfColorDeviceRGB `json:"-"` BgColorRGBA model.PdfColorDeviceRGB `json:"-"` BorderColorRGBA model.PdfColorDeviceRGB `json:"-"` }
SignStyle holds signature field styles.
Click to show internal directories.
Click to hide internal directories.