Bob, I don't know how complex your formatting requirements are, but it's possible to write Postscript code by hand. I haven't done it in a long time, but it's not too bad. Another thing to try would be to use an application that exports Postscript (rather than using a print file) as they tend to produce clean output meant for consumption by things other than printers. One last idea, I would imagine that it is Ghostscript that is doing the rasterization, so I wonder if you can send it a PDF instead of Postscript? There are a few good free PHP libraries to output PDF; I like FPDF. David > -----Original Message----- > From: eclug-bounces at lists.eclug.net [mailto:eclug-bounces at lists.eclug.net] > On Behalf Of Bob Mariotti > Sent: Tuesday, December 19, 2006 9:11 PM > To: Eastern Connecticut Linux Users' Group > Subject: [Eclug] Anyone with some postscript ideas??? > > Fellow luggers: > > In my quest to print formatted labels to a Dymo USB label printer via > cups I've learned that this device WILL accept a postscript document and > translate it to raster as needed. I tried lp'ing a ps document to the > device name and the output was indeed formatted. > > So my next step is to be able to replicate the postscript detail as > output from my php program as it is piped to lp. Sounds easy enough. > > So, I thought, lets create a formatted label with openoffice and output > it to a postscript printer as a file then take a look at the resulting > file and I should have what I need. Simple so it sounds. And do that > is exactly what I did. > > However, the resulting "postscript" file is 500K for an 8 line address > label and when I look through it I see nothing in the way of text > strings but tons of binary (ok - hex) data. In fact, the vast majority > of the output seems to be hex in what appears to be a downloadable font. > > Therefore, before I dig my hole all the way to China (may they could > help me) I was hoping some of you "guys" might has some postscript > experience and/or knowledge that you could share to guide me through > trying to figure this out? > > Anyone have any ideas as to how I can accomplish creating a "template" > that I can use in my php program to "wrap" around my output? > > Advice/suggestions/recommendations ALL appreciated! > > Thanks, > > Bob > > ps: if need by I can email you the .odt format file to play with... > >
More information about the ECLUG mailing list