1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-13 17:56:20 +00:00

Closes #33: subviews for /document/view/id

This commit is contained in:
jendib
2015-11-01 14:48:07 +01:00
parent 08633a993d
commit 66cb7333c1
12 changed files with 373 additions and 310 deletions

View File

@@ -105,7 +105,7 @@ public class FileUtil {
PDDocument pdfDocument = null;
try {
PDFTextStripper stripper = new PDFTextStripper();
pdfDocument = PDDocument.load(inputStream, true);
pdfDocument = PDDocument.load(inputStream);
content = stripper.getText(pdfDocument);
} catch (IOException e) {
log.error("Error while extracting text from the PDF", e);
@@ -157,7 +157,7 @@ public class FileUtil {
// Generate preview from the first page of the PDF
PDDocument pdfDocument = null;
try {
pdfDocument = PDDocument.load(inputStream, true);
pdfDocument = PDDocument.load(inputStream);
PDFRenderer renderer = new PDFRenderer(pdfDocument);
image = renderer.renderImage(0);
} finally {