So recently I managed to create a set of PHP scripts that allows users of a dumbphone to upload a PDF file and view it as JPG images. It works perfectly. I tested it and it seems to work fine in most cases. Also the load is perfectly balanced so no problems so far and I am ready for a serious amount of traffic!
My problem occurs when a user uploads a PDF file that does not have fonts embedded and which uses fonts that are not recognized by Ghostscript. Would it be possible to set a default fallback font to prevent Ghostscript from trowing errors?
Setup: OS: Debian
How does it work: I use the "convert" command provided by imagick to convert pdf's to jpeg's. No additional parameters are set. I am not sure how my Ghostscript/Imagick settings are, but I don't think there's anything special to it. If you need to know something about the install, please provide me with the location of the specific config file and the setting: I will do my best to provide it as soon as possible.
If there's anything else you need, feel free to ask! Thanks in advance!