stumpapp / stump

A free and open source comics, manga and digital book server with OPDS support (WIP)
https://stumpapp.dev
MIT License
869 stars 35 forks source link

PDF-to-ZIP conversion #156

Open aaronleopold opened 10 months ago

aaronleopold commented 10 months ago

I think it could be useful to support converting PDF files to archives of images. Fairly low effort to support this once #35 is officially merged.

DieselTech commented 10 months ago

It certainly can be useful, but it's not as straight forward on paper. Depending on the library used and the complexity of the PDF, the conversion to images can miss layers that are more complex. PDF has a lot of nuances that can cause edges cases.

aaronleopold commented 10 months ago

Good point(s). Honestly I’m not too familiar with how reliable PDF-page-to-image converting is using Pdfium, but also in general, since I generally avoid collecting PDFs myself for these very reasons. That library is pretty much the only viable option for Rust I could find, though. Hopefully for scenarios I’d imagine this feature would be used (e.g. comic books, as opposed to more complicated PDF files with text or forms), it won’t present with too many issues.