Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { CoverPageNumber int `json:"coverPageNumber"` DocumentMetadata map[string]interface{} `json:"documentMetadata"` DummyDocument bool `json:"dummyDocument"` ExtraMetadata struct { LastBallpointv2Color string `json:"LastBallpointv2Color"` LastBallpointv2Size string `json:"LastBallpointv2Size"` LastCalligraphyColor string `json:"LastCalligraphyColor"` LastCalligraphySize string `json:"LastCalligraphySize"` LastEraseSectionColor string `json:"LastEraseSectionColor"` LastEraseSectionSize string `json:"LastEraseSectionSize"` LastEraserColor string `json:"LastEraserColor"` LastEraserSize string `json:"LastEraserSize"` LastEraserTool string `json:"LastEraserTool"` LastFinelinerv2Color string `json:"LastFinelinerv2Color"` LastFinelinerv2Size string `json:"LastFinelinerv2Size"` LastHighlighterv2Color string `json:"LastHighlighterv2Color"` LastHighlighterv2Size string `json:"LastHighlighterv2Size"` LastPaintbrushv2Color string `json:"LastPaintbrushv2Color"` LastPaintbrushv2Size string `json:"LastPaintbrushv2Size"` LastPen string `json:"LastPen"` LastPencilv2Color string `json:"LastPencilv2Color"` LastPencilv2Size string `json:"LastPencilv2Size"` LastSelectionToolColor string `json:"LastSelectionToolColor"` LastSelectionToolSize string `json:"LastSelectionToolSize"` LastSharpPencilv2Color string `json:"LastSharpPencilv2Color"` LastSharpPencilv2Size string `json:"LastSharpPencilv2Size"` LastTool string `json:"LastTool"` LastUndefinedColor string `json:"LastUndefinedColor"` LastUndefinedSize string `json:"LastUndefinedSize"` } `json:"extraMetadata"` FileType string `json:"fileType"` FontName string `json:"fontName"` LineHeight int `json:"lineHeight"` Margins int `json:"margins"` Orientation string `json:"orientation"` PageCount int `json:"pageCount"` Pages []string `json:"pages"` TextAlignment string `json:"textAlignment"` TextScale int `json:"textScale"` }
Content represents the top-level UUID.content JSON
type Document ¶
func (Document) ToPdfDoc ¶
func (doc Document) ToPdfDoc() PdfDocument
ToPdfDoc converts the Document into a PdfDocument by creating the appropriate number of blank PDF pages.
type PdfDocument ¶
func FromZipFilePdf ¶
func FromZipFilePdf(fileName, uuid string) PdfDocument
FromZipFilePdf deserializes a .zip'd PdfDocument from the .zip file.
func FromZipReaderPdf ¶
func FromZipReaderPdf(reader *zip.ReadCloser, uuid string) PdfDocument
FromZipReaderPdf deserializes a .zip'd PdfDocument from the .zip's Reader.
func (PdfDocument) String ¶
func (pdfDoc PdfDocument) String() string
func (PdfDocument) WriteToFile ¶
func (pdfDoc PdfDocument) WriteToFile(fileName string)
WriteToFile writes the document as .zip to the given file.
Click to show internal directories.
Click to hide internal directories.