On 2020-12-10, Michael <[email protected]> wrote: > >> There's no need for the two-step process: >> >> $ convert scan1.png scan2.png scanned.pdf > > There was some vulnerability in ghostscript[1] which disabled the above > conversion - but I can't find the BGO number. I thought it had been patched > since then, but my system appears to not have been fixed: > > $ convert scan1.jpg scan2.jpg scan.pdf > convert: attempt to perform an operation not allowed by the security policy > `PDF' @ error/constitute.c/IsCoderAuthorized/422. > > [1] https://www.kb.cert.org/vuls/id/332928/
You're right. You have to adjust the ImageMagick config files to allow converting to pdf. AFAICT, it's safe as long as you trust the input you're converting. I figure photos I've taken are OK. -- Grant

