mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 09:46:17 +00:00
#55: Export document in PDF (utilities)
This commit is contained in:
@@ -150,7 +150,7 @@ public class FileResource extends BaseResource {
|
||||
file.setMimeType(MimeTypeUtil.guessOpenDocumentFormat(file, fileInputStream));
|
||||
|
||||
// Convert to PDF if necessary (for thumbnail and text extraction)
|
||||
InputStream pdfIntputStream = FileUtil.convertToPdf(fileInputStream, file);
|
||||
InputStream pdfIntputStream = FileUtil.convertToPdf(file, fileInputStream, true);
|
||||
|
||||
// Save the file
|
||||
FileUtil.save(fileInputStream, pdfIntputStream, file, user.getPrivateKey());
|
||||
|
||||
Reference in New Issue
Block a user