Versions in this module Expand all Collapse all v1 v1.1.0 Feb 26, 2021 Changes in this version + const PDF_TYPE_ARRAY + const PDF_TYPE_BOOLEAN + const PDF_TYPE_DICTIONARY + const PDF_TYPE_HEX + const PDF_TYPE_NULL + const PDF_TYPE_NUMERIC + const PDF_TYPE_OBJDEC + const PDF_TYPE_OBJECT + const PDF_TYPE_OBJREF + const PDF_TYPE_REAL + const PDF_TYPE_STREAM + const PDF_TYPE_STRING + const PDF_TYPE_TOKEN + var ErrInvalidPageNumber = errors.New("provided page number is invalid") + type Importer struct + func NewImporter() *Importer + func (this *Importer) GetImportedObjHashPos() map[string]map[int]string + func (this *Importer) GetImportedObjects() map[int]string + func (this *Importer) GetImportedObjectsUnordered() map[string][]byte + func (this *Importer) GetNumPages() int + func (this *Importer) GetPageSizes() map[int]map[string]map[string]float64 + func (this *Importer) GetReader() *PdfReader + func (this *Importer) GetReaderForFile(file string) *PdfReader + func (this *Importer) GetWriter() *PdfWriter + func (this *Importer) GetWriterForFile(file string) *PdfWriter + func (this *Importer) ImportPage(pageno int, box string) (int, error) + func (this *Importer) PutFormXobjects() map[string]int + func (this *Importer) PutFormXobjectsUnordered() map[string]string + func (this *Importer) SetNextObjectID(objId int) + func (this *Importer) SetSourceFile(f string) + func (this *Importer) SetSourceStream(rs *io.ReadSeeker) + func (this *Importer) UseTemplate(tplid int, _x float64, _y float64, _w float64, _h float64) (string, float64, float64, float64, float64) + type PdfObject struct + type PdfObjectId struct + type PdfReader struct + func NewPdfReader(filename string) (*PdfReader, error) + func NewPdfReaderFromStream(rs io.ReadSeeker) (*PdfReader, error) + type PdfTemplate struct + Box map[string]float64 + Boxes map[string]map[string]float64 + Buffer string + H float64 + Id int + N int + Reader *PdfReader + Resources *PdfValue + Rotation int + W float64 + X float64 + Y float64 + type PdfValue struct + Array []*PdfValue + Bool bool + Bytes []byte + Dictionary map[string]*PdfValue + Gen int + Id int + Int int + NewId int + Real float64 + Stream *PdfValue + String string + Token string + Type int + Value *PdfValue + type PdfWriter struct + func NewPdfWriter(filename string) (*PdfWriter, error) + func (this *PdfWriter) ClearImportedObjects() + func (this *PdfWriter) GetImportedObjHashPos() map[*PdfObjectId]map[int]string + func (this *PdfWriter) GetImportedObjects() map[*PdfObjectId][]byte + func (this *PdfWriter) ImportPage(reader *PdfReader, pageno int, boxName string) (int, error) + func (this *PdfWriter) Init() + func (this *PdfWriter) PutFormXobjects(reader *PdfReader) (map[string]*PdfObjectId, error) + func (this *PdfWriter) SetNextObjectID(id int) + func (this *PdfWriter) SetTplIdOffset(n int) + func (this *PdfWriter) SetUseHash(b bool) + func (this *PdfWriter) UseTemplate(tplid int, _x float64, _y float64, _w float64, _h float64) (string, float64, float64, float64, float64) + type TplInfo struct + SourceFile string + TemplateId int + Writer *PdfWriter