Re: Problem with PDF file genreated by Notes application on maCOS
Tom Kacvinsky <[email protected]> Sat, 21 Jul 2018 15:52:59 -0400
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <CAG_eJLdpFy-cKXn_bVa1vN2PcSsM=EwCO_OQhtob=s1k-WxeQw@mail.gmail.com> |
Error message is
tkacvinsky@admin:~> gs foo.pdf
GPL Ghostscript 9.15 (2014-09-22)
Copyright (C) 2014 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: File has an invalid xref entry: 1. Rebuilding xref
table.
Processing pages 1 through 1.
Page 1
**** File has an unbalanced >> (close dictionary).
**** Error reading a content stream. The page may be incomplete.
Error: /typecheck in --run--
Operand stack:
--dict:5/5(L)-- --dict:73/138(ro)(L)-- PageSpotColors
--dict:5/5(L)-- --dict:0/0(L)-- --dict:4/4(L)-- 14643 12 0
--nostringval-- Length --nostringval-- Type XObject Subtype
Image Width 0 Height 0 ColorSpace BitsPerComponent 16
Filter FlateDecode Length --nostringval-- FlateDecode
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1951 1 3 %oparray_pop
1950 1 3 %oparray_pop 1934 1 3 %oparray_pop
--nostringval-- --nostringval-- 2 1 1 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval-- %loop_continue
--nostringval-- --dict:8/8(L)-- --nostringval-- 5 %dict_continue
--nostringval--
Dictionary stack:
--dict:1176/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)--
--dict:82/200(L)-- --dict:116/127(ro)(G)-- --dict:280/300(ro)(G)--
--dict:28/32(L)-- --dict:2/6(L)--
Current allocation mode is local
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
Unrecoverable error: typecheck in quit
Operand stack:
--nostringval-- false --nostringval--
t
On Sat, Jul 21, 2018 at 3:40 PM Tom Kacvinsky <[email protected]> wrote:
> HI all,
>
> I have PDF file generated by the Notes application on macOS.
>
> I *think* I have narrowed it down to the following objects which cause a
> problem (PyPDF2 barfs on these objects, anyway);
>
> 12 0 obj
> << /Length 13 0 R /Type /XObject /Subtype /Image /Width 0 /Height 0
> /ColorSpace
> /BitsPerComponent 16 /Filter /FlateDecode >>
> stream
> <binary date>
> endstream
> endobj
>
> 10 0 obj
> << /Length 11 0 R /Type /XObject /Subtype /Image /Width 0 /Height 0
> /ColorSpace
> /BitsPerComponent 16 /Filter /FlateDecode >>
> stream
> <binary data>
> endstream
> endobj
>
> 14 0 obj
> << /Length 15 0 R /Type /XObject /Subtype /Image /Width 0 /Height 0
> /ColorSpace
> /BitsPerComponent 16 /Filter /FlateDecode >>
> stream
> <binary data>
> endstream
> endobj
>
> The indirect references for /Length all contain 8. These just doesn't
> look like valid PDF objects.
>
> I can provide the PDF file off list, as well as the ghostscript error
> message when reading the PDF files.
>
> Thanks,
>
> Tom
>