Documentation
¶
Index ¶
Constants ¶
const ( DOCX = "docx" DOCXMIMEType = "vnd.openxmlformats-officedocument.wordprocessingml.document" PDF = "pdf" CSV = "csv" XLSX = "xlsx" XLSXMIMEType = "vnd.openxmlformats-officedocument.spreadsheetml.sheet" EpubMimeType = "epub+zip" EPUB = "epub" MOBI = "mobi" MobiMimeType = "x-mobipocket-ebook" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Csv ¶ added in v0.3.0
type Csv struct {
// contains filtered or unexported fields
}
Csv struct implements the File and Document interface from the file package.
func (*Csv) DocumentType ¶ added in v0.3.0
func (*Csv) SupportedFormats ¶ added in v0.3.0
SupportedFormats returns a map witht the compatible formats that CSv is compatible to be converted to.
func (*Csv) SupportedMIMETypes ¶ added in v0.3.0
SupportedMIMETypes returns a map witht the compatible MIME types that Docx is compatible to be converted to.
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.
type Xlsx ¶ added in v0.3.0
type Xlsx struct {
// contains filtered or unexported fields
}
Xlsx struct implements the File and Document interface from the file package.
func (*Xlsx) DocumentType ¶ added in v0.3.0
func (*Xlsx) SupportedFormats ¶ added in v0.3.0
SupportedFormats returns a map witht the compatible formats that Xlsx is compatible to be converted to.
func (*Xlsx) SupportedMIMETypes ¶ added in v0.3.0
SupportedMIMETypes returns a map witht the compatible MIME types that Docx is compatible to be converted to.