Documentation
¶
Index ¶
- type Action
- type ActionArea
- type ActionRegion
- type Annotation
- type AnnotationPage
- type AnnotationParameter
- type Attachment
- type AxialShading
- type Bookmark
- type Box
- type CGTransform
- type Clip
- type ClipArea
- type ClipPath
- type ClipText
- type Color
- type ColorSpace
- type ColorStop
- type Composite
- type CustomData
- type CustomTag
- type Document
- type DrawParam
- type Extension
- type ExtensionProperty
- type Font
- type GotoAAction
- type GotoAction
- type Gouraud
- type GouraudPoint
- type Image
- type ImageBorder
- type Item
- type LaGouraud
- type LaGouraudPoint
- type Layer
- type Manifest
- type Media
- type MovieAction
- type Outline
- type Page
- type PageArea
- type PageImage
- type PageResource
- type PageSize
- type Pattern
- type Permissions
- type Point
- type Preferences
- type PrintSettings
- type PublicResource
- type RadialShading
- type RegionCommand
- type ResourceFile
- type Resources
- type Signature
- type SignatureReference
- type SignatureStamp
- type SoundAction
- type Template
- type TemplateRef
- type TextCode
- type URIAction
- type ValidPeriod
- type Version
- type VersionFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Event string `json:"event" yaml:"event"`
Region *ActionRegion `json:"region" yaml:"region"`
URI *URIAction `json:"uri" yaml:"uri"`
Goto *GotoAction `json:"goto" yaml:"goto"`
GotoA *GotoAAction `json:"gotoA" yaml:"gotoA"`
Sound *SoundAction `json:"sound" yaml:"sound"`
Movie *MovieAction `json:"movie" yaml:"movie"`
}
type ActionArea ¶
type ActionArea struct {
Start Point `json:"start" yaml:"start"`
Commands []RegionCommand `json:"commands" yaml:"commands"`
}
type ActionRegion ¶
type ActionRegion struct {
Areas []ActionArea `json:"areas" yaml:"areas"`
}
type Annotation ¶
type Annotation struct {
ID uint64 `json:"id" yaml:"id"`
Type string `json:"type" yaml:"type"`
Creator string `json:"creator" yaml:"creator"`
LastModDate string `json:"lastModDate" yaml:"lastModDate"`
Visible *bool `json:"visible" yaml:"visible"`
Subtype string `json:"subtype" yaml:"subtype"`
Print *bool `json:"print" yaml:"print"`
NoZoom bool `json:"noZoom" yaml:"noZoom"`
NoRotate bool `json:"noRotate" yaml:"noRotate"`
ReadOnly *bool `json:"readOnly" yaml:"readOnly"`
Remark string `json:"remark" yaml:"remark"`
Parameters []AnnotationParameter `json:"parameters" yaml:"parameters"`
Boundary *Box `json:"boundary" yaml:"boundary"`
Items []Item `json:"items" yaml:"items"`
}
type AnnotationPage ¶
type AnnotationPage struct {
Page int `json:"page" yaml:"page"`
Items []Annotation `json:"items" yaml:"items"`
}
type AnnotationParameter ¶
type Attachment ¶
type Attachment struct {
ID string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Format string `json:"format" yaml:"format"`
Usage string `json:"usage" yaml:"usage"`
File string `json:"file" yaml:"file"`
DataBase64 string `json:"dataBase64" yaml:"dataBase64"`
FileName string `json:"fileName" yaml:"fileName"`
CreationDate string `json:"creationDate" yaml:"creationDate"`
ModDate string `json:"modDate" yaml:"modDate"`
Visible *bool `json:"visible" yaml:"visible"`
}
type AxialShading ¶
type AxialShading struct {
MapType string `json:"mapType" yaml:"mapType"`
MapUnit float64 `json:"mapUnit" yaml:"mapUnit"`
Extend int `json:"extend" yaml:"extend"`
StartPoint string `json:"startPoint" yaml:"startPoint"`
EndPoint string `json:"endPoint" yaml:"endPoint"`
Segments []ColorStop `json:"segments" yaml:"segments"`
}
type Bookmark ¶
type Bookmark struct {
Name string `json:"name" yaml:"name"`
Goto GotoAction `json:"goto" yaml:"goto"`
}
type CGTransform ¶
type ClipPath ¶
type ClipPath struct {
Boundary Box `json:"boundary" yaml:"boundary"`
Name string `json:"name" yaml:"name"`
Visible *bool `json:"visible" yaml:"visible"`
CTM []float64 `json:"ctm" yaml:"ctm"`
Data string `json:"data" yaml:"data"`
Stroke bool `json:"stroke" yaml:"stroke"`
StrokeSet *bool `json:"strokeSet" yaml:"strokeSet"`
Fill bool `json:"fill" yaml:"fill"`
Rule string `json:"rule" yaml:"rule"`
LineWidth float64 `json:"lineWidth" yaml:"lineWidth"`
Cap string `json:"cap" yaml:"cap"`
Join string `json:"join" yaml:"join"`
MiterLimit float64 `json:"miterLimit" yaml:"miterLimit"`
DashOffset float64 `json:"dashOffset" yaml:"dashOffset"`
DashPattern []float64 `json:"dashPattern" yaml:"dashPattern"`
Alpha *uint8 `json:"alpha" yaml:"alpha"`
StrokeColor *Color `json:"strokeColor" yaml:"strokeColor"`
FillColor *Color `json:"fillColor" yaml:"fillColor"`
}
type ClipText ¶
type ClipText struct {
Boundary Box `json:"boundary" yaml:"boundary"`
CTM []float64 `json:"ctm" yaml:"ctm"`
Font string `json:"font" yaml:"font"`
Size float64 `json:"size" yaml:"size"`
Value string `json:"value" yaml:"value"`
TextCodes []TextCode `json:"textCodes" yaml:"textCodes"`
Stroke bool `json:"stroke" yaml:"stroke"`
Fill *bool `json:"fill" yaml:"fill"`
HScale float64 `json:"hScale" yaml:"hScale"`
ReadDirection int `json:"readDirection" yaml:"readDirection"`
CharDirection int `json:"charDirection" yaml:"charDirection"`
Weight int `json:"weight" yaml:"weight"`
Italic bool `json:"italic" yaml:"italic"`
FillColor *Color `json:"fillColor" yaml:"fillColor"`
StrokeColor *Color `json:"strokeColor" yaml:"strokeColor"`
}
type Color ¶
type Color struct {
R uint8 `json:"r" yaml:"r"`
G uint8 `json:"g" yaml:"g"`
B uint8 `json:"b" yaml:"b"`
Components []int `json:"components" yaml:"components"`
ColorSpace uint64 `json:"colorSpace" yaml:"colorSpace"`
Index *int `json:"index" yaml:"index"`
Alpha *uint8 `json:"alpha" yaml:"alpha"`
Axial *AxialShading `json:"axial" yaml:"axial"`
Radial *RadialShading `json:"radial" yaml:"radial"`
Gouraud *Gouraud `json:"gouraud" yaml:"gouraud"`
LaGouraud *LaGouraud `json:"laGouraud" yaml:"laGouraud"`
Pattern *Pattern `json:"pattern" yaml:"pattern"`
}
type ColorSpace ¶
type ColorSpace struct {
ID uint64 `json:"id" yaml:"id"`
Type string `json:"type" yaml:"type"`
BitsPerComponent int `json:"bitsPerComponent" yaml:"bitsPerComponent"`
Palette []string `json:"palette" yaml:"palette"`
ProfileFile string `json:"profileFile" yaml:"profileFile"`
ProfileBase64 string `json:"profileBase64" yaml:"profileBase64"`
ProfileName string `json:"profileName" yaml:"profileName"`
}
type Composite ¶
type Composite struct {
ID uint64 `json:"id" yaml:"id"`
Width float64 `json:"width" yaml:"width"`
Height float64 `json:"height" yaml:"height"`
Thumbnail uint64 `json:"thumbnail" yaml:"thumbnail"`
Substitution uint64 `json:"substitution" yaml:"substitution"`
Items []Item `json:"items" yaml:"items"`
}
type CustomData ¶
type CustomTag ¶
type CustomTag struct {
NameSpace string `json:"nameSpace" yaml:"nameSpace"`
Schema string `json:"schema" yaml:"schema"`
SchemaBase64 string `json:"schemaBase64" yaml:"schemaBase64"`
SchemaName string `json:"schemaName" yaml:"schemaName"`
Data string `json:"data" yaml:"data"`
DataBase64 string `json:"dataBase64" yaml:"dataBase64"`
DataName string `json:"dataName" yaml:"dataName"`
}
type Document ¶
type Document struct {
ID string `json:"id" yaml:"id"`
Title string `json:"title" yaml:"title"`
Author string `json:"author" yaml:"author"`
Subject string `json:"subject" yaml:"subject"`
Abstract string `json:"abstract" yaml:"abstract"`
Creator string `json:"creator" yaml:"creator"`
CreatorVersion string `json:"creatorVersion" yaml:"creatorVersion"`
PageSize PageSize `json:"pageSize" yaml:"pageSize"`
Actions []Action `json:"actions" yaml:"actions"`
Bookmarks []Bookmark `json:"bookmarks" yaml:"bookmarks"`
Attachments []Attachment `json:"attachments" yaml:"attachments"`
Extensions []Extension `json:"extensions" yaml:"extensions"`
Versions []Version `json:"versions" yaml:"versions"`
Annotations []AnnotationPage `json:"annotations" yaml:"annotations"`
DocUsage string `json:"docUsage" yaml:"docUsage"`
Keywords []string `json:"keywords" yaml:"keywords"`
CustomData []CustomData `json:"customData" yaml:"customData"`
Cover string `json:"cover" yaml:"cover"`
CoverBase64 string `json:"coverBase64" yaml:"coverBase64"`
CoverName string `json:"coverName" yaml:"coverName"`
CreationDate string `json:"creationDate" yaml:"creationDate"`
ModDate string `json:"modDate" yaml:"modDate"`
Area *PageArea `json:"area" yaml:"area"`
DefaultCS uint64 `json:"defaultCS" yaml:"defaultCS"`
Preferences *Preferences `json:"preferences" yaml:"preferences"`
Permissions *Permissions `json:"permissions" yaml:"permissions"`
Outlines []Outline `json:"outlines" yaml:"outlines"`
Signatures []Signature `json:"signatures" yaml:"signatures"`
}
type DrawParam ¶
type DrawParam struct {
Name string `json:"name" yaml:"name"`
Relative string `json:"relative" yaml:"relative"`
LineWidth float64 `json:"lineWidth" yaml:"lineWidth"`
Join string `json:"join" yaml:"join"`
Cap string `json:"cap" yaml:"cap"`
DashOffset float64 `json:"dashOffset" yaml:"dashOffset"`
DashPattern []float64 `json:"dashPattern" yaml:"dashPattern"`
MiterLimit float64 `json:"miterLimit" yaml:"miterLimit"`
FillColor *Color `json:"fillColor" yaml:"fillColor"`
StrokeColor *Color `json:"strokeColor" yaml:"strokeColor"`
}
type Extension ¶
type Extension struct {
AppName string `json:"appName" yaml:"appName"`
Company string `json:"company" yaml:"company"`
AppVersion string `json:"appVersion" yaml:"appVersion"`
Date string `json:"date" yaml:"date"`
RefID uint64 `json:"refId" yaml:"refId"`
Data string `json:"data" yaml:"data"`
DataXML string `json:"dataXml" yaml:"dataXml"`
DataFile string `json:"dataFile" yaml:"dataFile"`
DataFileBase64 string `json:"dataFileBase64" yaml:"dataFileBase64"`
DataName string `json:"dataName" yaml:"dataName"`
Properties []ExtensionProperty `json:"properties" yaml:"properties"`
}
type ExtensionProperty ¶
type Font ¶
type Font struct {
Name string `json:"name" yaml:"name"`
FamilyName string `json:"familyName" yaml:"familyName"`
Charset string `json:"charset" yaml:"charset"`
Format string `json:"format" yaml:"format"`
File string `json:"file" yaml:"file"`
DataBase64 string `json:"dataBase64" yaml:"dataBase64"`
Italic bool `json:"italic" yaml:"italic"`
Bold bool `json:"bold" yaml:"bold"`
Serif bool `json:"serif" yaml:"serif"`
FixedWidth bool `json:"fixedWidth" yaml:"fixedWidth"`
}
type GotoAAction ¶
type GotoAction ¶
type GotoAction struct {
Page int `json:"page" yaml:"page"`
Type string `json:"type" yaml:"type"`
Bookmark string `json:"bookmark" yaml:"bookmark"`
Left *float64 `json:"left" yaml:"left"`
Top *float64 `json:"top" yaml:"top"`
Right *float64 `json:"right" yaml:"right"`
Bottom *float64 `json:"bottom" yaml:"bottom"`
Zoom *float64 `json:"zoom" yaml:"zoom"`
}
type Gouraud ¶
type Gouraud struct {
Extend int `json:"extend" yaml:"extend"`
Points []GouraudPoint `json:"points" yaml:"points"`
BackColor *Color `json:"backColor" yaml:"backColor"`
}
type GouraudPoint ¶
type ImageBorder ¶
type ImageBorder struct {
LineWidth float64 `json:"lineWidth" yaml:"lineWidth"`
HorizontalRadius float64 `json:"horizontalRadius" yaml:"horizontalRadius"`
VerticalRadius float64 `json:"verticalRadius" yaml:"verticalRadius"`
DashOffset float64 `json:"dashOffset" yaml:"dashOffset"`
DashPattern []float64 `json:"dashPattern" yaml:"dashPattern"`
Color *Color `json:"color" yaml:"color"`
}
type Item ¶
type Item struct {
Type string `json:"type" yaml:"type"`
X float64 `json:"x" yaml:"x"`
Y float64 `json:"y" yaml:"y"`
Width float64 `json:"width" yaml:"width"`
Height float64 `json:"height" yaml:"height"`
Value string `json:"value" yaml:"value"`
Font string `json:"font" yaml:"font"`
Size float64 `json:"size" yaml:"size"`
Data string `json:"data" yaml:"data"`
DataBase64 string `json:"dataBase64" yaml:"dataBase64"`
Format string `json:"format" yaml:"format"`
Name string `json:"name" yaml:"name"`
Visible *bool `json:"visible" yaml:"visible"`
ResourceID uint64 `json:"resourceId" yaml:"resourceId"`
Stroke bool `json:"stroke" yaml:"stroke"`
Fill *bool `json:"fill" yaml:"fill"`
StrokeSet *bool `json:"strokeSet" yaml:"strokeSet"`
Rule string `json:"rule" yaml:"rule"`
LineWidth float64 `json:"lineWidth" yaml:"lineWidth"`
Cap string `json:"cap" yaml:"cap"`
Join string `json:"join" yaml:"join"`
MiterLimit float64 `json:"miterLimit" yaml:"miterLimit"`
DashOffset float64 `json:"dashOffset" yaml:"dashOffset"`
DashPattern []float64 `json:"dashPattern" yaml:"dashPattern"`
Alpha *uint8 `json:"alpha" yaml:"alpha"`
DrawParam string `json:"drawParam" yaml:"drawParam"`
CTM []float64 `json:"ctm" yaml:"ctm"`
FillColor *Color `json:"fillColor" yaml:"fillColor"`
StrokeColor *Color `json:"strokeColor" yaml:"strokeColor"`
TextCodes []TextCode `json:"textCodes" yaml:"textCodes"`
CGTransforms []CGTransform `json:"cgTransforms" yaml:"cgTransforms"`
Actions []Action `json:"actions" yaml:"actions"`
Items []Item `json:"items" yaml:"items"`
HScale float64 `json:"hScale" yaml:"hScale"`
ReadDirection int `json:"readDirection" yaml:"readDirection"`
CharDirection int `json:"charDirection" yaml:"charDirection"`
Weight int `json:"weight" yaml:"weight"`
Italic bool `json:"italic" yaml:"italic"`
Clips []Clip `json:"clips" yaml:"clips"`
Substitution uint64 `json:"substitution" yaml:"substitution"`
ImageMask uint64 `json:"imageMask" yaml:"imageMask"`
Border *ImageBorder `json:"border" yaml:"border"`
}
type LaGouraud ¶
type LaGouraud struct {
VerticesPerRow int `json:"verticesPerRow" yaml:"verticesPerRow"`
Extend int `json:"extend" yaml:"extend"`
Points []LaGouraudPoint `json:"points" yaml:"points"`
BackColor *Color `json:"backColor" yaml:"backColor"`
}
type LaGouraudPoint ¶
type Manifest ¶
type Manifest struct {
Version int `json:"version" yaml:"version"`
Document Document `json:"document" yaml:"document"`
Resources Resources `json:"resources" yaml:"resources"`
Templates []Template `json:"templates" yaml:"templates"`
Pages []Page `json:"pages" yaml:"pages"`
}
Manifest 是 ofd-creator 支持的声明式输入文件。
type MovieAction ¶
type Page ¶
type Page struct {
Templates []TemplateRef `json:"templates" yaml:"templates"`
Layers []Layer `json:"layers" yaml:"layers"`
Items []Item `json:"items" yaml:"items"`
Area *PageArea `json:"area" yaml:"area"`
LayerType string `json:"layerType" yaml:"layerType"`
Actions []Action `json:"actions" yaml:"actions"`
Resources []PageResource `json:"resources" yaml:"resources"`
}
type PageResource ¶
type PageResource struct {
File string `json:"file" yaml:"file"`
DataBase64 string `json:"dataBase64" yaml:"dataBase64"`
Images []PageImage `json:"images" yaml:"images"`
Files []ResourceFile `json:"files" yaml:"files"`
}
type Pattern ¶
type Pattern struct {
Width float64 `json:"width" yaml:"width"`
Height float64 `json:"height" yaml:"height"`
XStep float64 `json:"xStep" yaml:"xStep"`
YStep float64 `json:"yStep" yaml:"yStep"`
ReflectMethod string `json:"reflectMethod" yaml:"reflectMethod"`
RelativeTo string `json:"relativeTo" yaml:"relativeTo"`
CTM []float64 `json:"ctm" yaml:"ctm"`
Thumbnail uint64 `json:"thumbnail" yaml:"thumbnail"`
Items []Item `json:"items" yaml:"items"`
Layers []Layer `json:"layers" yaml:"layers"`
}
type Permissions ¶
type Permissions struct {
Edit *bool `json:"edit" yaml:"edit"`
Annot *bool `json:"annot" yaml:"annot"`
Export *bool `json:"export" yaml:"export"`
Signature *bool `json:"signature" yaml:"signature"`
Watermark *bool `json:"watermark" yaml:"watermark"`
PrintScreen *bool `json:"printScreen" yaml:"printScreen"`
Print *PrintSettings `json:"print" yaml:"print"`
ValidPeriod *ValidPeriod `json:"validPeriod" yaml:"validPeriod"`
}
type Preferences ¶
type Preferences struct {
PageMode string `json:"pageMode" yaml:"pageMode"`
PageLayout string `json:"pageLayout" yaml:"pageLayout"`
TabDisplay string `json:"tabDisplay" yaml:"tabDisplay"`
HideToolbar *bool `json:"hideToolbar" yaml:"hideToolbar"`
HideMenubar *bool `json:"hideMenubar" yaml:"hideMenubar"`
HideWindowUI *bool `json:"hideWindowUI" yaml:"hideWindowUI"`
ZoomMode string `json:"zoomMode" yaml:"zoomMode"`
Zoom *float64 `json:"zoom" yaml:"zoom"`
}
type PrintSettings ¶
type PublicResource ¶
type PublicResource struct {
Name string `json:"name" yaml:"name"`
File string `json:"file" yaml:"file"`
DataBase64 string `json:"dataBase64" yaml:"dataBase64"`
Files []ResourceFile `json:"files" yaml:"files"`
}
type RadialShading ¶
type RadialShading struct {
MapType string `json:"mapType" yaml:"mapType"`
MapUnit float64 `json:"mapUnit" yaml:"mapUnit"`
Eccentricity float64 `json:"eccentricity" yaml:"eccentricity"`
Angle float64 `json:"angle" yaml:"angle"`
StartPoint string `json:"startPoint" yaml:"startPoint"`
StartRadius float64 `json:"startRadius" yaml:"startRadius"`
EndPoint string `json:"endPoint" yaml:"endPoint"`
EndRadius float64 `json:"endRadius" yaml:"endRadius"`
Extend int `json:"extend" yaml:"extend"`
Segments []ColorStop `json:"segments" yaml:"segments"`
}
type RegionCommand ¶
type RegionCommand struct {
Type string `json:"type" yaml:"type"`
X float64 `json:"x" yaml:"x"`
Y float64 `json:"y" yaml:"y"`
ControlX float64 `json:"controlX" yaml:"controlX"`
ControlY float64 `json:"controlY" yaml:"controlY"`
Control1X float64 `json:"control1X" yaml:"control1X"`
Control1Y float64 `json:"control1Y" yaml:"control1Y"`
Control2X float64 `json:"control2X" yaml:"control2X"`
Control2Y float64 `json:"control2Y" yaml:"control2Y"`
SweepDirection bool `json:"sweepDirection" yaml:"sweepDirection"`
LargeArc bool `json:"largeArc" yaml:"largeArc"`
RotationAngle float64 `json:"rotationAngle" yaml:"rotationAngle"`
EllipseWidth float64 `json:"ellipseWidth" yaml:"ellipseWidth"`
EllipseHeight float64 `json:"ellipseHeight" yaml:"ellipseHeight"`
}
type ResourceFile ¶
type Resources ¶
type Resources struct {
Fonts []Font `json:"fonts" yaml:"fonts"`
Images []Image `json:"images" yaml:"images"`
Media []Media `json:"media" yaml:"media"`
ColorSpaces []ColorSpace `json:"colorSpaces" yaml:"colorSpaces"`
DrawParams []DrawParam `json:"drawParams" yaml:"drawParams"`
Composites []Composite `json:"composites" yaml:"composites"`
Public []PublicResource `json:"public" yaml:"public"`
CustomTags []CustomTag `json:"customTags" yaml:"customTags"`
}
type Signature ¶
type Signature struct {
ID string `json:"id" yaml:"id"`
Type string `json:"type" yaml:"type"`
ProviderName string `json:"providerName" yaml:"providerName"`
ProviderVersion string `json:"providerVersion" yaml:"providerVersion"`
Company string `json:"company" yaml:"company"`
Method string `json:"method" yaml:"method"`
Date string `json:"date" yaml:"date"`
CheckMethod string `json:"checkMethod" yaml:"checkMethod"`
References []SignatureReference `json:"references" yaml:"references"`
StampAnnots []SignatureStamp `json:"stampAnnots" yaml:"stampAnnots"`
SealFile string `json:"sealFile" yaml:"sealFile"`
SealFileBase64 string `json:"sealFileBase64" yaml:"sealFileBase64"`
SealName string `json:"sealName" yaml:"sealName"`
SignedValue string `json:"signedValue" yaml:"signedValue"`
SignedValueName string `json:"signedValueName" yaml:"signedValueName"`
}
type SignatureReference ¶
type SignatureStamp ¶
type SoundAction ¶
type TemplateRef ¶
type ValidPeriod ¶
type Version ¶
type Version struct {
ID string `json:"id" yaml:"id"`
Index int `json:"index" yaml:"index"`
Current bool `json:"current" yaml:"current"`
Version string `json:"version" yaml:"version"`
Name string `json:"name" yaml:"name"`
CreationDate string `json:"creationDate" yaml:"creationDate"`
DocRoot string `json:"docRoot" yaml:"docRoot"`
DocRootBase64 string `json:"docRootBase64" yaml:"docRootBase64"`
DocRootName string `json:"docRootName" yaml:"docRootName"`
Files []VersionFile `json:"files" yaml:"files"`
}
type VersionFile ¶
Click to show internal directories.
Click to hide internal directories.