delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/02/15:05:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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 DOT inglis AT systematicsw DOT ab DOT ca
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
Subject: Re: ghostscript issues
To: cygwin AT cygwin DOT com
References: <1604953430 DOT 859583 DOT 1591025163209 DOT ref AT mail DOT yahoo DOT com>
<1604953430 DOT 859583 DOT 1591025163209 AT mail DOT yahoo DOT com>
<8d93d907-5b82-bafa-9bbd-3f47dbec99df AT jhmg DOT net>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT 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>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 052J4wEa015471

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.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019