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

Merge PS-/PDF-Files?

33 views
Skip to first unread message

Michael Milsch

unread,
Jul 6, 2000, 3:00:00 AM7/6/00
to
Hi PDF-Professionals,

here is a Newbie-Question. I use GsView/Ghostscript to produce PS-Files and
convert them to pdf. Is it possible, to merge several PS-/PDF-files to ONE
PDF-File, e.g. for combining several Web-Pages, each printed single, to one
PDF-document?

Thank you in advance for your reply
and best regards
--
Michael Milsch
mic...@milsch-online.de


Helge Blischke

unread,
Jul 6, 2000, 3:00:00 AM7/6/00
to
Michael Milsch wrote:
>
> Hi PDF-Professionals,
>
> here is a Newbie-Question. I use GsView/Ghostscript to produce PS-Files and
> convert them to pdf. Is it possible, to merge several PS-/PDF-files to ONE
> PDF-File, e.g. for combining several Web-Pages, each printed single, to one
> PDF-document?
>
> Thank you in advance for your reply
> and best regards

Using Ghostscript, make a small wrapper file like this
---snip---
%!PS
% the following 2 procs encaspulate the jobs to be processed much as is
done with EPS images:
/_begin_job_
{
/tweak_save save def
/tweak_dc countdictstack def
/tweak_oc count 1 sub def
userdict begin
}bind def

/_end_job_
{
count tweak_oc sub{pop}repeat
countdictstack tweak_dc sub{end}repeat
tweak_save restore
}bind def
% Now, add your jobs like this:
_begin_job
(oneofyour_ps_files)run
_end_job_
% and so on.
---snip---
where "oneofyour_ps_files" is the full path name of the PS file. If you
use '\' in your
path names, be sure to write them as '\\'.

Helge


--
H.Bli...@srz-berlin.de
H.Bli...@srz-berlin.com
H.Bli...@acm.org

Michael Milsch

unread,
Jul 7, 2000, 3:00:00 AM7/7/00
to
Hi Helge,

thank you very much for your reply. Until now, I use a PS-printer-driver to
produce a PS-file, open this with GSView and invoke File | Convert to
produce the PDF-file. I hoped, there would be a menu-item within GSView,
that I haven't found yet, like "Merge PS-file", but this doesn't seem to be
so. Thus, I only use Ghostscript implicitly (because GSView uses it). In
fact, I'm not familiar with Ghostscript at this time. Because of this, I
don't quite understand your proposal. On the other hand, I know, that it is
not your job to declare Ghostscript to me. So, if the way, you show me, is
is the only one to merge PS-Files, I will take the time to read the (f*)
manual <g>.

Greetings from Isernhagen, Germany
Michael Milsch
eMail: mic...@milsch-online.de

Helge Blischke <H.Bli...@srz-berlin.de> schrieb in im Newsbeitrag:
3964A6...@srz-berlin.de...

Helge Blischke

unread,
Jul 8, 2000, 3:00:00 AM7/8/00
to
Michael Milsch wrote:
>
> Hi Helge,
>
> thank you very much for your reply. Until now, I use a PS-printer-driver to
> produce a PS-file, open this with GSView and invoke File | Convert to
> produce the PDF-file. I hoped, there would be a menu-item within GSView,
> that I haven't found yet, like "Merge PS-file", but this doesn't seem to be
> so. Thus, I only use Ghostscript implicitly (because GSView uses it). In
> fact, I'm not familiar with Ghostscript at this time. Because of this, I
> don't quite understand your proposal. On the other hand, I know, that it is
> not your job to declare Ghostscript to me. So, if the way, you show me, is
> is the only one to merge PS-Files, I will take the time to read the (f*)
> manual <g>.
>
> Greetings from Isernhagen, Germany
> Michael Milsch
> eMail: mic...@milsch-online.de
>
You needn't read the manuals, just proceed according to the template
given in my previous post.
It works (even with distiller).

Michael Milsch

unread,
Jul 10, 2000, 3:00:00 AM7/10/00
to
Hi Helge,

> You needn't read the manuals, just proceed according to the template
> given in my previous post.

I wish, I was so sure as you are ....

> Using Ghostscript, make a small wrapper file like this

I don't even know, what a "wrapper file" is and how I can tell Ghostscript
to use it.

---
Best Regards
Michael Milsch
eMail: mic...@milsch-online.de

Helge Blischke <H.Bli...@srz-berlin.de> schrieb in im Newsbeitrag:

396772...@srz-berlin.de...

Helge Blischke

unread,
Jul 11, 2000, 3:00:00 AM7/11/00
to
Michael Milsch wrote:
>
> Hi Helge,
>
> I don't even know, what a "wrapper file" is and how I can tell Ghostscript
> to use it.
>
Well, just open the "wrapper file" I posted with a text editor and add
your PostScript
files the way I described (you KNOW how to use a text editor, do you?).
Then drag the edited wrapper file onto the distiller or ghostscript
icon.
Or start ghostscript from the command line (you know what that is?).

Don't use Gsview, as Gsview cannot identify the pages then.

Michael Milsch

unread,
Jul 13, 2000, 3:00:00 AM7/13/00
to
Hi Helge,

here is the wrapper file, I succeeded to run on my PC.

--- snip ---


%!PS
% the following 2 procs encaspulate the jobs to be processed much as is done
with EPS images:
/_begin_job_
{
/tweak_save save def
/tweak_dc countdictstack def
/tweak_oc count 1 sub def
userdict begin
}bind def
/_end_job_
{
count tweak_oc sub{pop}repeat
countdictstack tweak_dc sub{end}repeat
tweak_save restore
}
bind def
% Now, add your jobs like this:

/_begin_job
(c:\\winnt\\Profiles\\mim\\Desktop\\ps1.ps) run
/_end_job_
/_begin_job
(c:\\winnt\\Profiles\\mim\\Desktop\\ps2.ps) run
/_end_job_
% and so on
--- snap ---

When I invoke this file, the 2 files are shown in the
Ghostscript-Image-Window one after the other. What I wanted, was to merge
them into one PS-file. Is there still anything I forgot?

Thank you for your kind help.

--
Michael Milsch
mic...@milsch-online.de


0 new messages