• Resolved Colin

    (@colinsafranek)


    I have a particularly lengthy pdf that is generated from a password protected page, so it can’t be cached. It must be generated on the fly each time the /pdf/ endpoint is visited. Currently it takes a good 10 seconds to render, and I’d like to speed that up as much as possible. I just have no idea where to start in order to make this happen. Are there server settings I can tweak to divert more processing power to the dompdf render task? If you could just point me in the right direction to start figuring out how to speed things up I’d be very grateful!

    Thanks in advance for your help!

    https://www.ads-software.com/plugins/wp-pdf-templates/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Viljami Kuosmanen

    (@zuige)

    This is a DOMPDF issue. Nothing that I can do about the speed really. :/

    One thing I’ve noticed helps with the performance, is getting rid table layouts as much as possible. Especially with tables spanning more than 1 page, DOMPDF seems to take forever to figure out the layout.

    You could try with PHP7 or HHVM perhaps? ??

    Plugin Author Viljami Kuosmanen

    (@zuige)

    Marking this topic as resolved.

    Thread Starter Colin

    (@colinsafranek)

    Hi again Antti,

    would you be available for paid work? I have followed your instructions for optimizing the PDF template generation speeds, but some of my longer templates which include queries for up to 31 posts can take as long as 60 to 90 seconds to render. Many of my customers assume that the PDF export feature is just broken and leave before the file fully renders.

    The issue I have, as stated above, is that the PDF content is protected by membership software, so I have to check that the user meets certain criteria before allowing the file to be rendered for each user. I have not been able to figure out how to do this for cached PDF files. If I could cache the files then the render/download speeds would be almost instantaneous.

    Are you available for hire? I really need a solution for this. Would you be able to recommend someone that is also familiar with DOM PDF?

    Please let me know. Thank you!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please try https://jobs.wordpress.net/ or https://directory.codepoet.com/ and do not accept any hire offers posted to these forums.

    This topic has now been closed as per the Forum Rules

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Speed up pdf generation?’ is closed to new replies.