[gs-devel] R: very stupid problem

Marco Berardi marco.berardi at innovery.it
Wed Dec 22 09:57:36 UTC 2010

A stupid problem has always a stupid answer: I founded a bug in my code
managing wide character.






cid:image001.jpg at 01C92255.127B6110


Da: gs-devel-bounces at ghostscript.com
[mailto:gs-devel-bounces at ghostscript.com] Per conto di Marco Berardi
Inviato: martedì 21 dicembre 2010 15.20
A: gs-devel at ghostscript.com
Oggetto: [gs-devel] very stupid problem




I’m not able to go over a very stupid problem: I’m calling
gsapi_init_with_args function (from gsdll32.dll) for creating a PDF file.
All goes OK except if  -sOutputFile param points to a system directory that
contains “spaces” (C:\program files). Of course in that case  -sOutputFile
param must be included in quotes (-sOutputFile="C:\\dir with
space\\test.pdf" ), but PDF file is not created! (I also tried to run the
same command with Gswin32c, and it goes

What do you think about it?


Thanks for you support,


Best regards  



PS this is the list of command params


gsargv[0] = "gs";   

gsargv[1] = "-dPDFX";

gsargv[2] = "-dBATCH";    

gsargv[3] = "-dNOPAUSE";    

gsargv[4] = "-dNOOUTERSAVE";

gsargv[5] = "-dUseCIEColor";

gsargv[6] = "-sDEVICE=pdfwrite";  

gsargv[7] = ArgOutputFile; //contains -sOutputFile="C:\\dir with

gsargv[8] = "-c";

gsargv[9] = ".setpdfwrite";

gsargv[10] = "-f";

gsargv[11] = PsFile; //contains C:\\test.ps

 gsargv[12] = NULL;







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ghostscript.com/pipermail/gs-devel/attachments/20101222/1d479d2c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 7197 bytes
Desc: not available
URL: <http://ghostscript.com/pipermail/gs-devel/attachments/20101222/1d479d2c/attachment.jpe>

More information about the gs-devel mailing list