| <<<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 height | 04:22.30 |
| here's an example: https://pastebin.com/uNpeKcpd | 04: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 file | 07:58.21 |
kens | You have to embed the EPS in the PostScript file | 07:58.47 |
zerowalker_w | ah, i tried that with the font and it ended up me printing like 20 pages of text;d | 07: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 input | 08:00.25 |
| as text | 08: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 there | 08: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 case | 08:02.18 |
| If the contents are binary | 08:02.24 |
zerowalker_w | the eps seems to be binary, it has a lot of odd characters | 08:04.16 |
kens | PostScript can be binary | 08: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) run | 08: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 it | 08:06.45 |
| Make sure you are using an editor which is capable of binary copy and paste | 08:07.01 |
| and doesn't do text translation | 08:07.08 |
| I think emacs works | 08:07.14 |
zerowalker_w | yeah will probably do that at the end | 08: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 it | 08:07.58 |
| If you are on Windows then Visual Studio has a binary mode | 08:08.17 |
zerowalker_w | hmm can't seem to make it work even though i copy and paste it as binary | 08:21.18 |
kens | Well wihtout seeing the fiels I cartainly can't help | 08:21.37 |
chrisl | Does the EPS have a preview? | 08:22.15 |
kens | Good point, that needs to be stripped if so | 08:22.49 |
zerowalker_w | preview? | 08:23.10 |
| it starts with like: ÅÐÓÆ ¿H ßH û0 ÿÿ %!PS-Adobe-3.1 EPSF-3.0 | 08:23.34 |
kens | EPS files can have a bitmap containing an image of what the EPS looks like when rendered | 08:23.42 |
| Yeah that'sd a preview | 08:23.50 |
| At the end of teh EPS file, the header has magic bytes that tell you so | 08:24.05 |
| You need to strip off the bits before the %!PS | 08:24.21 |
| and the binary crap at the end | 08:24.32 |
| EPS consumers need to know this | 08:24.41 |
zerowalker_w | that solved it:) | 08:25.04 |
| now for the t42;d | 08: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 same | 08:33.11 |
kens | You have to get the scaling and positioning correct when embedding teh EPS | 08:39.55 |
| You need to transfrom the CTM so that the EPS is correct | 08:40.07 |
| You read the %%oundingBox commetns, and use those to caclculate the CTM | 08:40.30 |
| Hmm that set the text in bold here | 08: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:S | 08:44.29 |
kens | Again, its pretty much impossible to comment without seeing the EPS and the containing PostScript | 08:44.51 |
zerowalker_w | yeah know, just not sure if i can share it | 08: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 importance | 12: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 before | 12:44.38 |
kens | PostScript doesn''t have transparency, basically. Dvice-independent colour in PostScript means a CIEBased colour space, and that's rare | 12:58.56 |
chrisl | It might be using overprint, although I thought that wasn't allowed in EPS | 13: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 idea | 13:16.34 |
chrisl | kens: That strikes me as an understatement | 13:17.03 |
| I really though EPS was supposed to avoid pretty much anything device dependent | 13:17.58 |
kens | Well yes, I did too | 13:18.06 |
ZeroWalker | oh quite a lot that it assumes, gotta check those | 14:43.36 |
| sadly didn't help, maybe it's an incompatible version or something, it's 3.1 | 14:57.15 |
kens | What's 3.1 ? | 14:57.29 |
ZeroWalker | %!PS-Adobe-3.1 EPSF-3.0 | 15:00.06 |
kens | Well that's teh Document Structure Comments version | 15:04.57 |
| And comments are ignored, so.... Not relevant | 15:05.08 |
| And the most recent version of the DSC specification I can find is 3.0 | 15:09.22 |
ZeroWalker | ah | 16: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 PCL | 17: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 messy | 17:23.01 |
| then we are two, ps is a lot friendlier | 17:23.26 |
| hmm kinda interesting that my work account get's dicconnected alot.. a bit worrisome | 22:07.29 |
| <<<Back 1 day (to 2019/11/14) | Forward 1 day (to 2019/11/16)>>> | |