SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
String checksum = deltaGenerator.sendDelta(fileName, new ByteArrayInputStream(file), editor, true);
editor.closeFile(fileName, checksum);
editor.closeDir();
editor.closeEdit();
} catch (Exception ex) {
throw new IllegalArgumentException("PDF could not be stored to SVN: " + ex.getMessage(), ex);
}