logger.debug("xml2Fop2Pdf(String xml (length)=" + xml.length() + ", String fopxsl=" + fopxsl + ", NSDictionary<String,Object> config=" + config + ") - start"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
NSMutableDictionary<String, Object> _config = config == null ? new NSMutableDictionary<String, Object>() : config.mutableClone();
FOPBuilder fopb = FOPBuilderFactory.newBuilder();
ByteArrayOutputStream os = new ByteArrayOutputStream();
try {
fopb.setConfiguration(_config);
fopb.setXML(xml);
fopb.setXSL(fopxsl);
fopb.createDocument(os);
os.close();
NSData returnNSData = new NSData(os.toByteArray());
if (logger.isDebugEnabled()) {
logger.debug("xml2Fop2Pdf(String, String, NSDictionary<String,Object>) - end - return value=" + returnNSData); //$NON-NLS-1$
}