Documentation
¶
Index ¶
- func NewDocument(ctx context.Context, title string, records []api.Record, ...) (*processor.Document, error)
- type PdfProcessor
- func (p *PdfProcessor) Check(ctx context.Context) (string, error)
- func (p *PdfProcessor) Close() error
- func (p *PdfProcessor) Convert(ctx context.Context, f io.Reader, opts *pdf.ConvertOptions) ([]storage.Image, error)
- func (p *PdfProcessor) Create(ctx context.Context, title string, records []api.Record) ([]byte, error)
- func (p *PdfProcessor) Rotate(ctx context.Context, image io.Reader, degrees int) (*storage.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PdfProcessor ¶
type PdfProcessor struct {
// contains filtered or unexported fields
}
func NewPDFProcessor ¶
func NewPDFProcessor(baseUrl string, images storage.ImageService, cateogories datastore.CategoryService) (*PdfProcessor, error)
func (*PdfProcessor) Close ¶
func (p *PdfProcessor) Close() error
func (*PdfProcessor) Convert ¶
func (p *PdfProcessor) Convert(ctx context.Context, f io.Reader, opts *pdf.ConvertOptions) ([]storage.Image, error)
Click to show internal directories.
Click to hide internal directories.