Documentation ¶
Index ¶
Constants ¶
const ( DOCX = "docx" DOCXMIMEType = "vnd.openxmlformats-officedocument.wordprocessingml.document" PDF = "pdf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docx ¶
type Docx struct { OutDir string // contains filtered or unexported fields }
Docx struct implements the File and Document interface from the file package.
func (*Docx) DocumentType ¶
func (*Docx) SupportedFormats ¶
SupportedFormats returns a map witht the compatible formats that Docx is compatible to be converted to.
func (*Docx) SupportedMIMETypes ¶ added in v0.2.0
SupportedMIMETypes returns a map witht the compatible MIME types that Docx is compatible to be converted to.
type Pdf ¶
type Pdf struct { OutDir string // 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 the compatible formats that Pdf is compatible to be converted to.
func (*Pdf) SupportedMIMETypes ¶ added in v0.2.0
SupportedMIMETypes returns a map witht the compatible MIME types that Pdf is compatible to be converted to.