* Corrupt PDF files with LMTX? @ 2021-04-24 6:03 Jairo A. del Rio 2021-04-24 6:36 ` Hans Hagen 2021-04-24 8:07 ` Thomas A. Schmitz 0 siblings, 2 replies; 6+ messages in thread From: Jairo A. del Rio @ 2021-04-24 6:03 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1854 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 2153 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Corrupt PDF files with LMTX? 2021-04-24 6:03 Corrupt PDF files with LMTX? Jairo A. del Rio @ 2021-04-24 6:36 ` Hans Hagen [not found] ` <CAKyqqaY=VqQWCM93Bwcrc2TfQ6_a0CT-EXvrrgjp5ha7x1+33Q@mail.gmail.com> 2021-04-24 8:07 ` Thomas A. Schmitz 1 sibling, 1 reply; 6+ messages in thread From: Hans Hagen @ 2021-04-24 6:36 UTC (permalink / raw) To: mailing list for ConTeXt users, Jairo A. del Rio On 4/24/2021 8:03 AM, Jairo A. del Rio wrote: > Hi, list! > When I try to convert a PDF generated by ConTeXt LMTX to PNG using > ImageMagick's convert the following happens: hard to handle when there is no mwe ... Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAKyqqaY=VqQWCM93Bwcrc2TfQ6_a0CT-EXvrrgjp5ha7x1+33Q@mail.gmail.com>]
* Fwd: Corrupt PDF files with LMTX? [not found] ` <CAKyqqaY=VqQWCM93Bwcrc2TfQ6_a0CT-EXvrrgjp5ha7x1+33Q@mail.gmail.com> @ 2021-04-24 13:05 ` Jairo A. del Rio 2021-04-24 16:18 ` Hans Hagen 0 siblings, 1 reply; 6+ messages in thread From: Jairo A. del Rio @ 2021-04-24 13:05 UTC (permalink / raw) To: Hans Hagen, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1370 bytes --] ---------- Forwarded message --------- De: Jairo A. del Rio <jairoadelrio6@gmail.com> Date: sáb, 24 de abr. de 2021 a la(s) 08:05 Subject: Re: [NTG-context] Corrupt PDF files with LMTX? To: Hans Hagen <j.hagen@xs4all.nl> The following: \starttext \startMPpage fill fullcircle scaled 1cm withcolor red \stopMPpage \stoptext gives **** Error: stream Length incorrect. Output may be incorrect. **** Error: stream Length incorrect. Output may be incorrect. However, an image is generated. However, when it includes text, the message above appears. As Thomas says, it happens even with simple documents. Jairo El sáb, 24 de abr. de 2021 a la(s) 01:36, Hans Hagen (j.hagen@xs4all.nl) escribió: > On 4/24/2021 8:03 AM, Jairo A. del Rio wrote: > > Hi, list! > > When I try to convert a PDF generated by ConTeXt LMTX to PNG using > > ImageMagick's convert the following happens: > hard to handle when there is no mwe ... > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > [-- Attachment #1.2: Type: text/html, Size: 2758 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fwd: Corrupt PDF files with LMTX? 2021-04-24 13:05 ` Fwd: " Jairo A. del Rio @ 2021-04-24 16:18 ` Hans Hagen 2021-04-26 0:14 ` Jairo A. del Rio 0 siblings, 1 reply; 6+ messages in thread From: Hans Hagen @ 2021-04-24 16:18 UTC (permalink / raw) To: Jairo A. del Rio, mailing list for ConTeXt users On 4/24/2021 3:05 PM, Jairo A. del Rio wrote: > gives > > **** Error: stream Length incorrect. > Output may be incorrect. > **** Error: stream Length incorrect. > Output may be incorrect. I'll check it ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fwd: Corrupt PDF files with LMTX? 2021-04-24 16:18 ` Hans Hagen @ 2021-04-26 0:14 ` Jairo A. del Rio 0 siblings, 0 replies; 6+ messages in thread From: Jairo A. del Rio @ 2021-04-26 0:14 UTC (permalink / raw) To: Hans Hagen, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 768 bytes --] Thank you a lot for the fix! Regards, Jairo El sáb, 24 de abr. de 2021 a la(s) 11:18, Hans Hagen (j.hagen@xs4all.nl) escribió: > On 4/24/2021 3:05 PM, Jairo A. del Rio wrote: > > gives > > > > **** Error: stream Length incorrect. > > Output may be incorrect. > > **** Error: stream Length incorrect. > > Output may be incorrect. > > I'll check it > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > [-- Attachment #1.2: Type: text/html, Size: 1325 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Corrupt PDF files with LMTX? 2021-04-24 6:03 Corrupt PDF files with LMTX? Jairo A. del Rio 2021-04-24 6:36 ` Hans Hagen @ 2021-04-24 8:07 ` Thomas A. Schmitz 1 sibling, 0 replies; 6+ messages in thread From: Thomas A. Schmitz @ 2021-04-24 8:07 UTC (permalink / raw) To: mailing list for ConTeXt users On 24.04.21 08:03, Jairo A. del Rio wrote: > 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 Very interesting! I have seen similar behavior these past days (I think it's very recent) but thought it was something in my documents. Hans, MWE: I have two test files, simply with \starttext Test \stoptext I try to concatenate the resulting pdf files with qpdf: qpdf test1.pdf --pages test1.pdf test2.pdf -- result.pdf And I get these warnings (though the resulting file appears to be OK): WARNING: test1.pdf (xref stream: object 18 0, offset 4154): expected endstream WARNING: test1.pdf (xref stream: object 18 0, offset 4078): attempting to recover stream length WARNING: test1.pdf (xref stream: object 18 0, offset 4078): recovered stream length: 64 WARNING: test1.pdf (object 3 0, offset 4179): expected endstream WARNING: test1.pdf (object 3 0, offset 2982): attempting to recover stream length WARNING: test1.pdf (object 3 0, offset 2982): recovered stream length: 887 WARNING: test2.pdf (xref stream: object 18 0, offset 4215): expected endstream WARNING: test2.pdf (xref stream: object 18 0, offset 4139): attempting to recover stream length WARNING: test2.pdf (xref stream: object 18 0, offset 4139): recovered stream length: 65 WARNING: test2.pdf (object 3 0, offset 4241): expected endstream WARNING: test2.pdf (object 3 0, offset 3050): attempting to recover stream length WARNING: test2.pdf (object 3 0, offset 3050): recovered stream length: 880 qpdf: operation succeeded with warnings; resulting file may have some problems ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-04-26 0:14 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-04-24 6:03 Corrupt PDF files with LMTX? Jairo A. del Rio 2021-04-24 6:36 ` Hans Hagen [not found] ` <CAKyqqaY=VqQWCM93Bwcrc2TfQ6_a0CT-EXvrrgjp5ha7x1+33Q@mail.gmail.com> 2021-04-24 13:05 ` Fwd: " Jairo A. del Rio 2021-04-24 16:18 ` Hans Hagen 2021-04-26 0:14 ` Jairo A. del Rio 2021-04-24 8:07 ` Thomas A. Schmitz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).