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
Click to show internal directories.
Click to hide internal directories.