OpenDocument.core icon indicating copy to clipboard operation
OpenDocument.core copied to clipboard

prototype pdf2htmlEX

Open andiwand opened this issue 3 years ago • 3 comments

TODO

  • [ ] fix CI problems
    • [ ] fix macos fontforge cmake install error
    • [ ] fix windows poppler compile error
  • [ ] jpeg vs png optimization
    • [ ] png optimization https://stackoverflow.com/questions/22167397/improve-performance-with-libpng
  • [ ] bug fixes
    • [ ] oom for some pdfs
  • [ ] try translate + render

andiwand avatar Dec 26 '21 17:12 andiwand

you're insane :joy: just a few thoughts:

  • we use some specific options in our app: https://github.com/opendocument-app/OpenDocument.droid/blob/bcf48e2fe55fd0ec7c675b7043d18b7f5d939311/app/src/main/java/at/tomtasche/reader/background/PdfLoader.java#L50-L54
  • don't forget to include the changes of the fork: https://github.com/ViliusSutkus89/pdf2htmlEX-Android

TomTasche avatar Dec 26 '21 17:12 TomTasche

@TomTasche it is not integrated yet but it should be quite easy. I can build pdf2htmlEX through conan already and link it into odr.core. now I just need to wire the HTML translation.

later we need to figure out how we would like to deal with the resource files of pdf2hmltEX

andiwand avatar Dec 26 '21 17:12 andiwand

feels bad that I forgot all the commands in the meantime...

my conan-cernter-index clone with pdf2html changes: https://github.com/andiwand/conan-center-index/tree/pdf2htmlEX

conan install --build=never recipes/poppler/all/conanfile.py 0.89.0@
conan install --build=never recipes/fontforge/all/conanfile.py 20200314@
conan install --build=missing recipes/pdf2htmlEX/all/conanfile.py 0.18.8-rc1@

andiwand avatar Jun 26 '22 09:06 andiwand