Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
WithPageSize(size pagesize.Type) Builder
WithDimensions(dimensions *Dimensions) Builder
WithMargins(margins *Margins) Builder
WithProvider(providerType provider.Type) Builder
WithWorkerPoolSize(poolSize int) Builder
WithDebug(on bool) Builder
WithMaxGridSize(maxGridSize int) Builder
WithFont(font *props.Font) Builder
AddUTF8Font(family string, style fontstyle.Type, file string) Builder
WithPageNumber(pattern string, place props.Place) Builder
WithProtection(protectionType protection.Type, userPassword, ownerPassword string) Builder
WithCompression(compression bool) Builder
Build() *Config
}
func NewBuilder ¶
func NewBuilder() Builder
type Config ¶
type Config struct {
ProviderType provider.Type
Dimensions *Dimensions
Margins *Margins
DefaultFont *props.Font
CustomFonts []*CustomFont
Workers int
Debug bool
MaxGridSize int
PageNumberPattern string
PageNumberPlace props.Place
Protection *Protection
Compression bool
}
type Dimensions ¶
type Protection ¶
type Protection struct {
Type protection.Type
UserPassword string
OwnerPassword string
}
Click to show internal directories.
Click to hide internal directories.