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
WithDefaultFont(font *props.Font) Builder
TryLoadRepository(repository Repository) (Builder, error)
WithPageNumber(pattern string, place props.Place) Builder
WithProtection(protectionType protection.Type, userPassword, ownerPassword string) Builder
WithCompression(compression bool) Builder
WithOrientation(orientation orientation.Type) Builder
WithAuthor(author string, isUTF8 bool) Builder
WithCreator(creator string, isUTF8 bool) Builder
WithSubject(subject string, isUTF8 bool) Builder
WithTitle(title string, isUTF8 bool) Builder
WithCreationDate(time time.Time) Builder
Build() *Config
}
func NewBuilder ¶
func NewBuilder() Builder
type CustomFont ¶
type Dimensions ¶
type Protection ¶
type Protection struct {
Type protection.Type
UserPassword string
OwnerPassword string
}
type Repository ¶
type Repository interface {
AddUTF8Font(family string, style fontstyle.Type, file string) Repository
Load() ([]*CustomFont, error)
}
func NewRepository ¶
func NewRepository() Repository
Click to show internal directories.
Click to hide internal directories.