I also tried in vain to find the documentation about this. But it's not that hard. Your code seems right, have added a canvas to print and the line requestProperties.setDownloadResult(true);
final Canvas canvas = new Canvas();
canvas.setWidth(300);
canvas.setBorder("2px solid Red");
DynamicForm formPrint = new DynamicForm();
formPrint.setWidth(200);
formPrint.setHeight(100);
formPrint.setTop(20);
formPrint.setLeft(50);
formPrint.setBorder("2px solid Black");
TextItem textItem = new TextItem();
textItem.setName("NameBo");
textItem.setTitle("Title");
textItem.setValue("Value goes here...");
formPrint.setFields(textItem);
canvas.addChild(formPrint);
canvas.draw(); // to view onscreen
DSRequest requestProperties = new DSRequest();
requestProperties.setExportFilename("File");
requestProperties.setExportDisplay(ExportDisplay.DOWNLOAD);
requestProperties.setContentType("application/pdf");
requestProperties.setDownloadResult(true);
RPCManager.exportContent(canvas, requestProperties);
I then added the following jars from the smartgwtEE lib folder (in eclipse .classpath)
<classpathentry kind="var" path="SGWTEE_HOME/lib/isomorphic_contentexport.jar"/>
<classpathentry kind="var" path="SGWTEE_HOME/lib/iText-2.0.8.jar"/>
<classpathentry kind="var" path="SGWTEE_HOME/lib/jtidy-r938.jar"/>
And that's all that was to it :-)