Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocxOnDiscUnzip ¶
DocxOnDiscUnzip for reading Word .docx files << Entry func pathToFile param path to file stored on disc.
Types ¶
type Document ¶
Document type for storing word/document.xml extracted from docx zip.
func (*Document) XMLExtractText ¶
func (d *Document) XMLExtractText() XMLDocMacroData
XMLExtractText for manipulating xml
type UnZip ¶
UnZip struct for handling extention methods on unziped files.
func ExtractFileHTTP ¶
func ExtractFileHTTP(fi *multipart.FileHeader) *UnZip
ExtractFileHTTP return *UnZip
func ExtractLocalDocx ¶
ExtractLocalDocx returns *UnZip pathToFile param path to file stored on disc.
type UnZipedFile ¶
UnZipedFile struct for extending *zip.File
type XMLDocMacroData ¶
type XMLDocMacroData struct { DocumentMeta xml.Name `xml:"document"` Text string `xml:"body>p>r>t"` }
XMLDocMacroData struct for Unmarshalling xml.
!! https://www.loc.gov/preservation/digital/formats/fdd/fdd000397.shtml !! http://officeopenxml.com/anatomyofOOXML.php !! https://docs.microsoft.com/en-us/office/open-xml/structure-of-a-wordprocessingml-document * * Notes from Microsoft: * A WordprocessingML document is organized around the concept of stories. * A story is a region of content in a WordprocessingML document. * * The main document story of the simplest WordprocessingML document consists of the following XML elements: * document – The root element * body – The container for the collection of block-level structures * p – A paragraph * r – A run * t – A range of text