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