Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Including the same EPS file multiple times in a PS

26 views
Skip to first unread message

k...@kax.org

unread,
May 14, 2012, 2:56:14 PM5/14/12
to
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

Rod Dorman

unread,
May 14, 2012, 3:03:52 PM5/14/12
to
In article <alpine.DEB.2.02.1205142054530.20582@lili-Inspiron-1525>,
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

Helge Blischke

unread,
May 14, 2012, 3:31:16 PM5/14/12
to
Rod Dorman wrote:

> In article <alpine.DEB.2.02.1205142054530.20582@lili-Inspiron-1525>,
> <k...@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

k...@kax.org

unread,
May 14, 2012, 3:59:28 PM5/14/12
to
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

bugbear

unread,
May 15, 2012, 4:52:28 AM5/15/12
to
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

Helge Blischke

unread,
May 15, 2012, 4:52:52 AM5/15/12
to
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

Peter Davis

unread,
May 15, 2012, 9:58:23 AM5/15/12
to
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


k...@kax.org

unread,
May 15, 2012, 10:15:12 AM5/15/12
to
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

ken

unread,
May 15, 2012, 10:44:47 AM5/15/12
to
In article <alpine.DEB.2.02.1205151613380.23597@lili-Inspiron-1525>,
k...@kax.org says...
Don't use -dSAFER ?

-dSAFER disables reading most files from disk.

k...@kax.org

unread,
May 15, 2012, 3:24:33 PM5/15/12
to
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
0 new messages