Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + func CreateCircleAnnotation(circDef CircleAnnotationDef) (*pdf.PdfAnnotation, error) + func CreateLineAnnotation(lineDef LineAnnotationDef) (*pdf.PdfAnnotation, error) + func CreateRectangleAnnotation(rectDef RectangleAnnotationDef) (*pdf.PdfAnnotation, error) + func NewCheckboxField(page *model.PdfPage, name string, rect []float64, opt CheckboxFieldOptions) (*model.PdfFieldButton, error) + func NewComboboxField(page *model.PdfPage, name string, rect []float64, opt ComboboxFieldOptions) (*model.PdfFieldChoice, error) + func NewSignatureField(signature *model.PdfSignature, lines []*SignatureLine, ...) (*model.PdfFieldSignature, error) + func NewTextField(page *model.PdfPage, name string, rect []float64, opt TextFieldOptions) (*model.PdfFieldText, error) + type AppearanceFont struct + Font *model.PdfFont + Name string + Size float64 + type AppearanceStyle struct + AllowMK bool + AutoFontSizeFraction float64 + BorderColor model.PdfColor + BorderSize float64 + CheckmarkRune rune + DrawAlignmentReticle bool + FillColor model.PdfColor + MultilineLineHeight float64 + MultilineVAlignMiddle bool + type CheckboxFieldOptions struct + Checked bool + type CircleAnnotationDef struct + BorderColor *pdf.PdfColorDeviceRGB + BorderEnabled bool + BorderWidth float64 + FillColor *pdf.PdfColorDeviceRGB + FillEnabled bool + Height float64 + Opacity float64 + Width float64 + X float64 + Y float64 + type ComboboxFieldOptions struct + Choices []string + type FieldAppearance struct + OnlyIfMissing bool + RegenerateTextFields bool + func (fa *FieldAppearance) SetStyle(style AppearanceStyle) + func (fa FieldAppearance) GenerateAppearanceDict(form *model.PdfAcroForm, field *model.PdfField, wa *model.PdfAnnotationWidget) (*core.PdfObjectDictionary, error) + func (fa FieldAppearance) Style() AppearanceStyle + func (fa FieldAppearance) WrapContentStream(page *model.PdfPage) error + type LineAnnotationDef struct + LineColor *pdf.PdfColorDeviceRGB + LineEndingStyle1 draw.LineEndingStyle + LineEndingStyle2 draw.LineEndingStyle + LineWidth float64 + Opacity float64 + X1 float64 + X2 float64 + Y1 float64 + Y2 float64 + type RectangleAnnotationDef struct + BorderColor *pdf.PdfColorDeviceRGB + BorderEnabled bool + BorderWidth float64 + FillColor *pdf.PdfColorDeviceRGB + FillEnabled bool + Height float64 + Opacity float64 + Width float64 + X float64 + Y float64 + type SignatureFieldOpts struct + AutoSize bool + BorderColor model.PdfColor + BorderSize float64 + Encoder core.StreamEncoder + FillColor model.PdfColor + Font *model.PdfFont + FontSize float64 + Image image.Image + ImagePosition SignatureImagePosition + LineHeight float64 + Rect []float64 + TextColor model.PdfColor + WatermarkImage image.Image + func NewSignatureFieldOpts() *SignatureFieldOpts + type SignatureImagePosition int + const SignatureImageBottom + const SignatureImageLeft + const SignatureImageRight + const SignatureImageTop + type SignatureLine struct + Desc string + Text string + func NewSignatureLine(desc, text string) *SignatureLine + type TextFieldOptions struct + MaxLen int + Value string