mutool

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package mutool wraps MuPDF's "mutool" command line program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Command and optional arguments for running mutool. Defaults to "mutool".
	MutoolCommand []string

	// Command and optional arguments for running xmllint. Defaults to
	// "xmllint".
	XmllintCommand []string
}

type Wrapper

type Wrapper struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Wrapper

func (*Wrapper) CheckCommands

func (w *Wrapper) CheckCommands(ctx context.Context) error

func (*Wrapper) Draw

func (w *Wrapper) Draw(ctx context.Context, path string, pageNum int, r renderformat.Renderer) error

Draw produces an image of a single page from a document.

func (*Wrapper) StructuredText

func (w *Wrapper) StructuredText(ctx context.Context, path string, r pagerange.Range) (_ *stext.Document, err error)

func (*Wrapper) Validate

func (w *Wrapper) Validate(ctx context.Context, path string) error

Validate checks whether the given file can be parsed successfully.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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