diff --git a/converter/converter.go b/converter/converter.go index e2b04fd..0eabf11 100644 --- a/converter/converter.go +++ b/converter/converter.go @@ -128,7 +128,10 @@ func (c *Converter) Convert(files ...models.File) error { // Convert converts all given input files func (c *Converter) ConvertHtmls(htmls ...models.Html) error { - for _, h := range htmls { + for i, h := range htmls { + if c.progress != nil { + c.progress(i + 1) + } if len(h.Html) == 0 { return fmt.Errorf("no .html input provided") } else if h.Output == "" || filepath.Ext(h.Output) != ".pdf" {