• PostScript anyone?

    From Hemo@VERT/UJOINT to All on Tue Dec 6 09:37:58 2016
    Curious if anyone in listening range has ever programmed PostScript.ããSpecifically looking at techniques to embed an image into the actual code.ãNot able to include the file from an external source, needs to be completelyãself-contained so the .ps/.eps file contains everything needed to render.ããThe blue book has some neat ideas, but nothing really was fitting for aãspecific application I needed. I'm trying to accomplish things in a moreãautomated fashion, where the PostScript is generated on the fly based onãvarying data, and an image is desired in a specific area. The image size canãvary, as long as it falls within the designated area dimensions.ããSo far, the best approach I have is to use a script and *nix tools to convertãthe image (jpg/png/etc) to be within the size dimensions, then convert to anã EPS file, then parse the EPS to get the dimesions from PageBoundingBox. Iãalso strip out the Pages, Page, and PageTrailer from the resulting EPS createdãby convert. Then I follow the basic idea here:ãhttp://stackoverflow.com/questions/2948683/embed-eps-file-in-psãusing the dimensions I parsed from PageBoundingBox to populate the BBoxãprocedure.ããIt works, it's kludgy. Always open to new ideas and possibly better processes.ã My biggest problem is that there is no one in my organization that has everãworked in PostScript, alone in a barrel, so to speak.ãã --Hemoãã... Not ignorance, but ignorance of ingnorance, is the death of knowledge.ãã---ã þ Synchronet þ - Running madly into the wind and screaming - bbs.ujoint.orgã