Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: error when saving figure as pdf
Replies: 1   Last Post: Apr 1, 2013 12:16 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Rafael

Posts: 16
Registered: 12/9/10
error when saving figure as pdf
Posted: Jan 24, 2013 12:15 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi guys,

I am trying to save a figure (a 2D matrix as imagesc to be precise) as a pdf. Usually that is no big deal with the line "saveas(gcf,test,'pdf')", however with my current figure I am getting a huge error-message (see bottom).

The error does not appear when saving the image of the transpose matrix. Moreover, saving as png etc. all works fine. From the error it seems like somehow the output-range is hit when converting to pdf ... does anybody know a work-around or solution to the problem? Any help would be much appreciated.

Cheers,
Rafael

Here we go with the error-log:

Error using ghostscript (line 186)
Problem converting PostScript. System returned error: -1.Failed to convert to output format; Ghostscript status: -100.Error:
/rangecheck in --string--heck
Operand stack:
picstr 91863
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:95/160(L)-- --dict:8/85(L)--
Current allocation mode is local
Current file position is 103485
- --dict:71/200Error: /rangecheck in --string--heck
Operand stack:
picstr 91863
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1123/1686(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:95/160(L)-- --dict:8/85(L)--
Current allocation mode is local
Current file position is 7268
)-- --dict:71/200Error: /rangecheck in --string--heck
Operand stack:
picstr 91863
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:95/160(L)-- --dict:8/85(L)--
Current allocation mode is local
Current file position is 103485
- --dict:71/200Error: /rangecheck
Artifex Ghostscript 8.54: Unrecoverable error, exit code 1


Error in print>LocalPrint (line 311)
pj = ghostscript( pj );

Error in print (line 237)
LocalPrint(pj);



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.