How can I get a document's thumbnail as Stream?How can I get a document's thumbnail as Stream?https://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1213860142024-03-29T15:57:49Z2024-03-29T15:57:49ZHow can I get a document's thumbnail as Stream?Raman Broachhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1213860132022-03-27T11:52:22Z2022-03-27T11:52:22Z<p>I need to read the thumbnail image of a document (PDF) as an Input Stream.</p>
<p>I am trying the following code, it is working fine for an image (PNG)
but not for a document (PDF)</p>
<p>code:<br />
ImageProcessorUtil.getThumbnailAsStream(fileEntry.getLatestFileVersion(), DLPreviewableProcessor.THUMBNAIL_INDEX_DEFAULT)</p>
<p>observation:<br /> - No error is coming in the logs.<br /> - Input
stream is not null, it's empty.<br /> - I get the other details of the
file eg fileEntry.getFileEntryId() so the file exists and is accessible.</p>
<p>Any help is much appreciated.</p>Raman Broach