LibrePDF / OpenPDF

OpenPDF is a free Java library for creating and editing PDF files, with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Other
3.54k stars 582 forks source link

Question/FR: Extract thumbnail #151

Closed GitMensch closed 5 years ago

GitMensch commented 5 years ago

Is it possible to extract embedded thumbnails from PDF files (for the complete file / per page) or generate thumbnails?

GitMensch commented 5 years ago

If this is not possible I'd also would like to find a minimal alternative in Java (the current one is to use Apache PDFBox [which also needs Apache TextBox], but it is a lot of stuff and a duplicated PDF toolkit for just creating a thumbnail).

GitMensch commented 5 years ago

Thank you for the note, but according to its docs http://flyingsaucerproject.github.ioi it can't process PDF - or did you meant to generate HTML + CSS from the PDF with OpenPDF first (if yes, how)?

andreasrosdal commented 5 years ago

You're right. You would probably need a PDF-renderer for this to work, something like Acrobat Reader, but a library. So it is not possible. Closing.