Bug 694562 - nocurrentpoint
Summary: nocurrentpoint
Status: RESOLVED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-03 10:47 UTC by john
Modified: 2013-09-04 08:38 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
ps file (26.86 KB, application/postscript)
2013-09-03 10:47 UTC, john
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2013-09-03 10:47:08 UTC
Created attachment 10168 [details]
ps file

Hi,

I used to run the command html2ps http://cedarsdeli.com/ | ps2pdf - site.pdf

but now for some reason it fails.  attached is the ps file

the error i get is 

Retrieving http://cedarsdeli.com
Error: /nocurrentpoint in --currentpoint--
Operand stack:
   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1916   1   3   %oparray_pop   1915   1   3   %oparray_pop   1899   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1170/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--   --dict:407/2000(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.10: Unrecoverable error, exit code 1
Comment 1 Ken Sharp 2013-09-04 00:22:11 UTC
Yes, the file executes currentpoint before setting the current point. In PostScript the current point is initially undefined, any attempt to make marking operations or retrieve the current point will therefore fail with 'undefined' until some move operation is performed.

The file errors on every PostScript interpreter I've tried. I did start debugging the PostScript but it turned out to be hideous so I stopped. You should report this bug to whoever maintains html2ps,or at least try the beta 7 release, you seem to be a couple of releases behind. I notice that the web site says that html2ps isn't under development any longer.

If you want a PDF file why don't you use html2pdf ?
Comment 2 john 2013-09-04 08:38:20 UTC
thanks i will try html2pdf.  I realized the .ps file was corrupt only after posting, I am sorry I should have closed the bug report.