Documentation ¶
Index ¶
- Constants
- func AddPageDataToPDF(inputPath string, outputPath string, pdMap map[int]PageData) error
- func GetLen(input map[int]PageData) int
- func GetLinkMap(pageDataMap map[int]PageData) (map[int]Link, error)
- func MarshalOneToCreator(c *creator.Creator, pd *PageData) error
- func PrettyPrintStruct(layout interface{}) error
- func TriageFile(inputPath string) (map[int]Summary, error)
- func UnMarshalAllFromFile(inputPath string) (map[int]PageData, error)
- type Field
- type FileDetail
- type ItemDetail
- type Link
- type PageData
- type PageDetail
- type ProcessDetail
- type Summary
Constants ¶
View Source
const ( IsPage = "page" IsRegion = "region" IsCover = "cover" IsMontage = "montage" IsAnonymous = "anonymous" IsIdentity = "identity" )
Variables ¶
This section is empty.
Functions ¶
func AddPageDataToPDF ¶ added in v0.8.4
modified from https://github.com/unidoc/unipdf-examples/blob/master/text/pdf_insert_text.go
func GetLinkMap ¶ added in v0.5.0
A non-nil error means there is a broken sequence on at least one page the Linkmap has the details ....
func PrettyPrintStruct ¶
func PrettyPrintStruct(layout interface{}) error
Types ¶
type FileDetail ¶
type ItemDetail ¶
type ItemDetail struct { What string `json:"what"` When string `json:"when"` Who string `json:"who"` UUID string `json:"UUID"` WhoType string `json:"whoType"` }
whotype exam number:EN matriculation number:UUN etc
type PageData ¶
type PageData struct { Current PageDetail `json:"current"` Previous []PageDetail `json:"previous"` Revision int `json:"revision"` }
type PageDetail ¶
type PageDetail struct { Is string `json:"is"` //page, region Own FileDetail `json:"own"` Original FileDetail `json:"original"` Current FileDetail `json:"current"` Item ItemDetail `json:"item"` Process ProcessDetail `json:"process"` UUID string `json:"UUID"` //for mapping the previous page datas later Follows string `json:"follows"` Revision int `json:"revision"` //if we want to rewrite history .... Data []Field `json:"data"` Comments []comment.Comment `json:"comments"` }
use custom data for group authorship, if individual authorship must be tracked here else use a group id e.g. group-<uuid> which has the individual authors recorded elsewhere, along with the original submission.
type ProcessDetail ¶
Click to show internal directories.
Click to hide internal directories.