ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Flaky pdf file.
@ 2008-09-26 18:00 John Culleton
  2008-09-26 18:45 ` luigi scarso
  0 siblings, 1 reply; 9+ messages in thread
From: John Culleton @ 2008-09-26 18:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Recent texlive 2008 installed on Linux Slackware 12.0 system.

I have a file that I can process via texexec and which shows up fine 
on my Acrobat Reader, kpdf or xpdf. However another person using 
(probably) Windows  keeps getting corrupt file errors when he tries 
to read it.   And when I try to run the output pdf through pdf2ps it 
blows up with this message:
---------------------------------------------------------------------------------
 **** Warning:  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.
ERROR: /undefined in /BXlevel
Operand stack:
   1   --dict:6/6(ro)(G)--   8¬­ÎµÈ¶dm
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   
2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   
false   1   %stopped_push   1   3   %oparray_pop   1   
3   %oparray_pop   1   
3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   
false   
1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1119/1686(ro)(G)--   --dict:0/20(G)--   --dict:107/200
(L)--   --dict:107/200(L)--   --dict:104/127(ro)
(G)--   --dict:241/347(ro)(G)--   --dict:18/24(L)--
Current allocation mode is local
ESP Ghostscript 815.04: Unrecoverable error, exit code 1
---------------------------------------------------------------
Other pdf files on my system, built on other computers etc. process 
fine through pdf2ps.  I took out all the advanced stuff, such as 
bookmarks, interaction and urls but I still get the same kind of 
error.  An old pdf version of the file, dating back to February, also 
blows up. 

The preamble to the file plus dummy text looks like this: 
--------------------------------
\setupoutput[pdftex]
\setupindenting[none]
\setupwhitespace[medium]
\frenchspacing
\setupcolors[state=start]
\setuphead[chapter][head=nomarking,number=no]
\setuphead[section][number=no,textcommand=\bf]
\setuphead[subsection][number=no]
\setuphead[subsubsection][number=no]
%\setupinteraction[state=start,color=blue]
\setuplist[section][alternative=f,style=bold,interaction=no] 
\setuplist[subsection][alternative=f,interaction=no]
\setuplist[subsubsection][alternative=c,interaction=no] 
\starttext
foo
\stoptext
--------------
This blows up on pdf2ps also. 

 I just created a dummy pdftex file, compiled it, then converted it 
with pdf2ps with no problem. 

Either there is an error in my preamble or something fishy with 
Context.  Thoughts? 

-- 
John Culleton
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 18:00 Flaky pdf file John Culleton
@ 2008-09-26 18:45 ` luigi scarso
  2008-09-26 21:29   ` John Culleton
  0 siblings, 1 reply; 9+ messages in thread
From: luigi scarso @ 2008-09-26 18:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1733 bytes --]

On Fri, Sep 26, 2008 at 8:00 PM, John Culleton <john@wexfordpress.com>wrote:

> Recent texlive 2008 installed on Linux Slackware 12.0 system.
>
> I have a file that I can process via texexec and which shows up fine
> on my Acrobat Reader, kpdf or xpdf. However another person using
> (probably) Windows  keeps getting corrupt file errors when he tries
> to read it.   And when I try to run the output pdf through pdf2ps it
> blows up with this message:
>
> ---------------------------------------------------------------------------------
>  **** Warning:  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.
> ERROR: /undefined in /BXlevel
> Operand stack:
>   1   --dict:6/6(ro)(G)--   8¬­ÎµÈ¶dm
> Execution stack:
>   %interp_exit   .runexec2   --nostringval--   --nostringval--
> --nostringval--
> 2   %stopped_push   --nostringval--   --nostringval--   --nostringval--
> false   1   %stopped_push   1   3   %oparray_pop   1
> 3   %oparray_pop   1
> 3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--
> --nostringval--   --nostringval--   --nostringval--
> false
> 1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
> Dictionary stack:
>   --dict:1119/1686(ro)(G)--   --dict:0/20(G)--   --dict:107/200
> (L)--   --dict:107/200(L)--   --dict:104/127(ro)
> (G)--   --dict:241/347(ro)(G)--   --dict:18/24(L)--
>


> Current allocation mode is local
> ESP Ghostscript 815.04: Unrecoverable error, exit code 1
>
maybe gs is too old.
you can try with 8.61 or  8.62  or 8.63 (and cross the fingers ...)
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 2485 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 18:45 ` luigi scarso
@ 2008-09-26 21:29   ` John Culleton
  2008-09-26 21:47     ` luigi scarso
  2008-09-26 21:53     ` Taco Hoekwater
  0 siblings, 2 replies; 9+ messages in thread
From: John Culleton @ 2008-09-26 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Friday 26 September 2008 02:45:14 pm luigi scarso wrote:

> maybe gs is too old.
> you can try with 8.61 or  8.62  or 8.63 (and cross the fingers ...)

I downloaded ghostscript 8.63 but the pdf2ps  error persists. but the 
error goes away if I uses an earlier version of context, namely: 
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
(tetex distribution.)
Therefore the problem lies in the recent Context I have been using, 
and not in ghostscript nor in my code. 

My curremt version of Context is:
ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2008.9.25  int: 
english/english

The next previous version of Context I have also fails this test:

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.9.26  int: 
english/english
My test file at the moment is:

\setupoutput[pdftex]
\starttext
foo
\stoptext

I am testing on LInux Slackware 12. 
Perhaps Hans or Thanh would care to comment.


-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 21:29   ` John Culleton
@ 2008-09-26 21:47     ` luigi scarso
  2008-09-26 21:53     ` Taco Hoekwater
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2008-09-26 21:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 928 bytes --]

On Fri, Sep 26, 2008 at 11:29 PM, John Culleton <john@wexfordpress.com>wrote:

> On Friday 26 September 2008 02:45:14 pm luigi scarso wrote:
>
> > maybe gs is too old.
> > you can try with 8.61 or  8.62  or 8.63 (and cross the fingers ...)
>
> I downloaded ghostscript 8.63 but the pdf2ps  error persists. but the
> error goes away if I uses an earlier version of context, namely:
> TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
> (tetex distribution.)
> Therefore the problem lies in the recent Context I have been using,
> and not in ghostscript nor in my code.

Unfortunatly, I'm not sure about this.
During these years I have discover bugs in pdftex/luatex but also in
ghostoscript too;
really, it seems that I have found  another one this week in  gs 8.63, but
not in gs8.62
pdf spec. gs, luatex/context mkiv are moving target;
three year ago the situation was a bit more stable.

-- 
luigi

PS
Do you cross the fingers ?

[-- Attachment #1.2: Type: text/html, Size: 1333 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 21:29   ` John Culleton
  2008-09-26 21:47     ` luigi scarso
@ 2008-09-26 21:53     ` Taco Hoekwater
  2008-09-26 22:15       ` luigi scarso
  2008-09-26 23:10       ` John Culleton
  1 sibling, 2 replies; 9+ messages in thread
From: Taco Hoekwater @ 2008-09-26 21:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi John,

John Culleton wrote:
> Therefore the problem lies in the recent Context I have been using, 
> and not in ghostscript nor in my code. 

I am fairly certain the bug will also go away if you start your new 
context documents with

         \pdfobjcompresslevel=0
or	
	\pdfminorversion=4

as that automatically suppresses object compression, the number one
cause of ghostscript issues with newer pdf files.

Best wishes,
Taco
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 21:53     ` Taco Hoekwater
@ 2008-09-26 22:15       ` luigi scarso
  2008-09-26 23:10       ` John Culleton
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2008-09-26 22:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1129 bytes --]

On Fri, Sep 26, 2008 at 11:53 PM, Taco Hoekwater <taco@elvenkind.com> wrote:

>
> Hi John,
>
> John Culleton wrote:
> > Therefore the problem lies in the recent Context I have been using,
> > and not in ghostscript nor in my code.
>
> I am fairly certain the bug will also go away if you start your new
> context documents with
>
>         \pdfobjcompresslevel=0
> or
>        \pdfminorversion=4
>
\pdfminorversion=4
solve my problems with ghostscript at least from 2005;
from  8.62, gs has some problems with fonts and rotate last page 90
clockwise
or counter clockwise with some pdf .
gs 8.63 works only with
\pdfobjcompresslevel=0
(I mean, same problems of gs 8.62.)


> as that automatically suppresses object compression, the number one
> cause of ghostscript issues with newer pdf files.
>
Not only with pdf, even in compilation.
Starting from 8.62
I 'm not able to build libgs from source tree because there are some
binaries that do not compile.
I must compile  ghostpdl, take these intermediary binaries  (echogs, I
believe, and some others)
put them into ghostscript tree and recompile.

Funny, after all.



-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1766 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 21:53     ` Taco Hoekwater
  2008-09-26 22:15       ` luigi scarso
@ 2008-09-26 23:10       ` John Culleton
  2008-09-26 23:49         ` John Culleton
  1 sibling, 1 reply; 9+ messages in thread
From: John Culleton @ 2008-09-26 23:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Friday 26 September 2008 05:53:59 pm Taco Hoekwater wrote:
> Hi John,
>
> John Culleton wrote:
> > Therefore the problem lies in the recent Context I have been
> > using, and not in ghostscript nor in my code.
>
> I am fairly certain the bug will also go away if you start your new
> context documents with
>
>          \pdfobjcompresslevel=0
> or
> 	\pdfminorversion=4
>
> as that automatically suppresses object compression, the number one
> cause of ghostscript issues with newer pdf files.
>
> Best wishes,

Bingo! Now I must try it with my original file and see if the other 
person I have mentioned still has trouble with reading the pdf I 
create.

Thanks as always for the education. 
-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 23:10       ` John Culleton
@ 2008-09-26 23:49         ` John Culleton
  2008-09-27  7:30           ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: John Culleton @ 2008-09-26 23:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Friday 26 September 2008 07:10:17 pm John Culleton wrote:
> On Friday 26 September 2008 05:53:59 pm Taco Hoekwater wrote:
> > Hi John,
> >
> > John Culleton wrote:
> > > Therefore the problem lies in the recent Context I have been
> > > using, and not in ghostscript nor in my code.
> >
> > I am fairly certain the bug will also go away if you start your
> > new context documents with
> >
> >          \pdfobjcompresslevel=0
> > or
> > 	\pdfminorversion=4

It turns out that the OP was using Acrobat 5, so it all fits together. 

Does the same command work with plain pdftex?

-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Flaky pdf file.
  2008-09-26 23:49         ` John Culleton
@ 2008-09-27  7:30           ` Taco Hoekwater
  0 siblings, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2008-09-27  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

John Culleton wrote:
>>>
>>>          \pdfobjcompresslevel=0
>>> or
>>> 	\pdfminorversion=4
> 
> It turns out that the OP was using Acrobat 5, so it all fits together. 
> 
> Does the same command work with plain pdftex?

It should, both commands are pdftex primitives.

Best wishes,
Taco



___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-27  7:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-26 18:00 Flaky pdf file John Culleton
2008-09-26 18:45 ` luigi scarso
2008-09-26 21:29   ` John Culleton
2008-09-26 21:47     ` luigi scarso
2008-09-26 21:53     ` Taco Hoekwater
2008-09-26 22:15       ` luigi scarso
2008-09-26 23:10       ` John Culleton
2008-09-26 23:49         ` John Culleton
2008-09-27  7:30           ` Taco Hoekwater

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).