Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature- light html #75

Open
AlenToma opened this issue Jul 30, 2022 · 3 comments
Open

feature- light html #75

AlenToma opened this issue Jul 30, 2022 · 3 comments

Comments

@AlenToma
Copy link

AlenToma commented Jul 30, 2022

Converting a PDF that contains 150+ pages takes more than 10+ min.
It would be great if we could skip some feature, like for example css ,script and style.

The Idea is that it will speed up things.

The PDF I am testing is here OVERLORD-VOL15

There is already an issue about creating a progress callback feature, it would be great if you could also add convertlight or something,
that will skip some tasks that a developer do not want.

When I convert the pdf to html, I am trying to create an ebook with it. And that is why I would not care about style as I already have my own.

I would rewrite all the text and would not care about style etc..

For reference About what I mean, please read stackoverflow

@andiwand
Copy link
Member

I think there is quite some optimization potential with pdf2htmlEX which is not utilized yet. one thing is the compression level or resolution of the bitmap the PDF is rendered into. the other thing is doing the rendering async and on demand e.g. you can scroll through the document and the pages appear one after the other

@ViliusSutkus89
Copy link
Collaborator

pdf2htmlEX has some input parameters (arguments) that could be tweaked.

https://github.com/ViliusSutkus89/pdf2htmlEX-Android/blob/c033ea89e1920e06ab1bc31dfc64158644d4f68f/dependency-builder/src/main/cpp/packages/pdf2htmlEX-Patch-Source-make-a-library.patch#L476

I'll expose them in Java interface.

@AlenToma
Copy link
Author

AlenToma commented Aug 3, 2022

@ViliusSutkus89 that is greet, in mean time could you please look after this problem https://stackoverflow.com/questions/73210045/converting-image-to-bas64string-in-react-native-android-sdk-using-pdfbox?noredirect=1#comment129297775_73210045
as I have tried to create solution for my application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants