Documentation ¶
Index ¶
Constants ¶
View Source
const Dpi96 = 96
Variables ¶
This section is empty.
Functions ¶
func DefaultStyle ¶
Types ¶
type ImageDescriptor ¶
func DescribeImage ¶
func DescribeImage(src string) (ImageDescriptor, error)
func (ImageDescriptor) HeightMm ¶
func (id ImageDescriptor) HeightMm(dpi int) float64
func (ImageDescriptor) WidthMm ¶
func (id ImageDescriptor) WidthMm(dpi int) float64
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func (Page) EffectiveWidth ¶
type PrintableArea ¶
type PrintableArea struct {
// contains filtered or unexported fields
}
func (PrintableArea) EffectiveWidth ¶
func (pa PrintableArea) EffectiveWidth(width float64) float64
func (PrintableArea) Height ¶
func (pa PrintableArea) Height() float64
func (PrintableArea) String ¶
func (pa PrintableArea) String() string
func (PrintableArea) Width ¶
func (pa PrintableArea) Width() float64
func (PrintableArea) WithPadding ¶
func (pa PrintableArea) WithPadding(pd style.Padding) PrintableArea
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor(engine engine.Engine, hyphenator *hyphenation.Hyphenator, doc *xdoc.Document, workingDir string) *Processor
Source Files ¶
Click to show internal directories.
Click to hide internal directories.