#endif
static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
- const char *command,char *output,ExceptionInfo *exception)
+ const char *command,char *message,ExceptionInfo *exception)
{
int
status;
#define ExecuteGhostscriptCommand(command,status) \
{ \
- status=ExternalDelegateCommand(MagickFalse,verbose,command,output, \
+ status=ExternalDelegateCommand(MagickFalse,verbose,command,message, \
exception); \
if (status == 0) \
return(MagickTrue); \
{
SetArgsStart(command,args_start);
if (status == -101) /* quit */
- (void) FormatLocaleString(output,MaxTextExtent,
+ (void) FormatLocaleString(message,MaxTextExtent,
"[ghostscript library]%s: %s",args_start,errors);
else
{
errors=DestroyString(errors);
return(MagickTrue);
#else
- status=ExternalDelegateCommand(MagickFalse,verbose,command,output,exception);
+ status=ExternalDelegateCommand(MagickFalse,verbose,command,message,exception);
return(status == 0 ? MagickTrue : MagickFalse);
#endif
}
filename[MaxTextExtent],
geometry[MaxTextExtent],
input_filename[MaxTextExtent],
+ message[MaxTextExtent],
options[MaxTextExtent],
- output[MaxTextExtent],
postscript_filename[MaxTextExtent];
const char
read_info->antialias != MagickFalse ? 4 : 1,
read_info->antialias != MagickFalse ? 4 : 1,density,options,filename,
postscript_filename,input_filename);
- *output='\0';
- status=InvokePDFDelegate(read_info->verbose,command,output,exception);
+ *message='\0';
+ status=InvokePDFDelegate(read_info->verbose,command,message,exception);
(void) RelinquishUniqueFileResource(postscript_filename);
(void) RelinquishUniqueFileResource(input_filename);
pdf_image=(Image *) NULL;
read_info=DestroyImageInfo(read_info);
if (pdf_image == (Image *) NULL)
{
- if (*output != '\0')
- (void) ThrowMagickException(exception,GetMagickModule(),
- DelegateError,"PDFDelegateFailed","`%s'",output);
+ if (*message != '\0')
+ (void) ThrowMagickException(exception,GetMagickModule(),DelegateError,
+ "PDFDelegateFailed","`%s'",message);
image=DestroyImage(image);
return((Image *) NULL);
}
#endif
static MagickBooleanType InvokePostscriptDelegate(
- const MagickBooleanType verbose,const char *command,char *output,
+ const MagickBooleanType verbose,const char *command,char *message,
ExceptionInfo *exception)
{
int
#define ExecuteGhostscriptCommand(command,status) \
{ \
- status=ExternalDelegateCommand(MagickFalse,verbose,command,output, \
+ status=ExternalDelegateCommand(MagickFalse,verbose,command,message, \
exception); \
if (status == 0) \
return(MagickTrue); \
{
SetArgsStart(command,args_start);
if (status == -101) /* quit */
- (void) FormatLocaleString(output,MaxTextExtent,
+ (void) FormatLocaleString(message,MaxTextExtent,
"[ghostscript library]%s: %s",args_start,errors);
else
{
errors=DestroyString(errors);
return(MagickTrue);
#else
- status=ExternalDelegateCommand(MagickFalse,verbose,command,output,exception);
+ status=ExternalDelegateCommand(MagickFalse,verbose,command,message,exception);
return(status == 0 ? MagickTrue : MagickFalse);
#endif
}
filename[MaxTextExtent],
geometry[MaxTextExtent],
input_filename[MaxTextExtent],
+ message[MaxTextExtent],
options[MaxTextExtent],
- output[MaxTextExtent],
postscript_filename[MaxTextExtent];
const char
read_info->antialias != MagickFalse ? 4 : 1,
read_info->antialias != MagickFalse ? 4 : 1,density,options,filename,
postscript_filename,input_filename);
- *output='\0';
- status=InvokePostscriptDelegate(read_info->verbose,command,output,exception);
+ *message='\0';
+ status=InvokePostscriptDelegate(read_info->verbose,command,message,exception);
(void) InterpretImageFilename(image_info,image,filename,1,
read_info->filename,exception);
if ((status == MagickFalse) ||
(IsPostscriptRendered(read_info->filename) == MagickFalse))
{
(void) ConcatenateMagickString(command," -c showpage",MaxTextExtent);
- status=InvokePostscriptDelegate(read_info->verbose,command,output,
+ status=InvokePostscriptDelegate(read_info->verbose,command,message,
exception);
}
(void) RelinquishUniqueFileResource(postscript_filename);
read_info=DestroyImageInfo(read_info);
if (postscript_image == (Image *) NULL)
{
- if (*output != '\0')
+ if (*message != '\0')
(void) ThrowMagickException(exception,GetMagickModule(),
- DelegateError,"PostscriptDelegateFailed","`%s'",output);
+ DelegateError,"PostscriptDelegateFailed","`%s'",message);
image=DestroyImageList(image);
return((Image *) NULL);
}