Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 984191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:58:32+00:00 2026-05-16T04:58:32+00:00

I am trying to merge two or more postscript files into one. I tried

  • 0

I am trying to merge two or more postscript files into one. I tried concatenation but it does not work as each postscript file may have different resource header.

Have anyone done this before? Are there any libraries (commercial or open source) out there? I do not mind C++, C# or even Java libraries.

Edited
These are large postscript files (more than 200 Mb) and their purpose is only for color printing (not for online viewing).

Conclusion

  1. ps2write is not the answer as it
    does not support DSC.
  2. pswrite as reader pipitas has correctly pointed out produces L1 output. It is not the soluton.
  3. Using pdfwrite is workable. In this option, we convert two ps to a PDF and then convert the merged PDF to a ps. There may be a problem with this solution as there may be some information lost during the conversion. Besides the extra conversion steps take additional resources and time.
  4. If we do not need to view the output file, concatenating two postscript file together with the following line “false 0 startjob pop” inserted in between the files is also a solution. (See also this link)

In conclusion, the interim solution to merge two postscript files are option 3 or 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:58:33+00:00Added an answer on May 16, 2026 at 4:58 am

    Here is an example Ghostscript commandline, which would convert and merge the two (or more) PostScript files into one PDF in a one go:

     gswin32c.exe ^
       -o c:/path/to/output.pdf ^
       -sDEVICE=pdfwrite ^
       -dPDFSettings=/Screen ^
       [...more desired parameters (optional)...] ^
       /path/to/first.ps ^
       /path/to/second.ps ^
       /path/to/third.pdf
    

    Edit: my first shot had falsely assumed PDF input files. It works of course with PostScript as well (or even a mix of PS/PDF)… And the output may also be PS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to merge the data from two tables into one result but
I'm trying to merge two docx-documents into one docx-document using OpenXML SDK 2.0. The
I'm trying to merge these two object but not totally sure how.. Can you
I am trying to merge two similar tables (not exact) to one table. Getting
I am trying to merge two ggplot2 plots into one based on this table:
I am trying to merge two .net regular expressions into one. The following expressions
I'm trying to write a program that merge two or more .dat files in
I am trying to merge two text output file into one text file .
I'm trying to merge these two queries, but I'm not so hot with mysql.
I've been trying to merge my dev branch into the master branch but as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.