Versions in this module Expand all Collapse all v1 v1.0.18 May 27, 2023 Changes in this version type PdfWriter + func (pw *PdfWriter) GetPDFBoxDimensions(p int, boxname string) (map[string]float64, error) v1.0.17 May 10, 2023 Changes in this version type Importer + func (imp *Importer) SetObjIDGetter(f func() int) v1.0.16 May 3, 2023 v1.0.15 Oct 29, 2021 v1.0.14 Oct 2, 2021 Changes in this version + type Importer struct + func NewImporter() *Importer + func (imp *Importer) GetImportedObjHashPos() map[string]map[int]string + func (imp *Importer) GetImportedObjects() map[int][]byte + func (imp *Importer) GetImportedObjectsUnordered() map[string][]byte + func (imp *Importer) GetNumPages() (int, error) + func (imp *Importer) GetPageSizes() (map[int]map[string]map[string]float64, error) + func (imp *Importer) ImportPage(pageno int, box string) (int, error) + func (imp *Importer) PutFormXobjects() (map[string]int, error) + func (imp *Importer) PutFormXobjectsUnordered() (map[string]string, error) + func (imp *Importer) SetNextObjectID(objID int) + func (imp *Importer) SetObjIdGetter(f func() int) + func (imp *Importer) SetSourceStream(rs io.ReadSeeker) error + func (imp *Importer) UseTemplate(tplid int, _x float64, _y float64, _w float64, _h float64) (string, float64, float64, float64, float64) + type PdfObject struct + type PdfObjectID struct + type PdfTemplate struct + Box map[string]float64 + Boxes map[string]map[string]float64 + Buffer string + H float64 + ID int + N int + Reader *reader.PdfReader + Resources *reader.PdfValue + Rotation int + W float64 + X float64 + Y float64 + type PdfWriter struct + NextObjectID func() int + func NewPdfWriter() *PdfWriter + func (pw *PdfWriter) ClearImportedObjects() + func (pw *PdfWriter) GetImportedObjHashPos() map[*PdfObjectID]map[int]string + func (pw *PdfWriter) GetImportedObjects() map[*PdfObjectID][]byte + func (pw *PdfWriter) ImportPage(rd *reader.PdfReader, pageno int, boxName string) (int, error) + func (pw *PdfWriter) PutFormXobjects(reader *reader.PdfReader) (map[string]*PdfObjectID, error) + func (pw *PdfWriter) SetNextObjectID(id int) + func (pw *PdfWriter) SetTplIDOffset(n int) + func (pw *PdfWriter) SetUseHash(b bool) + func (pw *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