Postscript printer question

Madison Kelly linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Mon Mar 13 20:08:23 UTC 2006


Peter wrote:
> 
> Your message makes little sense, sorry. What I know: 0x7E is the ascii 
> code for '~'. Tildes are special in PS so they get printed escaped as 
> you saw. You can insert a filter that turns <7E> into '~'. It must 
> appear between OO and the 'program'. One way to do this is to provide an 
> alias for lpr that does this. The filer can be a 1-liner that 
> substitutes ~ for every <7E>. Be aware that PS with ~'s will not be PS. 
> Also other ~'s in PS must be escaped to they are *not* '~'s when the 
> other program runs.
> 
> So, a simple answer would be, how about changing the OO application so 
> it uses something other than '~' as trigger ? Say a dichar, like [} ?
> 
> Peter

Sorry, I don't have a lot of experience with PostScript. :p

   To answer Joseph's questions:
- OpenOffice 2.0 on Ubuntu Dapper Drake (beta)
- The datasource is a MS Word file (foo.doc)
- The ultimate destination of a program-generated PDF made by reading in 
the PS file and substituting values from a database where ever there is 
a tilde (~) based of a plain text file which specified which tables and 
columns to use.
- I am changing the '~' because the PostScript file is used as a 
template for the PDF.

   To answer your questions:

   Unfortunately the script that looks for the tildes is not editable by 
me so I need to stick to the tildes as they are. I asked the person who 
wrote the script if I could just write a converted that does what you 
suggest but he is worried that other things would silently break. So I 
print the PS file as close to the way that MS does... I know, not bloody 
likely. :p

   For now I've just email myself the doc and print it on a windows 
machine here in the office and mail myself back the PS. A bit of a pain 
but it sounds like MS didn't follow the PS standard properly (gasp!) so 
I doubt this will be easily resolved.

   Thanks kindly for both of your responses!

Madison

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
           Madison Kelly (Digimer)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list