Documentation ¶
Index ¶
- func Bto10(b bool) string
- func BtoYN(b bool) string
- func CreateTempFile(name string, contents string, encode string) (string, error)
- func ExpandGlobPattern(args []string) ([]string, error)
- type Batcher
- type DsdBuilder
- func (d *DsdBuilder) Output() string
- func (d *DsdBuilder) SetEncoding(name string) error
- func (d *DsdBuilder) SetOutputFile(ftype string, multifile string) error
- func (d *DsdBuilder) SetSheets(files []string, layout string, sname string, sfile string) error
- func (d *DsdBuilder) SetTemplate(file string) error
- type Sheet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶ added in v0.2.0
CreateTempFile creates a new file to temp directory and then writes contents and returns that filepath
func ExpandGlobPattern ¶
ExpandGlobPattern returns filenames with the glob patterns expanded from filenames include * or ?
Types ¶
type Batcher ¶ added in v0.5.0
type Batcher struct {
// contains filtered or unexported fields
}
func NewBatcher ¶ added in v0.5.0
NewBatcher returns a new batcher that batch-processes drawing files with accoreconsole
func (*Batcher) CheckAccore ¶ added in v0.5.0
CheckAccore returns an error if accoreconsole path is invalid
func (*Batcher) RunForEach ¶ added in v0.5.0
RunForEach runs batch processing for each input file
type DsdBuilder ¶ added in v0.5.0
type DsdBuilder struct {
// contains filtered or unexported fields
}
func NewDsdBuilder ¶ added in v0.5.0
func NewDsdBuilder() *DsdBuilder
NewDsdBuilder returns a new dsd builder
func (*DsdBuilder) Output ¶ added in v0.5.0
func (d *DsdBuilder) Output() string
Output returns dsd file contents
func (*DsdBuilder) SetEncoding ¶ added in v0.5.0
func (d *DsdBuilder) SetEncoding(name string) error
SetEncoding sets a encoding name to read and write dsd file
func (*DsdBuilder) SetOutputFile ¶ added in v0.5.0
func (d *DsdBuilder) SetOutputFile(ftype string, multifile string) error
SetOutputFile sets output file type and filename for multi-sheet file
func (*DsdBuilder) SetSheets ¶ added in v0.5.0
SetSheets sets input files to publish and their layout name and page setup
func (*DsdBuilder) SetTemplate ¶ added in v0.5.0
func (d *DsdBuilder) SetTemplate(file string) error
SetTemplate sets a template dsd file
type Sheet ¶ added in v0.5.0
type Sheet struct {
// contains filtered or unexported fields
}
func (*Sheet) MakeDsdFormat ¶ added in v0.5.0
MakeDsdFormat returns a sheet setting for dsd file