I wanted to try and manually encode a PostScript file. What for? Why not. From Wikipedia, I copied and pasted my main Hello World program for PostScript , which:
%!PS /Courier % name the desired font 20 selectfont % choose the size in points and establish % the font as the current one 72 500 moveto % position the current point at % coordinates 72, 500 (the origin is at the % lower-left corner of the page) (Hello world!) show % stroke the text in parentheses showpage % print all on the page
When I try to open it in GIMP , I get
Error opening Hello World.ps. Failed to interpret file "Hello World.ps"
I can use ImageMagick to convert a file
convert "Hello World.ps" "Hello World.pdf" convert "Hello World.ps" "Hello World.eps"
PDF opens successfully and displays "Hello World" in Courier. EPS gives the same error as PS.
Is there something wrong with the syntax of the PS file?
PS files are simply not intended for direct viewing and should they be searched in a format such as PDF?
Is GIMP simply unable to handle this particular PS file format?
source share