ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: arranging pages with transpparency color
Date: Wed, 30 Jun 2004 15:37:53 +0200	[thread overview]
Message-ID: <40E2C231.7030604@wxs.nl> (raw)
In-Reply-To: <40E2AB88.8070301@seznam.cz>

Vit Zyka wrote:

> Hi Hans and others,
>
> there is a problem with arranging pages with transparency color. See 
> code:
> ------------------
> \setuppapersize[A5,landscape][A4]
> \setuparranging[2TOPSIDE]
>
> \setupcolors[state=start]
> \definecolor[tcBlack][s=0, t=.5, a=normal]
>
> \starttext
>   \switchtobodyfont[20pt]
>   \dorecurse{1}{Page \color[tcBlack]{\recurselevel}\page}%
>   \dorecurse{4}{Page \recurselevel\page}%
> \stoptext
> --------------------
> Acroread (win 6.0.1) is complaining on the resulting PDF obtaining by
>   texexec --arrange
> The message from AR is:
>   There was an error reading a page. There was a problem processing a
>   document(14).
> From a previous version of AR I obtained more informative message:
>   Could not find extended graphic state name Tr1
>
> Necessary conditions:
> 1) transparent color on at least one page
> 2) arranging pages on sheets
> 3) number of pages exceeds one sheet
>
> Observation:
> If do not use switch --arrange and compile the file two times the 
> error does not occure. (But the result is not correct due to missing 
> table of content etc.)
> It seems to me the problem is with managing transparen resources from 
> sheet to sheet.


The problem is that object numbers are different between the normal and 
the arranged run.  So, in this case you can best define a separate job 
for imposition:

\setuppapersize[A5,landscape][A4]
\setuparranging[2TOPSIDE]
\setuplayout[page]
\starttext
\insertpages[test.pdf][width=0pt]
\stoptext

Solutions are:

(1) split utility file into document and backend part (take some work)
(2) use forward refs (possible in latest pdftex, but i wait with using 
that till i can be sure that teh new versions are around)

and for the moment:

(3) define a separate job

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

      reply	other threads:[~2004-06-30 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-30 12:01 Vit Zyka
2004-06-30 13:37 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E2C231.7030604@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).