xpdf

package module
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 16 Imported by: 0

README

xpdf

A XML based processor for PDF generation.

As soon it reaches a moderately matured state it will replace gompdf.

Documentation

Index

Constants

View Source
const Dpi96 = 96

Variables

This section is empty.

Functions

func DefaultStyle

func DefaultStyle() style.Styles

func Logf

func Logf(format string, args ...interface{})

Types

type ImageDescriptor

type ImageDescriptor struct {
	Format   string
	WidthPx  int
	HeightPx int
}

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

func (p Page) EffectiveWidth(width float64) float64

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

func (*Processor) Process

func (p *Processor) Process(w io.Writer) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL