I am using the Printmaker plugin to print a pdf. Everything seems to be working well when the site is not being forced to use SSL.
I am getting the message "Failed to load PDF document."
If I remove the SSL, the pdf renders correctly. I would really like to have my site be under https - is there any way to help printmaker work?
I don't see anything obvious in the
craft.log that would indicate an error, is there a configuration setting I'm missing?
Thank you for any suggestions!
It is the actual image(s) in the pdf that are causing the error.
The full path to the S3 bucket is https, and I'm able to access the image just straight through the browser. I've copied/paste into the url bar and the image will render.
- If I set the S3 path to http, and set the browser to http - all is well.
- If I set the S3 path to https, and the browser to http - all is well.
- If I set the S3 path to https and the browser to https - pdf fails to render.
To further test and and attempt to get some kind of error message/log to help trouble shoot, I've moved my image directory to a local path. I now the error "Image not found or type unknown". It looks like this could be a DOMPDF issue. I will continue to update this thread as I uncover more.
It does seem to be something related to forcing requests to SSL. If I remove https, the pdf renders every single time, every browser. If the request is made to the pdf using https, it fails every time.