postscript

How to view a character with glyphshow?

依然范特西╮ 提交于 2019-12-24 06:58:32
问题 /Helvetica findfont setfont /a glyphshow The interpreter give out a nocurrentpoint error. How to show a character with glyphshow in PostScript? Thanks. 回答1: You have to indicate where to put it. (This is the meaning of the "nocurrentpoint" error.) Oh, you'll also need to scale the font before setting it. The default font size is 1pt (1/72 inch) [very small]. (Not an error per se, but a foreseeable obstacle in your path.) As pipitas (our SO Postscript top-dog) recommends, here's a complete

HTML to PostScript Conversion

我是研究僧i 提交于 2019-12-24 06:08:10
问题 I'm searching for a free component or library that could convert HTML to PostScript ( .ps file format ). I'm using .Net framework 1.1. Any one have experience with situation like this ? 回答1: You could use the HTML viewer control and print the html to a PostScript printer that outputs to a file. Not very elegant, but it would work. I think there are unix tools that does this, so you might find a windows port for one of them and use it via Process.Start. 来源: https://stackoverflow.com/questions

HTML to PostScript Conversion

纵然是瞬间 提交于 2019-12-24 06:08:10
问题 I'm searching for a free component or library that could convert HTML to PostScript ( .ps file format ). I'm using .Net framework 1.1. Any one have experience with situation like this ? 回答1: You could use the HTML viewer control and print the html to a PostScript printer that outputs to a file. Not very elegant, but it would work. I think there are unix tools that does this, so you might find a windows port for one of them and use it via Process.Start. 来源: https://stackoverflow.com/questions

In PostScript: How to place some stack elements (computed at run-time) into a procedure that can be assigned to a name?

自闭症网瘾萝莉.ら 提交于 2019-12-23 23:30:49
问题 Example with values 10 and 20 known before run-time to give better understanding of the actual question below: /point1 { 10 20 } def places the numbers 10 and 20 into a (anonymous) procedure and then assigns it to the name point1 (so it isn't anonymous any more). Then name point can be used, i.e. whenever the interpreter finds it, it will execute { 10 20 } , i.e. 10 and 20 will be pushed onto the stack. Stack before and after executing def : Stacke before: Stack after: { 10 20 } - /point1

How to change dpi in PostScript

给你一囗甜甜゛ 提交于 2019-12-23 20:12:55
问题 I am a newcomer in PostScript language. Now I am using ps to print a scaled image of dots. The default dpi in ps is 72dpi, I am wondering how to change it to 600dpi. The code i write as follows, it is a square of dots. %%Dot_unit %%position setting 100 200 translate %%size setting 52 49 scale %%parameter setting:width height bit matrix 52 49 1 [52 0 0 -49 0 49] %%dot unit discribe {< fff7ff7ff7ff7f ffffffffffffff ffffffffffffff ffffffffffffff fffff7ffff7fff ffffffffffffff ffffffffffffff

Reduce size of plots in EPS format

会有一股神秘感。 提交于 2019-12-23 10:19:22
问题 I have a histogram with several hundred items, for which I do a Q-Q plot. This results in EPS that is 2.5 megabytes large. This is too much for a figure that is only going to be included in a publication and is not going to be viewed at 100x magnification. Is there any option in R to somehow output smaller EPS? I have searched docs to no avail. Or is my best option to, say, rasterize it afterwards at 300 dpi? If that's the case, any recommendations for the tool for this job? The R code for

Is there a “File IO in Postscript for Dummies”?

怎甘沉沦 提交于 2019-12-23 01:45:19
问题 Much of the code-golf played on Stack Overflow involved ASCII figures, and codegolf.SE is shaping up the same way. That's all well and good, but I'd like to inject a little variety into the output, and have written my recent question Output a playable crossword grid explicitly to encourage graphical format entries. To show willing, I've started trying to hack together a reference implementation in postscript. Alas, I'm completely new to the language, and am having trouble doing basic file IO.

Converting PostScript to an image [closed]

心不动则不痛 提交于 2019-12-22 13:53:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm having trouble converting a postscript (.eps) file to any kind of image. Whenever I use PIL to save the loaded .eps file the quality of it is horrible and text rendered in tkinter is unreadable. I think this is because the .eps file is some sort of vector image and saving it using PIL doesn't render the

Rotate to North

可紊 提交于 2019-12-22 10:21:21
问题 After doing a complicated series of rotations and translations, I want to return the current direction to "North" pointing at the top of the page. How can I do that? The obvious answer is to keep track of what direction I am pointing each time I translate, but that seems like a lot of work. I want something like "0 rotateto" that leaves me at the current location but pointing to the absolute top of the page; similarly, "90 rotateto" would point right. I also want to know how to move to a

How do you keep the `roll` operator straight?

不想你离开。 提交于 2019-12-22 03:42:00
问题 In postscript, the roll operator is very general and difficult to visualize. How do you make sure you're rolling in the right direction? I want to get a solid handle on roll because I want to be able to transform functions using variables /f { % x y z /z exch def /y exch def /x exch def x dup mul y dup mul z dup mul add add % x^2+y^2+z^2 } def into functions using stack manipulations, more like /f { % x y z 3 1 roll dup mul % y z x^2 3 1 roll dup mul % z x^2 y^2 3 1 roll dup mul % x^2 y^2 z^2