Describe the bug
When opening certificate PDF in the latest version of Adobe Acrobat Reader I see 'Insufficient data for an image' error, the PDF is blank.
Moodle Version
Moodle version is 3.8.1.
Plugin Version
Plugin version is 2.2.8 (2018082000).
To Reproduce
Steps to reproduce the behavior:
Go to the simple certificate page
Click on 'Get certificate'
Download the certificate PDF to your PC
Open the certificate PDF in Adobe Acrobat Reader
See error 'Insufficient data for an image'
Click 'Ok'
Certificate PDF is blank
Expected behavior
The PDF file is opened in Adobe Acrobat Reader without any errors, it's not blank.
Screenshots
Screenshot of the error:
Desktop:
OS: Mac, Windows
Adobe Acrobat Reader version: 2020.006.20034
Other details:
We discovered that often this error message has to do with the PDF structure, which can be caused by the application that produced the PDF (Simple Certificate seems to use an open source program called TCPDF). I found this thread that discussed potential issues and was curious if the fix could have to do with the icc profile. This goes above my head, but another user said that adding code to remove icc profile fixed what sounds like a similar issue to ours: https://stackoverflow.com/questions/24954806/insufficient-data-for-an-image-message-when-opening-pdf
Describe the bug When opening certificate PDF in the latest version of Adobe Acrobat Reader I see 'Insufficient data for an image' error, the PDF is blank.
Moodle Version Moodle version is 3.8.1.
Plugin Version Plugin version is 2.2.8 (2018082000).
To Reproduce Steps to reproduce the behavior:
Expected behavior The PDF file is opened in Adobe Acrobat Reader without any errors, it's not blank.
Screenshots Screenshot of the error:
Desktop:
Other details: We discovered that often this error message has to do with the PDF structure, which can be caused by the application that produced the PDF (Simple Certificate seems to use an open source program called TCPDF). I found this thread that discussed potential issues and was curious if the fix could have to do with the icc profile. This goes above my head, but another user said that adding code to remove icc profile fixed what sounds like a similar issue to ours: https://stackoverflow.com/questions/24954806/insufficient-data-for-an-image-message-when-opening-pdf