csHelper = ColorSpaceHelperFactory.getColorSpaceHelper(csInlinedBase,
documentHandler, ColorSpaceRestriction.ONLY_DEVICE);
}
List<ValidationError> errors = new ArrayList<ValidationError>();
try {
if (!csHelper.validate(errors)) {
ValidationError ve = errors.get(0);
throwContentStreamException(ve.getDetails(), ve.getErrorCode());
}
} catch (ValidationException e) {
throw new IOException(e.getMessage());