• Resolved KineticPulse

    (@kineticpulse)


    If I use a custom template to create a PDF from a query I get a critical error if the page content is too large (basically I’m trying to create a PDF of a post archive).

    Uncaught Dinamiko\DKPDF\Vendor\Mpdf\MpdfException: The HTML code size is larger than pcre.backtrack_limit 1000000. You should use WriteHTML() with smaller string lengths. Pass your HTML in smaller chunks.

    Is this a fixed limitation of the plugin, or is it something which can be fixed?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hello @kineticpulse the error seems coming from the mPDF library used by the plugin, here is a similar issue I’ve found with the same error which recommends either reducing the size of the html sent to the PDF or increase the backtrack limit on the server.

    Regarding the query you’re using to get post archive, can you share how it looks like? how many items does it include in the response? and for each item what information is displayed?

    Thread Starter KineticPulse

    (@kineticpulse)

    Hi

    I found that issue with mPDF too – that’s clearly whats happening here. I’m basically trying to print 150 pages to the PDF, which is too much HTML for the library to handle! Happy to mark this as resolved, as it’s not an issue with your plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Critical error’ is closed to new replies.