Documentation
¶
Index ¶
- Variables
- func Image(input interface{}, opts ...Option) error
- func ImageDocument(doc *render.Document, opts ...Option) error
- func ImageDocuments(documents []*render.Document, opts ...Option) error
- func PDF(input interface{}, output io.Writer, opts ...Option) error
- func PDFDocuments(documents []*render.Document, output io.Writer, opts ...Option) error
- func Text(input interface{}, output io.Writer, opts ...Option) error
- func TextDocument(doc *parser.Document, output io.Writer, opts ...Option) error
- func TextDocuments(documents []*parser.Document, output io.Writer, opts ...Option) error
- type Converter
- type Option
- func BgColor(bg color.Color) Option
- func DPI(dpi float64) Option
- func EPS() Option
- func ImageWriter(f func(page int, img image.Image) error) Option
- func JPG() Option
- func PNG() Option
- func Page(page int) Option
- func SVG() Option
- func TeX() Option
- func Thumbnail(s int) Option
- func Writer(f func(page int) (io.WriteCloser, error)) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPage = errors.New("页码无效")
ErrInvalidPage 表示请求的全局页码无效。
Functions ¶
func ImageDocument ¶ added in v0.0.6
ImageDocument 将已解析的 OFD 文档渲染为图像或矢量格式。
func ImageDocuments ¶ added in v0.0.6
ImageDocuments 将多个已解析的 OFD 文档体按全局页码渲染为图像或矢量格式。
func PDFDocuments ¶ added in v0.0.6
PDFDocuments 将多个已解析的 OFD 文档体按全局页码写入同一个 PDF。
func TextDocument ¶ added in v0.0.6
TextDocument 提取已解析 OFD 文档中的文字并写入 output。
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter 配置转换器
Click to show internal directories.
Click to hide internal directories.