From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) by sourceware.org (Postfix) with ESMTPS id 2B5F73851C21 for ; Tue, 2 Jun 2020 19:04:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2B5F73851C21 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id gCD3jP7tfYYpxgCD4j9wJa; Tue, 02 Jun 2020 13:04:26 -0600 X-Authority-Analysis: v=2.3 cv=OubUNx3t c=1 sm=1 tr=0 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=jChkm-x5hCMFubTIiR0A:9 a=QEXdDO2ut3YA:10 Reply-To: cygwin@cygwin.com Subject: Re: ghostscript issues To: cygwin@cygwin.com References: <1604953430.859583.1591025163209.ref@mail.yahoo.com> <1604953430.859583.1591025163209@mail.yahoo.com> <8d93d907-5b82-bafa-9bbd-3f47dbec99df@jhmg.net> From: Brian Inglis Autocrypt: addr=Brian.Inglis@SystematicSw.ab.ca; prefer-encrypt=mutual; keydata= mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0 LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software Message-ID: <60b16102-fd52-982e-fb93-bc2d3911f9c2@SystematicSw.ab.ca> Date: Tue, 2 Jun 2020 13:04:25 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <8d93d907-5b82-bafa-9bbd-3f47dbec99df@jhmg.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfG+8bxODFDpCpk8/rUC4Tx72Xkbnxhg2Gt0QwT7YathfXNsMRp10Ra5TQsrm7WTN9HXJmCnq/RQ4nfs5LSce8+t6DqpgxxGM9VMkefWnPprcvyxkCew5 eDun4kG00V8ES5RMm8iz3RtYps8kaSO+0hUAkm3cVcl+EoWx0Gdza2ZHHatKO5iWcpkKJNSMp+vVhA== X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 19:04:29 -0000 On 2020-06-01 15:57, Jim Garrison via Cygwin wrote: > On 6/1/2020 8:26 AM, Thomas Bodine via Cygwin wrote: >> My favorite use of ghost script is to combine PDF's. I upgraded Cygwin this weekend, and ghost script fails to perform this task >> >> I am running this: >> Cygwin Setup version 2.904 (64 bit) >> base-cygwin 3.8-1 >> ghostscript 9.52-1 >> ghostscript-fonts-other 6.0-1 >> Windows 10 Pro version 1909 build 18363.836 >> >> When I run the script: >>  $ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite  -sOutputFile=combine.pdf  able.pdf baker.pdf charly.pdf >>> >> GPL Ghostscript 9.52 (2020-03-19)                                                >> Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.                  >> This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:       >> see the file COPYING for details.                                                >> Processing pages 1 through 1.                                                    >> Page 1                                                                           >> Error: /rangecheck in --restore--                                                > > Same issue here, only in my case gs is being called from OCRmyPDF. > I successfully built OCRmyPDF for Cygwin except for this issue. > > Having OCRmyPDF for Cygwin would make it possible to run that tool > on Windows without having to use a VM container, which is currently > the only way to run it. Marco Atzeri wrote: > as alternative workaround, you can use qpdf to merge PDF files > qpdf --empty --pages able.pdf baker.pdf charly.pdf -- combine.pdf OCRmyPDF is a python package using tesseract-ocr, ghostscript, qpdf, leptonical (all supported on Cygwin), perhaps it can be configured or changed to use qpdf to combine PDFs? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in IEC units and prefixes, physical quantities in SI.]