private void _generateImages(FileVersion fileVersion, InputStream inputStream) throws Exception { if (GhostscriptUtil.isEnabled()) { _generateImagesGS(fileVersion, inputStream); } else { _generateImagesPB(fileVersion, inputStream); } }
private void _generateImages(FileVersion fileVersion, File file) throws Exception { if (GhostscriptUtil.isEnabled()) { if (!_ghostscriptInitialized) { GhostscriptUtil.reset(); _ghostscriptInitialized = true; } _generateImagesGS(fileVersion, file); } else { _generateImagesPB(fileVersion, file); } }