Documentation ¶
Index ¶
- type GhostScriptExec
- func (instance *GhostScriptExec) CmdChainDocuments(sourceFiles []string, optTargetFileName, optPassword string) (targetFile string, err error)
- func (instance *GhostScriptExec) CmdExecQuiet(arguments ...string) (out string, err error)
- func (instance *GhostScriptExec) CmdExecRaw(arguments ...string) (out string, err error)
- func (instance *GhostScriptExec) CmdExportToImage(sourceFile, format string, optResolution, optTargetDir, optPassword string) (targetFiles []string, err error)
- func (instance *GhostScriptExec) CmdExportToText(sourceFile string, optTargetDir, optPassword string) (out string, err error)
- func (instance *GhostScriptExec) CmdHelp() (string, error)
- func (instance *GhostScriptExec) CmdPasswordProtect(sourceFile, password string, optTargetFileName string) (targetFile string, err error)
- func (instance *GhostScriptExec) CmdVersion() (string, error)
- func (instance *GhostScriptExec) GetDir() string
- func (instance *GhostScriptExec) GetDirOut() string
- func (instance *GhostScriptExec) IsInstalled() bool
- func (instance *GhostScriptExec) Pid() int
- func (instance *GhostScriptExec) SetDir(dir string)
- func (instance *GhostScriptExec) SetDirOut(dir string)
- func (instance *GhostScriptExec) TryKill() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GhostScriptExec ¶
type GhostScriptExec struct {
// contains filtered or unexported fields
}
func NewGhostScriptExec ¶
func NewGhostScriptExec() *GhostScriptExec
func (*GhostScriptExec) CmdChainDocuments ¶
func (instance *GhostScriptExec) CmdChainDocuments(sourceFiles []string, optTargetFileName, optPassword string) (targetFile string, err error)
func (*GhostScriptExec) CmdExecQuiet ¶
func (instance *GhostScriptExec) CmdExecQuiet(arguments ...string) (out string, err error)
CmdExecQuiet execute a command adding some argument to avoid prompt or logs
func (*GhostScriptExec) CmdExecRaw ¶
func (instance *GhostScriptExec) CmdExecRaw(arguments ...string) (out string, err error)
CmdExecRaw execute a command. i.e. "-sDEVICE=pdfwrite -dBATCH -dNOPROMPT -dNOPAUSE -dQUIET -sOwnerPassword=mypassword -sUserPassword=mypassword -sOutputFile=MyOutputFile.pdf MyInputFile.pdf"
func (*GhostScriptExec) CmdExportToImage ¶
func (instance *GhostScriptExec) CmdExportToImage(sourceFile, format string, optResolution, optTargetDir, optPassword string) (targetFiles []string, err error)
func (*GhostScriptExec) CmdExportToText ¶
func (instance *GhostScriptExec) CmdExportToText(sourceFile string, optTargetDir, optPassword string) (out string, err error)
func (*GhostScriptExec) CmdHelp ¶
func (instance *GhostScriptExec) CmdHelp() (string, error)
func (*GhostScriptExec) CmdPasswordProtect ¶
func (instance *GhostScriptExec) CmdPasswordProtect(sourceFile, password string, optTargetFileName string) (targetFile string, err error)
CmdPasswordProtect Protect a PDF with password gs -sDEVICE=pdfwrite -dBATCH -dNOPROMPT -dNOPAUSE -dQUIET -sOwnerPassword=mypassword -sUserPassword=mypassword -sOutputFile=MyOutputFile.pdf MyInputFile.pdf
func (*GhostScriptExec) CmdVersion ¶
func (instance *GhostScriptExec) CmdVersion() (string, error)
func (*GhostScriptExec) GetDir ¶
func (instance *GhostScriptExec) GetDir() string
func (*GhostScriptExec) GetDirOut ¶
func (instance *GhostScriptExec) GetDirOut() string
func (*GhostScriptExec) IsInstalled ¶
func (instance *GhostScriptExec) IsInstalled() bool
func (*GhostScriptExec) Pid ¶
func (instance *GhostScriptExec) Pid() int
func (*GhostScriptExec) SetDir ¶
func (instance *GhostScriptExec) SetDir(dir string)
func (*GhostScriptExec) SetDirOut ¶
func (instance *GhostScriptExec) SetDirOut(dir string)
func (*GhostScriptExec) TryKill ¶
func (instance *GhostScriptExec) TryKill() error
Click to show internal directories.
Click to hide internal directories.