Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFile ¶
func RegisterFile(fpdf *gopdf.Pdf, imgName string, options gopdf.ImageOptions, tiffFileStr string) (info *gopdf.ImageInfoType)
RegisterFile registers a TIFF image, adding it to the PDF file but not adding it to the page. imgName specifies the name that will be used in the call to Image() that actually places the image in the document. options specifies various image properties; in this case, the ImageType property should be set to "tiff". The TIFF image is read from the file specified by tiffFileStr.
func RegisterReader ¶
func RegisterReader(fpdf *gopdf.Pdf, imgName string, options gopdf.ImageOptions, r io.Reader) (info *gopdf.ImageInfoType)
RegisterReader registers a TIFF image, adding it to the PDF file but not adding it to the page. imgName specifies the name that will be used in the call to Image() that actually places the image in the document. options specifies various image properties; in this case, the ImageType property should be set to "tiff". The TIFF image is a reader from the reader specified by r.
Types ¶
This section is empty.