id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4000	Output formats (Cairo PDF/SVG) fails on Mapscript (mapserver 6.0.1)	mmanso	unicoletti	"I'm developing a java application using mapscript. With this application can generate on the fly the map file and parse WMS request using OWSRequest object and map.OWSDispatch method.

All works fine when output format are usual: png, jpeg, etc. but when the output format selected are PDF or SVG ''map.OWSDispatch'' method return trought stdoutput re result (PDF or SVG binary information) despite having indicated that the dump output in a buffer.

This is the source code used:

OWSRequest req = new OWSRequest();
String parNames[] = request.getParameterNames();
String parValues[] = request.getParameterValues();

for (int i = 0; i < parNames.length; i++){
    req.setParameter(parNames[i], parValues[i]);
}
mapscript.msResetErrorList();
mapscript.msCleanup();
mapscript.msIO_installStdoutToBuffer();

int owsResult = 0;
try {
     '''owsResult = map.OWSDispatch( req );'''
} catch(UnknownError openGisException) {

}
                    
System.out.println(""Content Type Striped: "" + mapscript.msIO_stripStdoutBufferContentType());
   request.getOutputStream().write(mapscript.msIO_getStdoutBufferBytes());

The problem appear at map.OWSDispatch, because in standard output appear result (binary information of PDF file), and the expected method ''mapscript.msIO_getStdoutBufferBytes()'' information returns nothing.
"	defect	new	normal		MapScript-Java	6.0	normal		cairo pdf svg fail	tbonfort
