Documentation ¶
Index ¶
Constants ¶
View Source
const ( DOCX = "docx" PDF = "pdf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docx ¶
type Docx struct{}
func (*Docx) DocumentType ¶
func (*Docx) SupportedFormats ¶
type Pdf ¶
type Pdf struct {
// contains filtered or unexported fields
}
Pdf struct implements the File and Document interface from the file package.
func (*Pdf) ConvertTo ¶
ConvertTo converts the current PDF file to another given format. This method receives the file type, the sub-type and the file as an slice of bytes. Returns the converted file as an slice of bytes, if something wrong happens, an error is returned.
func (*Pdf) DocumentType ¶
DocumentType returns the type of ducument of Pdf.
func (*Pdf) SupportedFormats ¶
SupportedFormats returns a map witht he compatible formats that Pds is compatible to be converted to.
Click to show internal directories.
Click to hide internal directories.