Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Mark Goldshtein
Hello, list.

Would you, please, help me to join multiple Postscript files into one
document? I have several *.ps files  with formatted text and
illustrations and want to collect them into a single document.

Since googled first, I've tried:
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=program.ps
part1.ps part2.ps part3.ps

But resulted document is x10 in size and looks like a rasterized one.
There are serious paper format mismatches also. Do not fit my needs,
anyway.
Exactly the same results were achieved with 'psmerge' usage.

Is there a solution, which is just collect separate pages into one
document and preserve an original Postscript format in the same time?

Thanks in advance.

-- 
С Уважением,
Марк Гольдштейн

Sincerely Yours'
Mark Goldshtein


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Jerome BENOIT

Hello Mark,

what you want is the psutils package !

Have fun,
Jerome

Mark Goldshtein wrote:

Hello, list.

Would you, please, help me to join multiple Postscript files into one
document? I have several *.ps files  with formatted text and
illustrations and want to collect them into a single document.

Since googled first, I've tried:
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=program.ps
part1.ps part2.ps part3.ps

But resulted document is x10 in size and looks like a rasterized one.
There are serious paper format mismatches also. Do not fit my needs,
anyway.
Exactly the same results were achieved with 'psmerge' usage.

Is there a solution, which is just collect separate pages into one
document and preserve an original Postscript format in the same time?

Thanks in advance.



--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Stefan Monnier
 Would you, please, help me to join multiple Postscript files into one
 document? I have several *.ps files  with formatted text and
 illustrations and want to collect them into a single document.

Not sure what the resulintg document should look like, but if by
collect you mean append the pages, then cat might do the trick
(the resulting document should be proper Postscript but will not follow
the Document Structuring Conventions).


Stefan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Mark Goldshtein
On Fri, Apr 10, 2009 at 8:08 AM, Jerome BENOIT jgmben...@mailsnare.net wrote:
 Hello Mark,

 what you want is the psutils package !

Thanks for the answer, but I don't think so.

As I've mentioned above, psmerge gaves me the same result, e.g.
heavy-weight, paper-mismatched and rasterized something.

Do you know another utility/command to weld two PS files?



-- 
С Уважением,
Марк Гольдштейн

Sincerely Yours'
Mark Goldshtein


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Mark Goldshtein
On Fri, Apr 10, 2009 at 9:53 AM, Stefan Monnier
monn...@iro.umontreal.ca wrote:
 Would you, please, help me to join multiple Postscript files into one
 document? I have several *.ps files  with formatted text and
 illustrations and want to collect them into a single document.

 Not sure what the resulintg document should look like, but if by
 collect you mean append the pages, then cat might do the trick
 (the resulting document should be proper Postscript but will not follow
 the Document Structuring Conventions).

Yes, thank you, I do mean append the pages, but 'cat' also do not
produces a good result. Probably, all pages from all files are there,
but I can not see them. Only pages from the first document in a row. I
am using 'evince' to display the pages.

As you have mentioned, resulting file is not follow the Document
Structuring Conventions.

--
С Уважением,
Марк Гольдштейн

Sincerely Yours'
Mark Goldshtein


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Mark Goldshtein
On Fri, Apr 10, 2009 at 10:12 AM, Jerome BENOIT jgmben...@mailsnare.net wrote:
 Hi !

 as a matter of fact I play with PDF files rather than PS files:

 epstopdf to convert (you can try ps2pdf or produce PDF files directly (e.g.,
 use pdflatex instead of latex));
 pdfjoin (in pdfjam package) to merge them.
 There is other tools to play with PDF files.

 At least for what I do, this approach is fine.

Yes, I agree, PDF is a very nice platform to play with. In my plans,
PS to PDF convertion and further pages merging as PDF is designated as
'Plan B'.

It is preferable to keep files in original format, though.

--
С Уважением,
Марк Гольдштейн

Sincerely Yours'
Mark Goldshtein


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Jerome BENOIT

Hi !

as a matter of fact I play with PDF files rather than PS files:

epstopdf to convert (you can try ps2pdf or produce PDF files directly (e.g., 
use pdflatex instead of latex));
pdfjoin (in pdfjam package) to merge them.
There is other tools to play with PDF files.

At least for what I do, this approach is fine.

hth,
Jerome

Mark Goldshtein wrote:

On Fri, Apr 10, 2009 at 8:08 AM, Jerome BENOIT jgmben...@mailsnare.net wrote:

Hello Mark,

what you want is the psutils package !


Thanks for the answer, but I don't think so.

As I've mentioned above, psmerge gaves me the same result, e.g.
heavy-weight, paper-mismatched and rasterized something.

Do you know another utility/command to weld two PS files?





--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Sarunas Burdulis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark Goldshtein wrote:
 On Fri, Apr 10, 2009 at 9:53 AM, Stefan Monnier
 monn...@iro.umontreal.ca wrote:
 Would you, please, help me to join multiple Postscript files into one
 document? I have several *.ps files  with formatted text and
 illustrations and want to collect them into a single document.
 Not sure what the resulintg document should look like, but if by
 collect you mean append the pages, then cat might do the trick
 (the resulting document should be proper Postscript but will not follow
 the Document Structuring Conventions).
 
 Yes, thank you, I do mean append the pages, but 'cat' also do not
 produces a good result. Probably, all pages from all files are there,
 but I can not see them. Only pages from the first document in a row. I
 am using 'evince' to display the pages.
 
 As you have mentioned, resulting file is not follow the Document
 Structuring Conventions.

*.ps files are source code of an interpreted language Postscript.
Usually they contain quite a bit of definitions, fonts etc. before pages
themselves are described. In general PS files can't be just concatenated
and still expected to make sense for the interpreter. The way to join PS
files should incorporate a Postscript interpreter. Ghostscript perhaps?.

- --
Sarunas Burdulis
Systems Administrator
Department of Mathematics, Dartmouth College
http://math.dartmouth.edu/~sarunas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknfW+UACgkQejaFVltl6E/y9ACgrMi9GqBC2uOsNWl6GMhEuWbO
JosAnjUFynO4xlsIXc2XkJWA9O9jHSFn
=rQUV
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Mark Goldshtein
On Fri, Apr 10, 2009 at 10:47 AM, Sarunas Burdulis
saru...@math.dartmouth.edu wrote:
 *.ps files are source code of an interpreted language Postscript.
 Usually they contain quite a bit of definitions, fonts etc. before pages
 themselves are described. In general PS files can't be just concatenated
 and still expected to make sense for the interpreter. The way to join PS
 files should incorporate a Postscript interpreter. Ghostscript perhaps?.

Yes, thanks for tip but if you look at my message, which is started
the tread, you may see:

MGSince googled first, I've tried:
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=program.ps
part1.ps part2.ps part3.ps

But resulted document is x10 in size and looks like a rasterized one.
There are serious paper format mismatches also. Do not fit my needs,
anyway.

'gs' is a Ghostscript interpreter.

Actually, I am really surprised with that situation. I know, PS is a
language. And as I have expected from a language, it have to be
fully structured and formalized, because it supposed to be 'rendered'
or 'interpreted'. Technically, I do not understand what the problem is
to append the text pages to each other. Few hours ago I was pretty
sure that task may be resolved with a single google ride.

:(

-- 
С Уважением,
Марк Гольдштейн

Sincerely Yours'
Mark Goldshtein


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Lenny. How to join multiply Postscript files into one document?

2009-04-10 Thread Sarunas Burdulis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark Goldshtein wrote:
 On Fri, Apr 10, 2009 at 10:47 AM, Sarunas Burdulis
 saru...@math.dartmouth.edu wrote:
 *.ps files are source code of an interpreted language Postscript.
 Usually they contain quite a bit of definitions, fonts etc. before pages
 themselves are described. In general PS files can't be just concatenated
 and still expected to make sense for the interpreter. The way to join PS
 files should incorporate a Postscript interpreter. Ghostscript perhaps?.
 
 Yes, thanks for tip but if you look at my message, which is started
 the tread, you may see:
 
 MGSince googled first, I've tried:
 $ gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=program.ps
 part1.ps part2.ps part3.ps
 
 But resulted document is x10 in size and looks like a rasterized one.
 There are serious paper format mismatches also. Do not fit my needs,
 anyway.
 ...

(Sorry for missing the top of the thread.)

It has to do with the 'pswrite' driver (its capabilities and/or
options). pswrite might be rasterizing at least part of the input.
Clearly it's interpreting input files and writing entirely new PS code
for the output. While output may look similar, the underlying PS code
will still be very different.

As for the paper size you might be able to get correct page size with gs
- -sPAPERSIZE= option --- just in case you haven't tried that yet...

Unless it's the original PS code that you want to preserve, I would use
PDF as an intermediate format. ps2pdf, merge PDFs, print to PS or just
leave in PDF --- it's an open format anyway...

- --
Sarunas Burdulis
Systems Administrator
Department of Mathematics, Dartmouth College
http://math.dartmouth.edu/~sarunas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknfbqoACgkQejaFVltl6E9N+QCfUunnxJ+vWhf+qHwPd4hyZpHq
v4UAoLiqm0ql+u4iAJbrbj/5eCvMGhuT
=Ejbl
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org