Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2019/11/14)Fwd 1 day (to 2019/11/16) >>>20191115 
ZeroWalker is there a way to draw a table easier than i currently do, which is basically drawing rectangles on a stack with a very ugly use of "sub" to adjust the height04:22.30 
  here's an example: https://pastebin.com/uNpeKcpd04:23.45 
  in this case the first row is a bit higher than the rest.04:24.19 
zerowalker_w if i want to send a ps and eps to a printer, how would i do that, as just sending the ps won't do as it obviously can't find the eps file07:58.21 
kens You have to embed the EPS in the PostScript file07:58.47 
zerowalker_w ah, i tried that with the font and it ended up me printing like 20 pages of text;d07:59.52 
kens That would suggest an error of some kind, which caused the printer to reset to PCL and then print the content of the remaining input08:00.25 
  as text08:00.27 
zerowalker_w probably, i just copy pasted it in, which worked in ghostscript, but the header !% stuff probably ain't supposed to be there08:01.19 
kens Anything beginning with % is a comment, so can be elided, but....08:01.47 
  Some consumers will use DSC comments, particularly for EPS if present.08:02.01 
  My guess would be that line ending translation broke your file, that's often the case08:02.18 
  If the contents are binary08:02.24 
zerowalker_w the eps seems to be binary, it has a lot of odd characters08:04.16 
kens PostScript can be binary08:04.37 
zerowalker_w oh, how would i copy paste that, it seems to break, i just pasted it between a save and restore, where i currently have my (eps) run08:06.01 
kens Well I wouldn't, frankly. I'd write code to do the job for me.08:06.32 
  If you must copy/paste then don't try and cut the file down, copy all of it08:06.45 
  Make sure you are using an editor which is capable of binary copy and paste08:07.01 
  and doesn't do text translation08:07.08 
  I think emacs works08:07.14 
zerowalker_w yeah will probably do that at the end08:07.44 
  i will try with notepad++08:07.54 
kens You can, of course, write a PostScript program which reads teh EPS file and writes a program containing the EPS wrapped around with the code to draw it08:07.58 
  If you are on Windows then Visual Studio has a binary mode08:08.17 
zerowalker_w hmm can't seem to make it work even though i copy and paste it as binary08:21.18 
kens Well wihtout seeing the fiels I cartainly can't help08:21.37 
chrisl Does the EPS have a preview?08:22.15 
kens Good point, that needs to be stripped if so08:22.49 
zerowalker_w preview?08:23.10 
  it starts with like: ÅÐÓÆ ¿H ßH û0 ÿÿ %!PS-Adobe-3.1 EPSF-3.008:23.34 
kens EPS files can have a bitmap containing an image of what the EPS looks like when rendered08:23.42 
  Yeah that'sd a preview08:23.50 
  At the end of teh EPS file, the header has magic bytes that tell you so08:24.05 
  You need to strip off the bits before the %!PS08:24.21 
  and the binary crap at the end08:24.32 
  EPS consumers need to know this08:24.41 
zerowalker_w that solved it:)08:25.04 
  now for the t42;d08:28.26 
  okay the eps file isn't actually rendered correctlt, it just shows a part of it, thought it might be ghostscript but the printer shows the same08:33.11 
kens You have to get the scaling and positioning correct when embedding teh EPS08:39.55 
  You need to transfrom the CTM so that the EPS is correct08:40.07 
  You read the %%oundingBox commetns, and use those to caclculate the CTM08:40.30 
  Hmm that set the text in bold here08:41.02 
  Didn't realise that % %B would do that :-)08:41.19 
zerowalker_w well it's not just cut off, like only a part is there, even if it's in the middle of the page. It's like the rest is transparent:S08:44.29 
kens Again, its pretty much impossible to comment without seeing the EPS and the containing PostScript08:44.51 
zerowalker_w yeah know, just not sure if i can share it08:45.28 
ZeroWalker might device independent colors be something that could cause parts not to show? looking at it i think the eps is basically 3 "images", and only one of them is visible, not fully i guess but perhaps it's the first or last part being drawn or something.12:38.39 
  Not sure if that's a thing for PS. It shows fine fine (except for a transparency issue) with ifranview, it's made in InDesign if that has any importance12:39.26 
  okay it just seems to be a bunch of cp ef stuff, i see no reason why the last ones appear but not the ones before12:44.38 
kens PostScript doesn''t have transparency, basically. Dvice-independent colour in PostScript means a CIEBased colour space, and that's rare12:58.56 
chrisl It might be using overprint, although I thought that wasn't allowed in EPS13:00.50 
kens I thought it wasn't permitted (thougth that wouldn't stop people using it)13:01.07 
chrisl "In preparation for including an EPS file, the graphics state must be set by the including application as follows: current color to black, line caps to square butt end, line joins to mitered, line width to 1, dash pattern to solid, miter limit to 10, and current path to an empty path. Also, if printing to a Level 2 interpreter, overprint and stroke adjust should be set to false. An EPS file can assume that this is 13:02.52 
  the default state. It is the responsibility of the application importing the EPS file to make sure that the graphics state is correctly set."13:02.52 
  OMFG!! "If used properly, the following operators are allowed in an EPS file..... sethalftone.... setscreen.... settransfer...." - seriously?!?!?13:05.14 
kens Well that seems like a *really* bad idea13:16.34 
chrisl kens: That strikes me as an understatement13:17.03 
  I really though EPS was supposed to avoid pretty much anything device dependent13:17.58 
kens Well yes, I did too13:18.06 
ZeroWalker oh quite a lot that it assumes, gotta check those14:43.36 
  sadly didn't help, maybe it's an incompatible version or something, it's 3.114:57.15 
kens What's 3.1 ?14:57.29 
ZeroWalker %!PS-Adobe-3.1 EPSF-3.015:00.06 
kens Well that's teh Document Structure Comments version15:04.57 
  And comments are ignored, so.... Not relevant15:05.08 
  And the most recent version of the DSC specification I can find is 3.015:09.22 
ZeroWalker ah16:26.33 
  anyone good with pcl, i am trying to extract an "image" from it. I think it's a large section at the start, but i can't tell when it stops. It later creates a kind of template (lines, tables etc) and some text. I have gone by trial and error by removing stuff, and currently it's two horizontal lines that's visible left (i think it's more though, it just happens to be beyond the page or something)17:22.21 
kens I don't really speak PCL17:22.46 
ZeroWalker so if i can just have the image part of the pcl i think i can figure something out to replace it, but damn pcl is messy17:23.01 
  then we are two, ps is a lot friendlier17:23.26 
  hmm kinda interesting that my work account get's dicconnected alot.. a bit worrisome22:07.29 
 <<<Back 1 day (to 2019/11/14)Forward 1 day (to 2019/11/16)>>> 
ghostscript.com #mupdf
Search: