Does anyone know what is wrong with the following file - why it will not display in ghostview? I have pasted an abstract of the file. I have VERY little knowledge of postscript and am doing this as part of a project at work. We have captured the output of the parallel port and are trying to save this information as a file instead of printing them. The device printing cannot print to file as it is a standalone unit with no means of outputting the data other than printing. If anyone could help on this matter it would be greatly appreciated. I realise the formatting is incorrect, but i think that is part of the problem we are facing in being able to view the page in ghostview.
Thanks in advance
Kind regards
Andrew Fernando
%!PS-Adobe-2.0 2%%BoundingBox: (atend)%%Pages: (atend)%%DocumentFonts: (atend)%%EndComments%% TIS PostScript Prolog%/PSBEGINPAGE {% /save_page save def% gsave moveto} def/PSENDPAGE {% grestore% save_page restore showpage} def/PSFONTDEFINE16 { findfont exch scalefont dup setfont} bind def/PSFONTDEFINE_S { findfont exch scalefont setfont} bind def/PSFONTDEFINE { dup dup NewEncoding ReEncodeSmall findfont exch scalefont setfont} bind def/PSFONTDEFINESYMBOL { dup dup NewEncodingSymbol ReEncodeSmall findfont exch scalefont setfont} bind def/S { moveto show} bind def/PSLINE { gsave newpath setlinewidth moveto lineto stroke grestore} def /PSRECT { gsave newpath setlinewidth moveto rlineto rlineto rlineto closepath stroke grestore} def/PSFOOTLINE16 { /saveobj save def PSLINE moveto show moveto show moveto show saveobj restore} def/pageAll 5 def/PSFOOTLINE { /saveobj save def PSLINE PSFONTDEFINE moveto show moveto show moveto show moveto show moveto show moveto show pageAll 10 string cvs show saveobj restore} def/PSFOOTLINE_S { /saveobj save def PSLINE PSFONTDEFINE_S moveto show moveto show moveto show moveto show moveto show moveto show pageAll 10 string cvs show saveobj restore} def/bitdump % stk: width, height, iscalex, iscaley, depth% dump a bit image with lower left corner at current origin,% scaling by iscalex and iscaley (iscale=1 means 1/300 inch per pixel){ % read arguments /depth exch def /iscaley exch def /iscalex exch def /height exch def /width exch def % scale appropriately width iscalex mul height iscaley mul scale % allocate .notdef for one scanline of input /picstr % picstr holds one scan line width 7 add 8 idiv % width of image in bytes = ceiling(width/8) string def % read and dump the image width height depth [width 0 0 height neg 0 height] { currentfile picstr readhexstring pop } image} def% Font-Define/reencsmalldict 12 dict def/ReEncodeSmall {reencsmalldict begin /newcodesandnames exch def /newfontname exch def /basefontname exch def /basefontdict basefontname findfont def /newfont basefontdict maxlength dict def basefontdic { exch dup /FID ne { dup /Encoding eq { exch dup length array copy newfont 3 1 roll put } { exch newfont 3 1 roll put } ifelse } { pop pop } ifelse } forall newfont /FontName newfontname put newcodesandnames aload pop newcodesandnames length 2 idiv { newfont /Encoding get 3 1 roll put} repeat newfontname newfont definefont pop end} def /NewEncoding [144 /dotlessi145 /grave146 /acute147 /circumflex148 /tilde150 /breve151 /dotaccent154 /ring157 /hungarumlaut158 /ogonek159 /caron161 /exclamdown162 /cent163 /sterling164 /currency165 /yen166 /brokenbar167 /section168 /dieresis169 /copyright170 /ordfeminine171 /guillemotleft172 /logicalnot173 /hyphen174 /registered175 /macron176 /degree177 /plusminus178 /twosuperior179 /threesuperior180 /acute181 /mu182 /paragraph183 /periodcentered184 /cedilla185 /onesuperior186 /ordmasculine187 /guillemotright188 /onequarter189 /onehalf190 /threequarters191 /questiondown192 /Agrave193 /Aacute194 /Acircumflex195 /Atilde196 /Adieresis197 /Aring198 /AE199 /Ccedilla200 /Egrave201 /Eacute202 /Ecircumflex203 /Edieresis204 /Igrave205 /Iacute206 /Icircumflex207 /Idieresis208 /Eth209 /Ntilde210 /Ograve211 /Oacute212 /Ocircumflex213 /Otilde214 /Odieresis215 /multiply216 /Oslash217 /Ugrave218 /Uacute219 /Ucircumflex220 /Udieresis221 /Yacute222 /Thorn223 /germandbls224 /agrave225 /aacute226 /acircumflex227 /atilde228 /adieresis229 /aring230 /ae231 /ccedilla232 /egrave233 /eacute234 /ecircumflex235 /edieresis236 /igrave237 /iacute238 /icircumflex239 /idieresis240 /eth241 /ntilde242 /ograve243 /oacute244 /ocircumflex245 /otilde246 /odieresis247 /divide248 /oslash249
Thanks in advance
Kind regards
Andrew Fernando
%!PS-Adobe-2.0 2%%BoundingBox: (atend)%%Pages: (atend)%%DocumentFonts: (atend)%%EndComments%% TIS PostScript Prolog%/PSBEGINPAGE {% /save_page save def% gsave moveto} def/PSENDPAGE {% grestore% save_page restore showpage} def/PSFONTDEFINE16 { findfont exch scalefont dup setfont} bind def/PSFONTDEFINE_S { findfont exch scalefont setfont} bind def/PSFONTDEFINE { dup dup NewEncoding ReEncodeSmall findfont exch scalefont setfont} bind def/PSFONTDEFINESYMBOL { dup dup NewEncodingSymbol ReEncodeSmall findfont exch scalefont setfont} bind def/S { moveto show} bind def/PSLINE { gsave newpath setlinewidth moveto lineto stroke grestore} def /PSRECT { gsave newpath setlinewidth moveto rlineto rlineto rlineto closepath stroke grestore} def/PSFOOTLINE16 { /saveobj save def PSLINE moveto show moveto show moveto show saveobj restore} def/pageAll 5 def/PSFOOTLINE { /saveobj save def PSLINE PSFONTDEFINE moveto show moveto show moveto show moveto show moveto show moveto show pageAll 10 string cvs show saveobj restore} def/PSFOOTLINE_S { /saveobj save def PSLINE PSFONTDEFINE_S moveto show moveto show moveto show moveto show moveto show moveto show pageAll 10 string cvs show saveobj restore} def/bitdump % stk: width, height, iscalex, iscaley, depth% dump a bit image with lower left corner at current origin,% scaling by iscalex and iscaley (iscale=1 means 1/300 inch per pixel){ % read arguments /depth exch def /iscaley exch def /iscalex exch def /height exch def /width exch def % scale appropriately width iscalex mul height iscaley mul scale % allocate .notdef for one scanline of input /picstr % picstr holds one scan line width 7 add 8 idiv % width of image in bytes = ceiling(width/8) string def % read and dump the image width height depth [width 0 0 height neg 0 height] { currentfile picstr readhexstring pop } image} def% Font-Define/reencsmalldict 12 dict def/ReEncodeSmall {reencsmalldict begin /newcodesandnames exch def /newfontname exch def /basefontname exch def /basefontdict basefontname findfont def /newfont basefontdict maxlength dict def basefontdic { exch dup /FID ne { dup /Encoding eq { exch dup length array copy newfont 3 1 roll put } { exch newfont 3 1 roll put } ifelse } { pop pop } ifelse } forall newfont /FontName newfontname put newcodesandnames aload pop newcodesandnames length 2 idiv { newfont /Encoding get 3 1 roll put} repeat newfontname newfont definefont pop end} def /NewEncoding [144 /dotlessi145 /grave146 /acute147 /circumflex148 /tilde150 /breve151 /dotaccent154 /ring157 /hungarumlaut158 /ogonek159 /caron161 /exclamdown162 /cent163 /sterling164 /currency165 /yen166 /brokenbar167 /section168 /dieresis169 /copyright170 /ordfeminine171 /guillemotleft172 /logicalnot173 /hyphen174 /registered175 /macron176 /degree177 /plusminus178 /twosuperior179 /threesuperior180 /acute181 /mu182 /paragraph183 /periodcentered184 /cedilla185 /onesuperior186 /ordmasculine187 /guillemotright188 /onequarter189 /onehalf190 /threequarters191 /questiondown192 /Agrave193 /Aacute194 /Acircumflex195 /Atilde196 /Adieresis197 /Aring198 /AE199 /Ccedilla200 /Egrave201 /Eacute202 /Ecircumflex203 /Edieresis204 /Igrave205 /Iacute206 /Icircumflex207 /Idieresis208 /Eth209 /Ntilde210 /Ograve211 /Oacute212 /Ocircumflex213 /Otilde214 /Odieresis215 /multiply216 /Oslash217 /Ugrave218 /Uacute219 /Ucircumflex220 /Udieresis221 /Yacute222 /Thorn223 /germandbls224 /agrave225 /aacute226 /acircumflex227 /atilde228 /adieresis229 /aring230 /ae231 /ccedilla232 /egrave233 /eacute234 /ecircumflex235 /edieresis236 /igrave237 /iacute238 /icircumflex239 /idieresis240 /eth241 /ntilde242 /ograve243 /oacute244 /ocircumflex245 /otilde246 /odieresis247 /divide248 /oslash249