As I work on generating a 5-page PDF from my HTML file using wkhtmltopdf, everything seems to be running smoothly. However, I've encountered an issue when it comes to the time it takes to complete this task, especially when a background image is included on each page.
Interestingly, when a background image is used, wkhtmltopdf takes approximately 1.7 seconds to generate the PDF. On the other hand, if I exclude the background image (--nobackground option), the process only takes about 0.5 seconds. I attempted to speed up the process by converting the background image from .jpg to .png, but unfortunately, it didn't have the desired effect.
Do you happen to know of any workaround for this issue? Perhaps a parameter adjustment or a CSS modification? At the moment, my HTML file includes a declaration for a background image on each page, along with a global declaration at the beginning specifying its size and "no_repeat" option.
Thank you for your assistance!