ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* inserting other pdf's
@ 2003-09-30 19:55 free
  2003-09-30 20:13 ` Willi Egger
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: free @ 2003-09-30 19:55 UTC (permalink / raw)


Hi,
I want to Know if it's possible to add others pdf files to a former one 
resulting from a ConteXt compilation.

It's because I make technical drawings with Autocad wich are printed (at 
the right scale !) to a pdf file (By Distiller or Amunyi converter), and I 
want those in more general (text+drawings) documents.

One solution is openoffice, but it's not the right place!

Thanks a lot,
olivier Turlier

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

* Re: inserting other pdf's
  2003-09-30 19:55 free
@ 2003-09-30 20:13 ` Willi Egger
  2003-09-30 20:27 ` Hans Hagen
  2003-09-30 20:52 ` Michael Hallgren
  2 siblings, 0 replies; 12+ messages in thread
From: Willi Egger @ 2003-09-30 20:13 UTC (permalink / raw)


Hi Olivier,

>Olivier wrote:
Subject: [NTG-context] inserting other pdf's


> Hi,
> I want to Know if it's possible to add others pdf files to a former one
> resulting from a ConteXt compilation.
>
> It's because I make technical drawings with Autocad wich are printed (at
> the right scale !) to a pdf file (By Distiller or Amunyi converter), and I
> want those in more general (text+drawings) documents.
>
> One solution is openoffice, but it's not the right place!
>
> Thanks a lot,
> olivier Turlier

Combining pdf pages is possible with the texexec perl script. Try to see the
options with texexec --help|more
Not easy but extremely strong!

Willi

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

* Re: inserting other pdf's
  2003-09-30 19:55 free
  2003-09-30 20:13 ` Willi Egger
@ 2003-09-30 20:27 ` Hans Hagen
  2003-09-30 20:52 ` Michael Hallgren
  2 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2003-09-30 20:27 UTC (permalink / raw)


At 21:55 30/09/2003 +0200, you wrote:
>Hi,
>I want to Know if it's possible to add others pdf files to a former one 
>resulting from a ConteXt compilation.
>
>It's because I make technical drawings with Autocad wich are printed (at 
>the right scale !) to a pdf file (By Distiller or Amunyi converter), and I 
>want those in more general (text+drawings) documents.

pdftex (and therefore context) can include pdf's and even specific pages 
from a pdf:

% output=pdftex

\starttext

\externalfigure[somefile.pdf][ppage=2]

\stoptext


-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* RE: inserting other pdf's
  2003-09-30 19:55 free
  2003-09-30 20:13 ` Willi Egger
  2003-09-30 20:27 ` Hans Hagen
@ 2003-09-30 20:52 ` Michael Hallgren
  2 siblings, 0 replies; 12+ messages in thread
From: Michael Hallgren @ 2003-09-30 20:52 UTC (permalink / raw)


pdf[la]tex's likely your friend,

mh

> -----Message d'origine-----
> De : ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]De la
> part de free
> Envoyé : mardi 30 septembre 2003 21:56
> À : ntg-context@ntg.nl
> Objet : [NTG-context] inserting other pdf's
>
>
> Hi,
> I want to Know if it's possible to add others pdf files to a former one
> resulting from a ConteXt compilation.
>
> It's because I make technical drawings with Autocad wich are printed (at
> the right scale !) to a pdf file (By Distiller or Amunyi
> converter), and I
> want those in more general (text+drawings) documents.
>
> One solution is openoffice, but it's not the right place!
>
> Thanks a lot,
> olivier Turlier
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

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

* Re: inserting other pdf's
@ 2003-10-01  8:48 Steffen Wolfrum
  2003-10-01  9:23 ` Mari Voipio
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Steffen Wolfrum @ 2003-10-01  8:48 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> wrote:

> At 21:55 30/09/2003 +0200, you wrote:
> >Hi,
> >I want to Know if it's possible to add others pdf files to a former one 
> >resulting from a ConteXt compilation.
> >
> >It's because I make technical drawings with Autocad wich are printed (at 
> >the right scale !) to a pdf file (By Distiller or Amunyi converter), and I 
> >want those in more general (text+drawings) documents.
> 
> pdftex (and therefore context) can include pdf's and even specific pages 
> from a pdf:
> 
> % output=pdftex
> 
> \starttext
> 
> \externalfigure[somefile.pdf][ppage=2]
> 
> \stoptext


When I tried it it looks to me as these pages were placed like figures - sure, externalfigure o)

But is there also a command to *add* other pdfs? 
Given that they are the same size.

Not certain pages, but the whole thing just stuck together.

Do you have an idea?

Steffen

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

* Re: Re: inserting other pdf's
  2003-10-01  8:48 inserting other pdf's Steffen Wolfrum
@ 2003-10-01  9:23 ` Mari Voipio
  2003-10-01 10:31   ` Hans Hagen
  2003-10-01 10:32 ` Hans Hagen
  2003-10-01 11:01 ` Patrick Gundlach
  2 siblings, 1 reply; 12+ messages in thread
From: Mari Voipio @ 2003-10-01  9:23 UTC (permalink / raw)


On Wed, 1 Oct 2003, Steffen Wolfrum wrote:

> > % output=pdftex
> > \starttext
> > \externalfigure[somefile.pdf]
> > \stoptext
>
>
> When I tried it it looks to me as these pages were placed like figures -
> sure, externalfigure o)

Unfortunately, they are. Been there, done that, fought two hours with this
yesterday and got in the best case adequate results by cropping the pdf
page in Acrobat first and then inserting as externalfigure...

I can do this with Adobe Acrobat (as we really have a licence for the full
thing) and another (more affordable) option for Windows users would be
pdfedit995 (<http://www.pdfedit995.com/>), but I really would like to
insert the pages in ConTeXt to make sure that I don't forget the insertion
process.

Brief experiments with texexec didn't seem to work and even the help says
"--pdfcombine  combine pages to one page", which is not what I want to do
(besides, as I'm compiling my file out of Emacs with a keyboard command,
I'd rather not play with texexec at all).


The command in Acrobat is Document | Insert Pages - I've tried to tell
myself that there must be an easy way to duplicate this somewhere in the
ConTeXt file, but may be there isn't? If not, this is HIGH on my wishlist.
I, too, have full page AutoCad originated pdf files to insert...


mari

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

* Re: Re: inserting other pdf's
  2003-10-01  9:23 ` Mari Voipio
@ 2003-10-01 10:31   ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2003-10-01 10:31 UTC (permalink / raw)


At 12:23 01/10/2003 +0300, you wrote:
>On Wed, 1 Oct 2003, Steffen Wolfrum wrote:
>
> > > % output=pdftex
> > > \starttext
> > > \externalfigure[somefile.pdf]
> > > \stoptext
> >
> >
> > When I tried it it looks to me as these pages were placed like figures -
> > sure, externalfigure o)
>
>Unfortunately, they are. Been there, done that, fought two hours with this
>yesterday and got in the best case adequate results by cropping the pdf
>page in Acrobat first and then inserting as externalfigure...
>
>I can do this with Adobe Acrobat (as we really have a licence for the full
>thing) and another (more affordable) option for Windows users would be
>pdfedit995 (<http://www.pdfedit995.com/>), but I really would like to
>insert the pages in ConTeXt to make sure that I don't forget the insertion
>process.
>
>Brief experiments with texexec didn't seem to work and even the help says
>"--pdfcombine  combine pages to one page", which is not what I want to do
>(besides, as I'm compiling my file out of Emacs with a keyboard command,
>I'd rather not play with texexec at all).
>
>
>The command in Acrobat is Document | Insert Pages - I've tried to tell
>myself that there must be an easy way to duplicate this somewhere in the
>ConTeXt file, but may be there isn't? If not, this is HIGH on my wishlist.
>I, too, have full page AutoCad originated pdf files to insert...

\slicepages
   [somefile.pdf]
   [n=0,                        % triggers full page clipping
    voffset=1in,
    height=23.55cm,
    width=22cm,
    offset=\dimexpr(-1in- 2pt)]
   [offset=\dimexpr(-1in+19pt)]

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: Re: inserting other pdf's
  2003-10-01  8:48 inserting other pdf's Steffen Wolfrum
  2003-10-01  9:23 ` Mari Voipio
@ 2003-10-01 10:32 ` Hans Hagen
  2003-10-01 11:21   ` Jens-Uwe Morawski
  2003-10-01 11:01 ` Patrick Gundlach
  2 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2003-10-01 10:32 UTC (permalink / raw)


At 10:48 01/10/2003 +0200, you wrote:

>But is there also a command to *add* other pdfs?
>Given that they are the same size.

\startTEXpage

\externalfigure[something.pdf]

\stopTEXpage

or shorter:

\startpagefigure[...][...] \stoppagefigure

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: inserting other pdf's
  2003-10-01  8:48 inserting other pdf's Steffen Wolfrum
  2003-10-01  9:23 ` Mari Voipio
  2003-10-01 10:32 ` Hans Hagen
@ 2003-10-01 11:01 ` Patrick Gundlach
  2 siblings, 0 replies; 12+ messages in thread
From: Patrick Gundlach @ 2003-10-01 11:01 UTC (permalink / raw)


Hi,

Steffen Wolfrum <st.wolfrum@estfiles.de> writes:

> When I tried it it looks to me as these pages were placed like
> figures - sure, externalfigure o)
>
> But is there also a command to *add* other pdfs? 
> Given that they are the same size.

all the figures are the same size  or the figures the same size as
the document?

If you know the size of the figures, you can of course switch to
another papersize within the current TeX document and use
\externalfigure then.

> Not certain pages, but the whole thing just stuck together.

\copypages[filename] (+optional [a=b], see \externalfigure)

%crazy:
\starttext
\setuppagenumbering[location=]
\copypages[tufte]
\stoptext


-- 
You are your own rainbow!

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

* Re: Re: inserting other pdf's
  2003-10-01 10:32 ` Hans Hagen
@ 2003-10-01 11:21   ` Jens-Uwe Morawski
  2003-10-01 19:59     ` Patrick Gundlach
  0 siblings, 1 reply; 12+ messages in thread
From: Jens-Uwe Morawski @ 2003-10-01 11:21 UTC (permalink / raw)


On Wed, 01 Oct 2003 12:32:47 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 10:48 01/10/2003 +0200, you wrote:
> 
> >But is there also a command to *add* other pdfs?
> >Given that they are the same size.
> 
> \startTEXpage
> 
> \externalfigure[something.pdf]
> 
> \stopTEXpage
> 
> or shorter:
> 
> \startpagefigure[...][...] \stoppagefigure

what is the meaning of the [...]

TIA.

Jens

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

* Re: inserting other pdf's
  2003-10-01 11:21   ` Jens-Uwe Morawski
@ 2003-10-01 19:59     ` Patrick Gundlach
  0 siblings, 0 replies; 12+ messages in thread
From: Patrick Gundlach @ 2003-10-01 19:59 UTC (permalink / raw)


Hi,

>> \startpagefigure[...][...] \stoppagefigure
>
> what is the meaning of the [...]

\startpagefigure[.#1.][.#2.] \stoppagefigure

\externalfigure[#1][#2]

Patrick
-- 
use the source, Luke ;-)

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

* Re: Re: inserting other pdf's
  2003-10-01 22:22 Steffen Wolfrum
@ 2003-10-02  9:48 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2003-10-02  9:48 UTC (permalink / raw)


At 00:22 02/10/2003, you wrote:
>Patrick Gundlach <pg@levana.de> wrote:
>
> > Hi,
> >
> > >> \startpagefigure[...][...] \stoppagefigure
> > >
> > > what is the meaning of the [...]
> >
> > \startpagefigure[.#1.][.#2.] \stoppagefigure
>
>
>So in order to insert a whole PDF do I have to use something like
>
>\startpagefigure[appleblossom][page=1]\stoppagefigure
>\startpagefigure[appleblossom][page=2]\stoppagefigure
>\startpagefigure[appleblossom][page=3]\stoppagefigure
>\startpagefigure[appleblossom][page=4]\stoppagefigure

there is:

\insertpages[file.pdf][1,3][n=30,width=18cm]

(another challenge for patrick)

Hans  

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

end of thread, other threads:[~2003-10-02  9:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01  8:48 inserting other pdf's Steffen Wolfrum
2003-10-01  9:23 ` Mari Voipio
2003-10-01 10:31   ` Hans Hagen
2003-10-01 10:32 ` Hans Hagen
2003-10-01 11:21   ` Jens-Uwe Morawski
2003-10-01 19:59     ` Patrick Gundlach
2003-10-01 11:01 ` Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2003-10-01 22:22 Steffen Wolfrum
2003-10-02  9:48 ` Hans Hagen
2003-09-30 19:55 free
2003-09-30 20:13 ` Willi Egger
2003-09-30 20:27 ` Hans Hagen
2003-09-30 20:52 ` Michael Hallgren

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