ghostscript

package
v0.2.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL