From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111154 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Corrupt PDF files with LMTX? Date: Sat, 24 Apr 2021 01:03:08 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8624863219373161078==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="834"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 24 08:03:50 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1laBOO-000AXF-DH for gctc-ntg-context-518@m.gmane-mx.org; Sat, 24 Apr 2021 08:03:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 21078282BFD; Sat, 24 Apr 2021 08:03:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bo8uQp-vtSr9; Sat, 24 Apr 2021 08:03:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6C80E282BFA; Sat, 24 Apr 2021 08:03:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 30EDD282BF8 for ; Sat, 24 Apr 2021 08:03:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUSa705vsBIK for ; Sat, 24 Apr 2021 08:03:20 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.46; helo=mail-wr1-f46.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9AD82282B7D for ; Sat, 24 Apr 2021 08:03:20 +0200 (CEST) Original-Received: by mail-wr1-f46.google.com with SMTP id x5so116635wrv.13 for ; Fri, 23 Apr 2021 23:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cHGkpg2aD4fbQI2BH+4RmX22mKFBAqEh1gMXP1b6nmU=; b=eOJT3Qpgp8w2T2Hy0NxFpC3xy9FoMRkrIHvcrBP+DGxRaXliTE7aQUgRIBCOoCapP6 1BGsJWvFP4czMMLGtan2BXYoos926A4KhghAH5tUWFToRGFAfSwXhkvLClOaZ0mio+SX vCg5rG3dB4wnHNinpy17KxYF5ZS9m+4UcT9BRi89eoY2fAh9gpC9Ye2aLI2E8nqSbTpK lILtPxdKfCuOxh5G52goRwzKBwwJ/+RG7+9Ks4aeZgyDSOmazywkqC/l2TQij3nA3bPw tSKSacoWpAHvH43DeeM0WWSeVECfu9ge5VhzxU6Q+6W4wTlEftkNem/z0YNmSmN46qqP GJBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cHGkpg2aD4fbQI2BH+4RmX22mKFBAqEh1gMXP1b6nmU=; b=YsIIreuWYWw1mm3v40no+/DJ41PeChB1V6QaO1RFue2hxKln485wA3uGhS32c5tHnf 4stt9K1LN55E5yJ4a4a8k9xE+ifObxx1DFQPqWPfhnF7/2+m3EWrtNVFa0ilnFojkBEK ZZP2fUA8VMXtAOI3Ge3iaUdKu4WOqD3gDlwAtVW8M6HC42rT8xuWaDgiQ2NIhJZP30nt JzBX9FsUl3W/CoWTCP8mmlvqimGzzFxkyivoo5ibNWr6zpHE3CkZn2xym+fdtm3uZnER s14y0POhZTlPMznANlyNKavKw8Q+CCnYYBekMCwNCaeGZJ/tj6G62VbIijWtUwq2CZ2K hVZw== X-Gm-Message-State: AOAM531DZb0iRWMmiU/ItsJyezl0c4CuWxddbj+Xd8lOJWkCV71Ryrik kUhypm28xo1CsDOAZHMi21vTDlvTLQOg11SNb5sXbizczGID5g== X-Google-Smtp-Source: ABdhPJzZ2AH6wKO82iGq9WXZW7mEFjU6pcZ3meLRh17tdTtU8kKTm2GGvEpQZHOWECd0hmfClnMtlKfB7Vrv/0ifsmg= X-Received: by 2002:a05:6000:184c:: with SMTP id c12mr9167318wri.125.1619244200005; Fri, 23 Apr 2021 23:03:20 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:111154 Archived-At: --===============8624863219373161078== Content-Type: multipart/alternative; boundary="00000000000058909805c0b1ab0b" --00000000000058909805c0b1ab0b Content-Type: text/plain; charset="UTF-8" Hi, list! When I try to convert a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert the following happens: **** Error: stream Length incorrect. Output may be incorrect. **** Error: An error occurred while reading an XREF table. **** The file has been damaged. This may have been caused **** by a problem while converting or transfering the file. **** Ghostscript will attempt to recover the data. **** However, the output may be incorrect. Error: /ioerror in --runpdf-- Operand stack: post_eof_count 4096 --nostringval-- 4571 Execution stack: %interp_exit .runexec2 --nostringval-- runpdf --nostringval-- 2 %stopped_push --nostringval-- runpdf runpdf false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1978 1 3 %oparray_pop runpdf runpdf runpdf runpdf runpdf runpdf runpdf Dictionary stack: --dict:735/1123(ro)(G)-- --dict:1/20(G)-- --dict:80/200(L)-- --dict:80/200(L)-- --dict:135/256(ro)(G)-- --dict:315/325(ro)(G)-- --dict:28/32(L)-- Current allocation mode is local GPL Ghostscript 9.50: Unrecoverable error, exit code 1 convert-im6.q16: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r300x300' '-sOutputFile=/tmp/magick-55690XUwDR8veJQEc%d' '-f/tmp/magick-55690zbxNvSPCVCYe' '-f/tmp/magick-55690aVvG11u3p8wd'' (1) @ error/pdf.c/InvokePDFDelegate/291. convert-im6.q16: no images defined `151.png' @ error/convert.c/ConvertImageCommand/3258. I'd blame ImageMagick, except for the fact that 1) other converters fail too and 2) it doesn't happen with ConTeXt MkIV (PDF is successfully converted). Cordially, Jairo --00000000000058909805c0b1ab0b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, list!
When I try to conve= rt a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert t= he following happens:

=C2=A0=C2=A0 **** Error: stream Length incorre= ct.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Output may be= incorrect.
=C2=A0 =C2=A0**** Error: =C2=A0An error occurred while readi= ng an XREF table.
=C2=A0 =C2=A0**** The file has been damaged.=C2=A0 Thi= s may have been caused
=C2=A0 =C2=A0**** by a problem while converting o= r transfering the file.
=C2=A0 =C2=A0**** Ghostscript will attempt to re= cover the data.
=C2=A0 =C2=A0**** However, the output may be incorrect.<= br>Error: /ioerror in --runpdf--
Operand stack:
=C2=A0 =C2=A0post_eof= _count =C2=A0 4096 =C2=A0 --nostringval-- =C2=A0 4571
Execution stack:=C2=A0 =C2=A0%interp_exit =C2=A0 .runexec2 =C2=A0 --nostringval-- =C2=A0 = runpdf =C2=A0 --nostringval-- =C2=A0 2 =C2=A0 %stopped_push =C2=A0 --nostri= ngval-- =C2=A0 runpdf =C2=A0 runpdf =C2=A0 false =C2=A0 1 =C2=A0 %stopped_p= ush =C2=A0 1990 =C2=A0 1 =C2=A0 3 =C2=A0 %oparray_pop =C2=A0 1989 =C2=A0 1 = =C2=A0 3 =C2=A0 %oparray_pop =C2=A0 1977 =C2=A0 1 =C2=A0 3 =C2=A0 %oparray_= pop =C2=A0 1978 =C2=A0 1 =C2=A0 3 =C2=A0 %oparray_pop =C2=A0 runpdf =C2=A0 = runpdf =C2=A0 runpdf =C2=A0 runpdf =C2=A0 runpdf =C2=A0 runpdf =C2=A0 runpd= f
Dictionary stack:
=C2=A0 =C2=A0--dict:735/1123(ro)(G)-- =C2=A0 --di= ct:1/20(G)-- =C2=A0 --dict:80/200(L)-- =C2=A0 --dict:80/200(L)-- =C2=A0 --d= ict:135/256(ro)(G)-- =C2=A0 --dict:315/325(ro)(G)-- =C2=A0 --dict:28/32(L)-= -
Current allocation mode is local
GPL Ghostscript 9.50: Unrecoverabl= e error, exit code 1
convert-im6.q16: FailedToExecuteCommand `'gs= 9; -sstdout=3D%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBit= map=3D500000000 -dAlignToPixels=3D0 -dGridFitTT=3D2 '-sDEVICE=3Dpngalph= a' -dTextAlphaBits=3D4 -dGraphicsAlphaBits=3D4 '-r300x300' =C2= =A0'-sOutputFile=3D/tmp/magick-55690XUwDR8veJQEc%d' '-f/tmp/mag= ick-55690zbxNvSPCVCYe' '-f/tmp/magick-55690aVvG11u3p8wd'' (= 1) @ error/pdf.c/InvokePDFDelegate/291.
convert-im6.q16: no images defin= ed `151.png' @ error/convert.c/ConvertImageCommand/3258.

I= 'd blame ImageMagick, except for the fact that 1) other converters fail= too and 2) it doesn't happen with ConTeXt MkIV (PDF is successfully co= nverted).

Cordially,

Jairo
--00000000000058909805c0b1ab0b-- --===============8624863219373161078== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8624863219373161078==--