pdf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPDFExporter

func NewPDFExporter(endpoint string) func(dl downloader.Downloader) (exporter.ArticleExporter, error)

NewPDFExporter create new PDF exporter

Types

type PDFExporter

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

PDFExporter convert an article to PDF file

func (*PDFExporter) Export

func (exp *PDFExporter) Export(ctx context.Context, article *model.Article) (*downloader.WebAsset, error)

Export an article using txtpaper service

Jump to

Keyboard shortcuts

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