• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Feb 04, 2016 Feb 04, 2016

Copy link to clipboard

Copied

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

TOPICS
Programming

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Feb 04, 2016 Feb 04, 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

Votes

Translate

Translate
Explorer ,
Feb 04, 2016 Feb 04, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 04, 2016 Feb 04, 2016

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines