Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #675 > unrolled thread

Including the same EPS file multiple times in a PS

Started bykax@kax.org
First post2012-05-14 20:56 +0200
Last post2012-05-15 21:24 +0200
Articles 10 — 6 participants

Back to article view | Back to comp.lang.postscript


Contents

  Including the same EPS file multiple times in a PS kax@kax.org - 2012-05-14 20:56 +0200
    Re: Including the same EPS file multiple times in a PS rodd@panix.com (Rod Dorman) - 2012-05-14 19:03 +0000
      Re: Including the same EPS file multiple times in a PS Helge Blischke <h.blischke@acm.org> - 2012-05-14 21:31 +0200
      Re: Including the same EPS file multiple times in a PS kax@kax.org - 2012-05-14 21:59 +0200
        Re: Including the same EPS file multiple times in a PS bugbear <bugbear@trim_papermule.co.uk_trim> - 2012-05-15 09:52 +0100
        Re: Including the same EPS file multiple times in a PS Helge Blischke <h.blischke@acm.org> - 2012-05-15 10:52 +0200
          Re: Including the same EPS file multiple times in a PS Peter Davis <Peter.Davis@mathworks.com> - 2012-05-15 09:58 -0400
          Re: Including the same EPS file multiple times in a PS kax@kax.org - 2012-05-15 16:15 +0200
            Re: Including the same EPS file multiple times in a PS ken <ken@spamcop.net> - 2012-05-15 15:44 +0100
              Re: Including the same EPS file multiple times in a PS kax@kax.org - 2012-05-15 21:24 +0200

#675 — Including the same EPS file multiple times in a PS

Fromkax@kax.org
Date2012-05-14 20:56 +0200
SubjectIncluding the same EPS file multiple times in a PS
Message-ID<alpine.DEB.2.02.1205142054530.20582@lili-Inspiron-1525>
Hi,

I have an external big EPS file and I would like to use it many times
(with different clipping / rotation / etc.). What is the best way to
do that? Regards.

-- 
Kax

[toc] | [next] | [standalone]


#676

Fromrodd@panix.com (Rod Dorman)
Date2012-05-14 19:03 +0000
Message-ID<jorkuo$q6h$1@reader1.panix.com>
In reply to#675
In article <alpine.DEB.2.02.1205142054530.20582@lili-Inspiron-1525>,
 <kax@kax.org> wrote:
>I have an external big EPS file and I would like to use it many times
>(with different clipping / rotation / etc.). What is the best way to
>do that? Regards.

What is your definition of "the best way"?

The simplest is just insert it many times into the PostScript program.

-- 
					-- Rod --
rodd(at)polylogics(dot)com

[toc] | [prev] | [next] | [standalone]


#677

FromHelge Blischke <h.blischke@acm.org>
Date2012-05-14 21:31 +0200
Message-ID<a1d4s6Fb93U1@mid.individual.net>
In reply to#676
Rod Dorman wrote:

> In article <alpine.DEB.2.02.1205142054530.20582@lili-Inspiron-1525>,
>  <kax@kax.org> wrote:
>>I have an external big EPS file and I would like to use it many times
>>(with different clipping / rotation / etc.). What is the best way to
>>do that? Regards.
> 
> What is your definition of "the best way"?
> 
> The simplest is just insert it many times into the PostScript program.
> 

Provided your printer speaks PostScript level 3, your can wrap the EPS file 
into a procedure using the ReusableStreamDecode and SubFileDecode filters.
But be cautious about using of the currentfile operator within the EPS file.

Helge

[toc] | [prev] | [next] | [standalone]


#678

Fromkax@kax.org
Date2012-05-14 21:59 +0200
Message-ID<alpine.DEB.2.02.1205142153070.21271@lili-Inspiron-1525>
In reply to#676
On Mon, 14 May 2012, Rod Dorman wrote:
> What is your definition of "the best way"?

Sorry for that; I think I have to explain further what I want to do.

In fact I have a huge PS file (a big poster), and I want to make a PDF
booklet with A5 pages. Each of these A5 page should be a detail (scale=100%)
of the big poster. You may think to this project as an exploration of the
big poster. Once the big PS is ready, I would like to make my booklet
(either as a second PS file or a PDF file but anyway the final version
should be a PDF file, most certainly processed with ps2pdf), with something
like that:

   %Page: 19
   -2000 -1345 translate
   <magic command for doing everything>
   showpage
   %Page: 20
   -1224 -945 translate
   <magic command for doing everything>
   showpage

etc.

I thought it would be very easy, but I can't manage to do it.

Regards,

-- 
Kax

[toc] | [prev] | [next] | [standalone]


#680

Frombugbear <bugbear@trim_papermule.co.uk_trim>
Date2012-05-15 09:52 +0100
Message-ID<sJydna4RHrnRhC_SnZ2dnUVZ8qmdnZ2d@brightview.co.uk>
In reply to#678
kax@kax.org wrote:
> On Mon, 14 May 2012, Rod Dorman wrote:
>> What is your definition of "the best way"?
>
> Sorry for that; I think I have to explain further what I want to do.
>
> In fact I have a huge PS file (a big poster), and I want to make a PDF
> booklet with A5 pages. Each of these A5 page should be a detail (scale=100%)
> of the big poster. You may think to this project as an exploration of the
> big poster. Once the big PS is ready, I would like to make my booklet
> (either as a second PS file or a PDF file but anyway the final version
> should be a PDF file, most certainly processed with ps2pdf), with something
> like that:
>
> %Page: 19
> -2000 -1345 translate
> <magic command for doing everything>
> showpage
> %Page: 20
> -1224 -945 translate
> <magic command for doing everything>
> showpage
>
> etc.
>
> I thought it would be very easy, but I can't manage to do it.

Hmm. It's very easy in PDF, which has a feature aimed
with laser like precision at your requirment;

XObjects and the associated "Do" operator.

  BugBear

[toc] | [prev] | [next] | [standalone]


#681

FromHelge Blischke <h.blischke@acm.org>
Date2012-05-15 10:52 +0200
Message-ID<a1ejr6F6epU1@mid.individual.net>
In reply to#678
kax@kax.org wrote:

> On Mon, 14 May 2012, Rod Dorman wrote:
>> What is your definition of "the best way"?
> 
> Sorry for that; I think I have to explain further what I want to do.
> 
> In fact I have a huge PS file (a big poster), and I want to make a PDF
> booklet with A5 pages. Each of these A5 page should be a detail
> (scale=100%) of the big poster. You may think to this project as an
> exploration of the big poster. Once the big PS is ready, I would like to
> make my booklet (either as a second PS file or a PDF file but anyway the
> final version should be a PDF file, most certainly processed with ps2pdf),
> with something like that:
> 
>    %Page: 19
>    -2000 -1345 translate
>    <magic command for doing everything>
>    showpage
>    %Page: 20
>    -1224 -945 translate
>    <magic command for doing everything>
>    showpage
> 
> etc.
> 
> I thought it would be very easy, but I can't manage to do it.
> 
> Regards,
> 

Well, as you obviously are using Ghostscript, there is a simple solution:
store your EPS image(s) in an ordinary file and call it from within your 
PostScript job using the run operator, such as
(/somedirectory/filename)run

Helge

[toc] | [prev] | [next] | [standalone]


#683

FromPeter Davis <Peter.Davis@mathworks.com>
Date2012-05-15 09:58 -0400
Message-ID<jotndv$bbc$1@newscl01ah.mathworks.com>
In reply to#681
On 5/15/2012 4:52 AM, Helge Blischke wrote:
> kax@kax.org wrote:
>
>> On Mon, 14 May 2012, Rod Dorman wrote:
>>> What is your definition of "the best way"?
>>
>> Sorry for that; I think I have to explain further what I want to do.
>>
>> In fact I have a huge PS file (a big poster), and I want to make a PDF
>> booklet with A5 pages. Each of these A5 page should be a detail
>> (scale=100%) of the big poster. You may think to this project as an
>> exploration of the big poster. Once the big PS is ready, I would like to
>> make my booklet (either as a second PS file or a PDF file but anyway the
>> final version should be a PDF file, most certainly processed with ps2pdf),
>> with something like that:
>>
>>     %Page: 19
>>     -2000 -1345 translate
>>     <magic command for doing everything>
>>     showpage
>>     %Page: 20
>>     -1224 -945 translate
>>     <magic command for doing everything>
>>     showpage
>>
>> etc.
>>
>> I thought it would be very easy, but I can't manage to do it.
>>
>> Regards,
>>
>
> Well, as you obviously are using Ghostscript, there is a simple solution:
> store your EPS image(s) in an ordinary file and call it from within your
> PostScript job using the run operator, such as
> (/somedirectory/filename)run
>

You can also define a form which displays the EPS, and execute the form 
with various transforms.  *Some* PostScript interpreters will even 
attempt to cache the form so it can be reused without having to be 
re-interpreted.

-pd

[toc] | [prev] | [next] | [standalone]


#684

Fromkax@kax.org
Date2012-05-15 16:15 +0200
Message-ID<alpine.DEB.2.02.1205151613380.23597@lili-Inspiron-1525>
In reply to#681
On Tue, 15 May 2012, Helge Blischke wrote:
> Well, as you obviously are using Ghostscript, there is a simple solution:
> store your EPS image(s) in an ordinary file and call it from within your
> PostScript job using the run operator, such as
> (/somedirectory/filename)run

When I am trying to do that, I got some invalidefileaccess error
(the same with ps2pdf); it looks like the -dSAFER is involved in
this issue, but I have no idea of what I can do.

Regards,

-- 
Kax

[toc] | [prev] | [next] | [standalone]


#685

Fromken <ken@spamcop.net>
Date2012-05-15 15:44 +0100
Message-ID<MPG.2a1c7c393c8e3b9f989883@usenet.plus.net>
In reply to#684
In article <alpine.DEB.2.02.1205151613380.23597@lili-Inspiron-1525>, 
kax@kax.org says...
> 
> On Tue, 15 May 2012, Helge Blischke wrote:
> > Well, as you obviously are using Ghostscript, there is a simple solution:
> > store your EPS image(s) in an ordinary file and call it from within your
> > PostScript job using the run operator, such as
> > (/somedirectory/filename)run
> 
> When I am trying to do that, I got some invalidefileaccess error
> (the same with ps2pdf); it looks like the -dSAFER is involved in
> this issue, but I have no idea of what I can do.

Don't use -dSAFER ?

-dSAFER disables reading most files from disk.

[toc] | [prev] | [next] | [standalone]


#686

Fromkax@kax.org
Date2012-05-15 21:24 +0200
Message-ID<alpine.DEB.2.02.1205152123500.26097@lili-Inspiron-1525>
In reply to#685
On Tue, 15 May 2012, ken wrote:
> Don't use -dSAFER ?
>
> -dSAFER disables reading most files from disk.

OK, thank you, it finally works. Regards,

-- 
Kax

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web