From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 704F81382C5 for ; Thu, 10 Dec 2020 22:30:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BBA0DE0997; Thu, 10 Dec 2020 22:30:04 +0000 (UTC) Received: from ciao.gmane.io (static.214.254.202.116.clients.your-server.de [116.202.254.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71DF3E097D for ; Thu, 10 Dec 2020 22:30:04 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1knURl-0003R3-Pn for gentoo-user@lists.gentoo.org; Thu, 10 Dec 2020 23:30:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Scanning double sided documents and printing them the same. Date: Thu, 10 Dec 2020 22:25:57 -0000 (UTC) Message-ID: References: <6c6ec963-5766-d0d8-c644-d5bbaaee6fcf@gmail.com> <2180124.ElGaqSPkdT@lenovo.localdomain> <4074691.ejJDZkT8p0@lenovo.localdomain> User-Agent: slrn/1.0.3 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7e8dc87b-051b-412e-9acc-d395599ec67f X-Archives-Hash: 48f030b2836dc487e44327b14d5c16f1 On 2020-12-10, Michael 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