Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
Cell represents a cell inside the PDF.
func NewRootCell ¶
NewRootCell creates the main Cell.
func (Cell) GetDimensions ¶
func (c Cell) GetDimensions() *Dimensions
GetDimensions returns the dimensions of the Cell (width and height).
type Config ¶
type Config struct { ProviderType provider.Provider Dimensions *Dimensions Margins *Margins DefaultFont *properties.Font CustomFonts []*CustomFont GenerationMode generation.Mode ChunkWorkers int Debug bool MaxGridSize int PageNumber *properties.PageNumber Protection *Protection Compression bool Metadata *Metadata BackgroundImage *Image DisableAutoPageBreak bool }
Config is the configuration of a bpdf instance.
type CustomFont ¶
CustomFont representats a font that can be added to the pdf.
type Dimensions ¶
Dimensions is the representation of a width and height.
type Image ¶
type Image struct { Bytes []byte Extension extension.Extension Dimensions *Dimensions }
Image is the representation of an image that can be added to the pdf.
type Metadata ¶
type Metadata struct { Author *Utf8Text Creator *Utf8Text Subject *Utf8Text Title *Utf8Text CreationDate *time.Time KeywordsStr *Utf8Text }
Metadata is the representation of a PDF metadata.
type Protection ¶
type Protection struct { Type protection.Protection UserPassword string OwnerPassword string }
Protection is the representation of a pdf protection.
func (*Protection) AppendMap ¶
func (p *Protection) AppendMap(m map[string]interface{}) map[string]interface{}
AppendMap adds the Protection fields to the map.
Click to show internal directories.
Click to hide internal directories.