Documentation ¶
Index ¶
- type File
- func (f *File) AllowsPageExtraction() bool
- func (f *File) ExtractPage(pageNumber int, outDir string) (extractedPage *File, err error)
- func (f *File) Filename() (filename string)
- func (f *File) Fill(argStore *args.Store, ct *template.Chronicle, outfile string) (err error)
- func (f *File) GetDimensionsInPoints() (width float64, height float64)
- func (f *File) GetPermissionBit(bit int) (bitValue bool)
- func (f *File) StampIt(stampFile string, outFile string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a wraper for a PDF file
func (*File) AllowsPageExtraction ¶
AllowsPageExtraction checks whether the permissions contained in the PDF file allow to extract pages from it
func (*File) ExtractPage ¶
ExtractPage extracts a single page from the input file and stores it under (but not necessarily in) the given output directory. Provided page number can also be negative, then page is searched from the back.
func (*File) GetDimensionsInPoints ¶
GetDimensionsInPoints returns the width and height of the first page in a given PDF file
func (*File) GetPermissionBit ¶
GetPermissionBit checks whether the given permission bit is set for the given PDF file
Click to show internal directories.
Click to hide internal directories.