ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* imposition for a pdf file
@ 2005-03-16  2:33 Ciro A. Soto
  2005-03-16  8:09 ` luigi.scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Ciro A. Soto @ 2005-03-16  2:33 UTC (permalink / raw)


I have a pdf file with 660 letter-size pages.
I would like to save toner in my printer by
printing 2 or 4 pages in one single sheet of paper.

Is it possible to do this with context?
or any other alternative?

Remember, I don't have the source file, only the pdf
file.

thank you

Ciro

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

* Re: imposition for a pdf file
  2005-03-16  2:33 imposition for a pdf file Ciro A. Soto
@ 2005-03-16  8:09 ` luigi.scarso
  2005-03-16  8:58   ` Wolfgang Zillig
                     ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: luigi.scarso @ 2005-03-16  8:09 UTC (permalink / raw)


[-- Attachment #1: Type: text/html, Size: 2426 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: imposition for a pdf file
  2005-03-16  8:09 ` luigi.scarso
@ 2005-03-16  8:58   ` Wolfgang Zillig
  2005-03-16  9:02   ` Hans Hagen
  2005-03-17  8:44   ` Albrecht Kauffmann
  2 siblings, 0 replies; 13+ messages in thread
From: Wolfgang Zillig @ 2005-03-16  8:58 UTC (permalink / raw)


I think something link

  texexec --pdfarra --noduplex --paper=A5A4 --print=2SIDE yourdocument.pdf

should work. There is more information about in the the manual for texexec 
www.pragma-ade.com/general/manuals/mtexexec.pdf

Wolfgang



luigi.scarso schrieb:
> Ciro A. Soto wrote:
> 
>>I have a pdf file with 660 letter-size pages.
>>I would like to save toner in my printer by
>>printing 2 or 4 pages in one single sheet of paper.
>>
>>Is it possible to do this with context?
>>or any other alternative?
>>
>>Remember, I don't have the source file, only the pdf
>>file.
>>
>>thank you
>>
>>Ciro
>>
>>
>>_______________________________________________
>>ntg-context mailing list
>>ntg-context@ntg.nl
>>http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>  
>>
> As usually, not a direct answer...
> 
> Play with these script
> %%
> %% save it as test.tex
> %%
> \setupcolors[state=start]
> \starttext
> \dorecurse{660}%
> {\startTEXpage[width=3cm,height=2cm]
> \vbox to \vsize{\vss
> \hbox to 
> \hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss} 
> \vss}
> \stopTEXpage}
> \stoptext
> 
> %%
> %% save as my-imp.tex
> %%
> %% \setuplayout here
> \starttext
> \centerline{%
> \externalfigure[test][page=1]
> \externalfigure[test][page=3]
> \externalfigure[test][page=5]
> \externalfigure[test][page=7]
> \externalfigure[test][page=9]
> \externalfigure[test][page=11]
> }
> \blank[1cm]
> \centerline{%
> \externalfigure[test][page=2]
> \externalfigure[test][page=4]
> \externalfigure[test][page=6]
> \externalfigure[test][page=8]
> \externalfigure[test][page=10]
> \externalfigure[test][page=12]
> }
> \stoptext
> 
> (you can create my-imp.tex by a script and choosing the appropriate number
> for page=...., also use \setuplayout etc..)
> 
> Also look for  \setuparranging.
> 
> luigi
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: imposition for a pdf file
  2005-03-16  8:09 ` luigi.scarso
  2005-03-16  8:58   ` Wolfgang Zillig
@ 2005-03-16  9:02   ` Hans Hagen
  2005-03-17  8:44   ` Albrecht Kauffmann
  2 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2005-03-16  9:02 UTC (permalink / raw)


luigi.scarso wrote:
> Ciro A. Soto wrote:
> 
>>I have a pdf file with 660 letter-size pages.
>>I would like to save toner in my printer by
>>printing 2 or 4 pages in one single sheet of paper.
>>
>>Is it possible to do this with context?
>>or any other alternative?
>>
>>Remember, I don't have the source file, only the pdf
>>file.
>>
>>thank you
>>
>>Ciro

texexec --pdf --pdfcomb --comb=2*2 manypages.pdf

>>_______________________________________________
>>ntg-context mailing list
>>ntg-context@ntg.nl
>>http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>  
>>
> As usually, not a direct answer...
> 
> Play with these script
> %%
> %% save it as test.tex
> %%
> \setupcolors[state=start]
> \starttext
> \dorecurse{660}%
> {\startTEXpage[width=3cm,height=2cm]
> \vbox to \vsize{\vss
> \hbox to 
> \hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss} 
> \vss}
> \stopTEXpage}
> \stoptext
> 
> %%
> %% save as my-imp.tex
> %%
> %% \setuplayout here
> \starttext
> \centerline{%
> \externalfigure[test][page=1]
> \externalfigure[test][page=3]
> \externalfigure[test][page=5]
> \externalfigure[test][page=7]
> \externalfigure[test][page=9]
> \externalfigure[test][page=11]
> }
> \blank[1cm]
> \centerline{%
> \externalfigure[test][page=2]
> \externalfigure[test][page=4]
> \externalfigure[test][page=6]
> \externalfigure[test][page=8]
> \externalfigure[test][page=10]
> \externalfigure[test][page=12]
> }
> \stoptext
> 
> (you can create my-imp.tex by a script and choosing the appropriate number
> for page=...., also use \setuplayout etc..)
> 
> Also look for  \setuparranging.
> 
> luigi
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


-- 

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

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

* Re: imposition for a pdf file
  2005-03-16  8:09 ` luigi.scarso
  2005-03-16  8:58   ` Wolfgang Zillig
  2005-03-16  9:02   ` Hans Hagen
@ 2005-03-17  8:44   ` Albrecht Kauffmann
  2 siblings, 0 replies; 13+ messages in thread
From: Albrecht Kauffmann @ 2005-03-17  8:44 UTC (permalink / raw)


Multivalent has a pdf-tool for arranging some pages at one printing page.

Greetings
Albrecht


On Wed, 16 Mar 2005, luigi.scarso wrote:

> Ciro A. Soto wrote:
>
>  I have a pdf file with 660 letter-size pages.
> I would like to save toner in my printer by
> printing 2 or 4 pages in one single sheet of paper.
>
> Is it possible to do this with context?
> or any other alternative?
>
> Remember, I don't have the source file, only the pdf
> file.
>
> thank you
>
> Ciro
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>
> As usually, not a direct answer...
>
> Play with these script
> %%
> %% save it as test.tex
> %%
> \setupcolors[state=start]
> \starttext
> \dorecurse{660}%
> {\startTEXpage[width=3cm,height=2cm]
> \vbox to \vsize{\vss
> \hbox to\hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolo
> r=green]{p.\tfd\recurselevel}\hss} \vss}
> \stopTEXpage}
> \stoptext
>
> %%
> %% save as my-imp.tex
> %%
> %% \setuplayout here
> \starttext
> \centerline{%
> \externalfigure[test][page=1]
> \externalfigure[test][page=3]
> \externalfigure[test][page=5]
> \externalfigure[test][page=7]
> \externalfigure[test][page=9]
> \externalfigure[test][page=11]
> }
> \blank[1cm]
> \centerline{%
> \externalfigure[test][page=2]
> \externalfigure[test][page=4]
> \externalfigure[test][page=6]
> \externalfigure[test][page=8]
> \externalfigure[test][page=10]
> \externalfigure[test][page=12]
> }
> \stoptext
>
> (you can create my-imp.tex by a script and choosing the appropriate
> number
> for page=...., also use \setuplayout etc..)
>
> Also look for  \setuparranging.
>
> luigi
>
>
>
>

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

* Re: imposition for a pdf file
  2005-03-17 10:44     ` luigi.scarso
@ 2005-03-17 13:15       ` Hans Hagen
  0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2005-03-17 13:15 UTC (permalink / raw)


luigi.scarso wrote:

> I have a problem about stickers and imposition;

there's a special x/y one for stickers

> Yes, syst-ext.  and others syst-.
> I try to made a pdf-collection of useful module like syst-*, page-* 
> core-box, supp-box, some module for fonts (open issue: turkish....), etc.
> (last entry: \startsetups in core-new..)
> 
> In my head, i call this collection
> "context-foundation: core macros for context programmers"

this is what taco/patrick call the api (so ... how about joining the api-team)

> If you have some suggestions..... |)
> 
> Also, i know some books/resources for tex programmers:
> (always The Book first :) )

indeed, the more you tex, the more you find in it

> texbytopic.pdf,

those are the ones that i use (although i haven't touched them for a long time 
now which may be a bad sign)

> cseq.html,

that's indeed a nice one

> The Advanced TEXBook (seem good; maybe i will buy it)

this is a g ood book as well; (david gave a nice few days course for the ntg 
long ago so i also have the preprint somewhere)

> etex-man.pdf
> Again, if you have some others...

Beginner's Book of TEX
Seroul, Raymond, Levy, Silvio
1st ed. 1991. Corr. 3rd printing, 1995, XII, 284 pp., Softcover
ISBN: 0-387-97562-4

is a nice one (looking at the cover on the springer page it looks like i have an 
old copy);

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

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

* Re: imposition for a pdf file
  2005-03-16 13:45   ` Hans Hagen
@ 2005-03-17 10:44     ` luigi.scarso
  2005-03-17 13:15       ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: luigi.scarso @ 2005-03-17 10:44 UTC (permalink / raw)


Hans Hagen wrote:

>
> in page-imp are some additional inclusion macros -)
>
Yes, i have seen some of them.
I have a problem about stickers and imposition;
i try to use/modify some of this macros for pagearrangement, but i 
consume all
tex memory.
Actually i have found a dirty solution using perl and sort; as soon as 
possible
i will post some code.

> shorter
>
> \centerline
>   {\dostepwiserecurse{1}{11}{2}
>      {\expanded{\externalfigure[test][page=\recurselevel]}}}

Yes, syst-ext.  and others syst-.
I try to made a pdf-collection of useful module like syst-*, page-* 
core-box, supp-box, some module for fonts (open issue: turkish....), etc.
(last entry: \startsetups in core-new..)

In my head, i call this collection
"context-foundation: core macros for context programmers"

If you have some suggestions..... |)

Also, i know some books/resources for tex programmers:
(always The Book first :) )
texbytopic.pdf,
cseq.html,
The Advanced TEXBook (seem good; maybe i will buy it)
etex-man.pdf
Again, if you have some others...


luigi

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

* Re: imposition for a pdf file
  2005-03-16 23:47 Ciro A. Soto
@ 2005-03-17  7:21 ` luigi.scarso
  0 siblings, 0 replies; 13+ messages in thread
From: luigi.scarso @ 2005-03-17  7:21 UTC (permalink / raw)


Ciro A. Soto wrote:

>I tried Hans' approach. It works fine, but
>  
>
My "approach" shows a (my) way to manipulate pages
from a source pdf; Hans gives you the exact solutions for your problem.
I hope you have found both useful.

>somehow the pdf file with the 2*2 pages
>is corrupted since it does not print well, mostly
>garbage.
>It looks good on screen though.
>I printed one page of the original pdf
>and it is fine. So the problem happens in
>the imposition step.
>any suggestion?
>thank you
>ciro
>
>  
>
Yes, it's strange; without the pdf i can't give you more help.

luigi.

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

* Re: imposition for a pdf file
@ 2005-03-16 23:47 Ciro A. Soto
  2005-03-17  7:21 ` luigi.scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Ciro A. Soto @ 2005-03-16 23:47 UTC (permalink / raw)


I tried Hans' approach. It works fine, but
somehow the pdf file with the 2*2 pages
is corrupted since it does not print well, mostly
garbage.
It looks good on screen though.
I printed one page of the original pdf
and it is fine. So the problem happens in
the imposition step.
any suggestion?
thank you
ciro


--- Hans Hagen <pragma@wxs.nl> wrote:
> luigi.scarso wrote:
> > Sorry ciro, but i like write tex code.
> > 
> >    1. save following code as test.tex
> 
> in page-imp are some additional inclusion macros -)
> 
> > \centerline{%
> > \externalfigure[test][page=1]
> > \externalfigure[test][page=3]
> > \externalfigure[test][page=5]
> > \externalfigure[test][page=7]
> > \externalfigure[test][page=9]
> > \externalfigure[test][page=11]
> > }
> 
> shorter
> 
> \centerline
>    {\dostepwiserecurse{1}{11}{2}
>      
>
{\expanded{\externalfigure[test][page=\recurselevel]}}}
> 
> 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
>
-----------------------------------------------------------------
> 
> 

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

* Re: imposition for a pdf file
  2005-03-16 13:22 ` luigi.scarso
@ 2005-03-16 13:45   ` Hans Hagen
  2005-03-17 10:44     ` luigi.scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2005-03-16 13:45 UTC (permalink / raw)


luigi.scarso wrote:
> Sorry ciro, but i like write tex code.
> 
>    1. save following code as test.tex

in page-imp are some additional inclusion macros -)

> \centerline{%
> \externalfigure[test][page=1]
> \externalfigure[test][page=3]
> \externalfigure[test][page=5]
> \externalfigure[test][page=7]
> \externalfigure[test][page=9]
> \externalfigure[test][page=11]
> }

shorter

\centerline
   {\dostepwiserecurse{1}{11}{2}
      {\expanded{\externalfigure[test][page=\recurselevel]}}}

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

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

* Re: imposition for a pdf file
  2005-03-16 12:48 Ciro A. Soto
@ 2005-03-16 13:22 ` luigi.scarso
  2005-03-16 13:45   ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: luigi.scarso @ 2005-03-16 13:22 UTC (permalink / raw)


[-- Attachment #1: Type: text/html, Size: 2156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: imposition for a pdf file
@ 2005-03-16 12:52 Ciro A. Soto
  0 siblings, 0 replies; 13+ messages in thread
From: Ciro A. Soto @ 2005-03-16 12:52 UTC (permalink / raw)


Thank you. This should work.
Ciro
--- Hans Hagen <pragma@wxs.nl> wrote:
> luigi.scarso wrote:
> > Ciro A. Soto wrote:
> > 
> >>I have a pdf file with 660 letter-size pages.
> >>I would like to save toner in my printer by
> >>printing 2 or 4 pages in one single sheet of
> paper.
> >>
> >>Is it possible to do this with context?
> >>or any other alternative?
> >>
> >>Remember, I don't have the source file, only the
> pdf
> >>file.
> >>
> >>thank you
> >>
> >>Ciro
> 
> texexec --pdf --pdfcomb --comb=2*2 manypages.pdf
> 
> >>_______________________________________________
> >>ntg-context mailing list
> >>ntg-context@ntg.nl
> >>http://www.ntg.nl/mailman/listinfo/ntg-context
> >>
> >>  
> >>
> > As usually, not a direct answer...
> > 
> > Play with these script
> > %%
> > %% save it as test.tex
> > %%
> > \setupcolors[state=start]
> > \starttext
> > \dorecurse{660}%
> > {\startTEXpage[width=3cm,height=2cm]
> > \vbox to \vsize{\vss
> > \hbox to 
> >
>
\hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss}
> 
> > \vss}
> > \stopTEXpage}
> > \stoptext
> > 
> > %%
> > %% save as my-imp.tex
> > %%
> > %% \setuplayout here
> > \starttext
> > \centerline{%
> > \externalfigure[test][page=1]
> > \externalfigure[test][page=3]
> > \externalfigure[test][page=5]
> > \externalfigure[test][page=7]
> > \externalfigure[test][page=9]
> > \externalfigure[test][page=11]
> > }
> > \blank[1cm]
> > \centerline{%
> > \externalfigure[test][page=2]
> > \externalfigure[test][page=4]
> > \externalfigure[test][page=6]
> > \externalfigure[test][page=8]
> > \externalfigure[test][page=10]
> > \externalfigure[test][page=12]
> > }
> > \stoptext
> > 
> > (you can create my-imp.tex by a script and
> choosing the appropriate number
> > for page=...., also use \setuplayout etc..)
> > 
> > Also look for  \setuparranging.
> > 
> > luigi
> > 
> > 
> > 
> >
>
------------------------------------------------------------------------
> > 
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 
> -- 
> 
>
-----------------------------------------------------------------
>                                            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
>
-----------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

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

* Re: imposition for a pdf file
@ 2005-03-16 12:48 Ciro A. Soto
  2005-03-16 13:22 ` luigi.scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Ciro A. Soto @ 2005-03-16 12:48 UTC (permalink / raw)


Thank you Luigi,
but where is the pdf file input in your instructions?
remember, i don't have the tex file, only the pdf
file.
ciro


--- "luigi.scarso" <luigi.scarso@logosrl.it> wrote:

---------------------------------
    Ciro A. Soto wrote:  
I have a pdf file with 660 letter-size pages.I would
like to save toner in my printer byprinting 2 or 4
pages in one single sheet of paper.Is it possible to
do this with context?or any other
alternative?Remember, I don't have the source file,
only the pdffile.thank
youCiro_______________________________________________ntg-context
mailing
listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
 
As usually, not a direct answer...

Play with these script
%%
%% save it as test.tex
%%
\setupcolors[state=start]
\starttext
\dorecurse{660}%
{\startTEXpage[width=3cm,height=2cm]
\vbox to \vsize{\vss
\hbox
to\hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss}\vss}
\stopTEXpage}
\stoptext

%%
%% save as my-imp.tex
%%
%% \setuplayout here
\starttext
\centerline{%
\externalfigure[test][page=1]
\externalfigure[test][page=3]
\externalfigure[test][page=5]
\externalfigure[test][page=7]
\externalfigure[test][page=9]
\externalfigure[test][page=11]
}
\blank[1cm]
\centerline{%
\externalfigure[test][page=2]
\externalfigure[test][page=4]
\externalfigure[test][page=6]
\externalfigure[test][page=8]
\externalfigure[test][page=10]
\externalfigure[test][page=12]
}
\stoptext

(you can create my-imp.tex by a script and choosing
theappropriate number
for page=...., also use \setuplayoutetc..)

Also look for  \setuparranging.

luigi


> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

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

end of thread, other threads:[~2005-03-17 13:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-16  2:33 imposition for a pdf file Ciro A. Soto
2005-03-16  8:09 ` luigi.scarso
2005-03-16  8:58   ` Wolfgang Zillig
2005-03-16  9:02   ` Hans Hagen
2005-03-17  8:44   ` Albrecht Kauffmann
2005-03-16 12:48 Ciro A. Soto
2005-03-16 13:22 ` luigi.scarso
2005-03-16 13:45   ` Hans Hagen
2005-03-17 10:44     ` luigi.scarso
2005-03-17 13:15       ` Hans Hagen
2005-03-16 12:52 Ciro A. Soto
2005-03-16 23:47 Ciro A. Soto
2005-03-17  7:21 ` luigi.scarso

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