Thumbnails for PDF files are not being created

I was able to fix the problem using the solution from this thread: https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453

but it involves bypassing some security measures, so I will be looking for another more secure fix.