docutil

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Object *_c.PdfObjectDictionary
	// contains filtered or unexported fields
}

func (*Catalog) GetMarkInfo

func (_db *Catalog) GetMarkInfo() (*_c.PdfObjectDictionary, bool)

func (*Catalog) GetMetadata

func (_ef *Catalog) GetMetadata() (*_c.PdfObjectStream, bool)

func (*Catalog) GetOutputIntents

func (_ecc *Catalog) GetOutputIntents() (*OutputIntents, bool)

func (*Catalog) GetPages

func (_bgd *Catalog) GetPages() ([]Page, bool)

func (*Catalog) HasMetadata

func (_be *Catalog) HasMetadata() bool

func (*Catalog) NewOutputIntents

func (_ege *Catalog) NewOutputIntents() *OutputIntents

func (*Catalog) SetMarkInfo

func (_gbb *Catalog) SetMarkInfo(mi _c.PdfObject)

func (*Catalog) SetMetadata

func (_ee *Catalog) SetMetadata(data []byte) error

func (*Catalog) SetOutputIntents

func (_egb *Catalog) SetOutputIntents(outputIntents *OutputIntents)

func (*Catalog) SetVersion

func (_ce *Catalog) SetVersion()

type Content

type Content struct {
	Stream *_c.PdfObjectStream
	// contains filtered or unexported fields
}

func (Content) GetData

func (_fbd Content) GetData() ([]byte, error)

func (*Content) SetData

func (_eea *Content) SetData(data []byte) error

type Document

type Document struct {
	ID             [2]string
	Version        _c.Version
	Objects        []_c.PdfObject
	Info           _c.PdfObject
	Crypt          *_c.PdfCrypt
	UseHashBasedID bool
}

func (*Document) AddIndirectObject

func (_ece *Document) AddIndirectObject(indirect *_c.PdfIndirectObject)

func (*Document) AddStream

func (_eab *Document) AddStream(stream *_c.PdfObjectStream)

func (*Document) FindCatalog

func (_bbe *Document) FindCatalog() (*Catalog, bool)

func (*Document) GetPages

func (_efe *Document) GetPages() ([]Page, bool)

type Image

type Image struct {
	Name             string
	Width            int
	Height           int
	Colorspace       _c.PdfObjectName
	ColorComponents  int
	BitsPerComponent int
	SMask            *ImageSMask
	Stream           *_c.PdfObjectStream
}

type ImageSMask

type ImageSMask struct {
	Image  *Image
	Stream *_c.PdfObjectStream
}

type OutputIntent

type OutputIntent struct{ Object *_c.PdfObjectDictionary }

type OutputIntents

type OutputIntents struct {
	// contains filtered or unexported fields
}

func (*OutputIntents) Add

func (_de *OutputIntents) Add(oi _c.PdfObject) error

func (*OutputIntents) Get

func (_eeb *OutputIntents) Get(i int) (OutputIntent, bool)

func (*OutputIntents) Len

func (_eca *OutputIntents) Len() int

type Page

type Page struct {
	Object *_c.PdfObjectDictionary
	// contains filtered or unexported fields
}

func (Page) FindXObjectForms

func (_gaa Page) FindXObjectForms() []*_c.PdfObjectStream

func (Page) FindXObjectImages

func (_fbc Page) FindXObjectImages() ([]*Image, error)

func (Page) GetContents

func (_egbb Page) GetContents() ([]Content, bool)

func (Page) GetResources

func (_fbb Page) GetResources() (*_c.PdfObjectDictionary, bool)

func (Page) GetResourcesXObject

func (_cbb Page) GetResourcesXObject() (*_c.PdfObjectDictionary, bool)

func (*Page) Number

func (_ceb *Page) Number() int

Jump to

Keyboard shortcuts

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