Re: [SLUG] Postscript Editor

From: R P Herrold (herrold@owlriver.com)
Date: Thu Jun 27 2002 - 23:46:16 EDT


On Thu, 27 Jun 2002, Paul M Foster wrote:

> Anyone know of an editor of some kind that can directly edit postscript
> files? I've got a postscript file that I'd like to add some text to, but
> it's so dense and I know so little about the internals of postscript,
> that I don't know how to add text manually.

Depends on how major the changes are:

bash-2.05a$ echo "test" | mpage -1 > test.ps
bash-2.05a$ echo "test the Gettysburg Address" | mpage -1 >
test-two.ps
bash-2.05a$ diff -c test.ps test-two.ps
*** test.ps Thu Jun 27 23:43:52 2002
--- test-two.ps Thu Jun 27 23:44:12 2002
***************
*** 2,8 ****
  %%DocumentFonts: Courier Times-Bold
  %%Title: <stdin> (mpage)
  %%Creator: mpage 2.5.1pre2 March 1998
! %%CreationDate: Thu Jun 27 23:43:52 2002
  %%Orientation: Portrait
  %%DocumentMedia: Letter 612 792
  %%BoundingBox: 18 18 594 774
--- 2,8 ----
  %%DocumentFonts: Courier Times-Bold
  %%Title: <stdin> (mpage)
  %%Creator: mpage 2.5.1pre2 March 1998
! %%CreationDate: Thu Jun 27 23:44:12 2002
  %%Orientation: Portrait
  %%DocumentMedia: Letter 612 792
  %%BoundingBox: 18 18 594 774
***************
*** 277,283 ****
  576 80 mp_a_x mul div 756 792 div scale
  4 7 translate 568 576 div 784 792 div scale
  textfont setfont
! 0 780 moveto (test) show
  grestore
  restore
  showpage
--- 277,283 ----
  576 80 mp_a_x mul div 756 792 div scale
  4 7 translate 568 576 div 784 792 div scale
  textfont setfont
! 0 780 moveto (test the Gettysburg Address) show
  grestore
  restore
  showpage
bash-2.05a$ gv test.ps
bash-2.05a$ gv test-two.ps
bash-2.05a$



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 13:05:54 EDT