[Eclug] Anyone with some postscript ideas???

  • Previous message: [Eclug] Anyone with some postscript ideas???
  • Next message: [Eclug] Anyone with some postscript ideas???
  • Jack ostroffjh at sbcglobal.net
    Tue Dec 19 23:43:51 EST 2006

     

    On 2006.12.19 21:11, Bob Mariotti wrote:
    > 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...
    Postscript output from programs such as OO are often mostly font  
    definitions and macros being set up and then a minimal amount of code  
    to actually output your content.  Search the file for any of your  
    output strings - they should be near the end of the file.  If you don't  
    see them, I suppose they could have been translated to hex, but that  
    would, indeed, be strange.  One other choice might be to print to PDF  
    and see if that produces anything more readable.
    
    Jack
    
    

     

     

    More information about the ECLUG mailing list