Generate Thumbnail of Pdf in Android
<p>I want to generate the image(thumbnail) from pdf file just like done by <strong>WhatsApp</strong> as shown below
<a href="https://i.stack.imgur.com/fVTPy.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/fVTPy.jpg" alt="WhatsApp"></a></p>

<p>I have tried</p>

<ol>
<li><strong>PDFBox</strong> (<a href="https://github.com/TomRoush/PdfBox-Android" rel="noreferrer">https://github.com/TomRoush/PdfBox-Android</a>)</li>
<li><strong>Tika</strong> (compile 'org.apache.tika:tika-parsers:1.11')</li>
<li><strong>AndroidPdfViewer</strong> (<a href="https://github.com/barteksc/AndroidPdfViewer" rel="noreferrer">https://github.com/barteksc/AndroidPdfViewer</a>)</li>
</ol>

<p>and still unable to find a way to generate image from pdf.</p>

<hr>

<p><strong><em>PDFBox:</em></strong></p>

<p>There is a github issue that deals with this problem (<a href="https://github.com/TomRoush/PdfBox-Android/issues/3" rel="noreferrer">https://github.com/TomRoush/PdfBox-Android/issues/3</a>) but this is still unresolved.</p>

<p><strong>Note:</strong> I am successfully able to extract image from PDF using <strong>PDFBOX</strong></p>

<hr>

<p><strong><em>AndroidPdfViewer:</em></strong></p>

<p>Github issue (<a href="https://github.com/barteksc/AndroidPdfViewer/issues/49" rel="noreferrer">https://github.com/barteksc/AndroidPdfViewer/issues/49</a>)</p>