Created attachment 91677 [details] slow pdf pdftohtml is very slow if the pdf uses tiling pattern fill. The attached pdf takes many hours to process. Some backtraces show this is caused by Gfx::doTilingPatternFill/Gfx::drawForm/Gfx::pushResources which reloads all fonts many times. I saw the ImageOutputDev backend has an empty tilingPatternFill method to "avoid the potentially slow loop in Gfx.cc". Since HtmlOutputDev has similar image handling to ImageOutputDev it seems appropriate to add this empty method to HtmlOutputDev as well. This indeed solves the slowness.
Created attachment 91678 [details] [review] add empty tilingPatternFill to HtmlOutputDev
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/32.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.