Documentation
¶
Index ¶
- func GetPageSizes() map[int]map[string]map[string]float64
- func ImportPage(f gofpdiPdf, sourceFile string, pageno int, box string) int
- func ImportPageFromStream(f gofpdiPdf, rs *io.ReadSeeker, pageno int, box string) int
- func UseImportedTemplate(f gofpdiPdf, tplid int, x float64, y float64, w float64, h float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageSizes ¶ added in v1.7.0
GetPageSizes returns page dimensions for all pages of the imported pdf. Result consists of map[<page number>]map[<box>]map[<dimension>]<value>. <page number>: page number, note that page numbers start at 1 <box>: box identifier, e.g. "/MediaBox" <dimension>: dimension string, either "w" or "h"
func ImportPage ¶
ImportPage imports a page of a PDF file with the specified box (/MediaBox, /TrimBox, /ArtBox, /CropBox, or /BleedBox). Returns a template id that can be used with UseImportedTemplate to draw the template onto the page.
func ImportPageFromStream ¶ added in v1.7.0
func ImportPageFromStream(f gofpdiPdf, rs *io.ReadSeeker, pageno int, box string) int
ImportPageFromStream imports a page of a PDF with the specified box (/MediaBox, TrimBox, /ArtBox, /CropBox, or /BleedBox). Returns a template id that can be used with UseImportedTemplate to draw the template onto the page.
Types ¶
This section is empty.