Skip to main content
wherati
Participant
February 4, 2016
Answered

Combining images in two separate postscript file into a single file with a single row

  • February 4, 2016
  • 1 reply
  • 1367 views

I have two postscript files, each representing a pure black and white, identically sized images (generated by Eagle PCB, not that that's all that relevant), as attached.   I'd like to combine the two files into a single file where both images are side by size on a single row so I can print them both together.   What's the easiest route to achieve this?

Example of the files:

https://www.dropbox.com/s/rrcw4t4bk0x5x6u/File1.ps?dl=0

https://www.dropbox.com/s/21de4f9c35qa3w3/File2.ps?dl=0

This topic has been closed for replies.
Correct answer wherati

Actually, I was able to solve the problem with a little reverse engineering of Postscript and a bash script.


The two postscript files define a bunch of common functions, and some reference points and call those functions to draw the geometries.  I just extend the width of one of the drawing by 2X, remove the 'grestore' from the bottom, translate the origin back to mid page and draw the other image, followed by a 'grestore'.

Resulting file:

https://www.dropbox.com/s/p378o2vtppl6v1y/Combined.ps?dl=0

1 reply

Inspiring
February 4, 2016

Here is my suggestion

- Combine the two files - just append  file2.ps  under file1.ps

Now you can get one PDF file with 2 pages represent your drawings

Use Acumen Training Journal  July 2001

www.acumentraining.com

It explain how to make two up

Cheers

Adam

wherati
wheratiAuthorCorrect answer
Participant
February 4, 2016

Actually, I was able to solve the problem with a little reverse engineering of Postscript and a bash script.


The two postscript files define a bunch of common functions, and some reference points and call those functions to draw the geometries.  I just extend the width of one of the drawing by 2X, remove the 'grestore' from the bottom, translate the origin back to mid page and draw the other image, followed by a 'grestore'.

Resulting file:

https://www.dropbox.com/s/p378o2vtppl6v1y/Combined.ps?dl=0