• Resolved acss21acss

    (@acss21acss)


    I am generating certificate from LearnDash, it uses TCPDF to output PDF binary content to standard output. CDN Enabler will try to replace the content in the PDF and cause display abnormally. However, this only happens on the certificate contained Chinese characters. I did not try other language yet. Since the output is binary, I can not understand it.

    I use xDebug compared $html and $cdn_html, and found there must be something wrong with the $regex_rule. Because it replaces some wired thing into my CDN URL.

    I think you can either let user to exclude some url, like Cache Enabler. Or you can improve your rule to handle content like this better.

    What do you think about this issue?

Viewing 1 replies (of 1 total)
  • I’m guessing that your dynamic PDF queries a post. The CDN plugin rewrites the content field of the post when retrieved. Could that be related to the issue?

    Can you explain what it’s doing and what it should be doing instead?

Viewing 1 replies (of 1 total)

The topic ‘Cause error if content is PDF binary’ is closed to new replies.