Created attachment 26058 [details] Original file After updating ghostscript to 10.04.0, I have an issue that looks like https://bugs.ghostscript.com/show_bug.cgi?id=707831. I am post-processing my (Lua)LaTeX outputs with gs -o "outputgs.pdf" -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress output.pdf With gs 10.03.1 I had no issue, but with gs 10.04.0 the processing returns: The following errors were encountered at least once while processing this file: CMap unrecoverably broken **** This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> LuaTeX-1.18.0 <<<< **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification. As a result, selecting or copying text from the file is broken. For instance, here is the first title line, normally first and as it is now second: 1 Résolution analytique de la chute en régime turbulent ࣝ XǑȕȂǶȟȜǦȂǼ ƷǼƷǶΝȜǦȑȟǐ njǐ ǶƷ džǣȟȜǐ ǐǼ ȒǑǝǦǻǐ ȜȟȒDžȟǶǐǼȜ
Created attachment 26059 [details] File processed with gs10.03.1
Created attachment 26060 [details] File processed with gs10.04.0
The ToUnicode CMaps in the file are strange. Every one looks like this: 0 beginbfrange endbfrange 44 beginbfchar <0001> <0041> That is they all start with an empty bfrange, which we reject. It is legal, however. Pointless, but legal, so this commit 65f6ea3c1660ea05b6a575cbe738e66e54b9a497 relaxes the requirement.
Can confirm this solves the issue, thanks for the quick fix!
*** Bug 708201 has been marked as a duplicate of this bug. ***