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

Limite para geração do arquivo pdf #119

Open
anapaulaweiss opened this issue May 11, 2020 · 7 comments
Open

Limite para geração do arquivo pdf #119

anapaulaweiss opened this issue May 11, 2020 · 7 comments

Comments

@anapaulaweiss
Copy link

dependendo o tamanho do html ao tentar gerar para pdf o plugin aborta o aplicativo, 160kb já aborta.

@cesarvr
Copy link
Owner

cesarvr commented May 11, 2020

Hi @anapaulaweiss,

For what I can understand the plugin is basically crashing for content above 160KB. Unfortunately I cannot reproduce this error. I wrote this project example that maybe can provide you with some guidance, here is quick demo:

ezgif com-video-to-gif

As you can see in those two example the plugin is able to convert HTML content of considerable size.

@anapaulaweiss
Copy link
Author

qual tamanho aproximado desse html do seu exemplo?

@cesarvr
Copy link
Owner

cesarvr commented May 11, 2020

default.pdf
my-pdf.pdf
First one is 870KB
The Second one is 4.9 MB

@anapaulaweiss
Copy link
Author

realmente, fiz um teste aqui, e são 160kb só do texto html, mas possui muitas imagens e acaba passando de 7MB, nesse caso qual seria a sugestão para esses arquivos com muitas imagens e que acabam ficando muito grande?

@cesarvr
Copy link
Owner

cesarvr commented May 13, 2020

Sorry I don't speak Portuguese, but google translator tells me that you are asking something about: "We can assume the PDF files are that big because of the images" -- the answer will be yes, the PDF file acts as a container (or zip file) that encompass all kind of assets such as words, images, videos, etc.

Also if is crashing can you share the error message and platform you are using ? That would be helpful.

Cheers

@anapaulaweiss
Copy link
Author

of course, sorry. Would you have a solution that you would recommend for this type of larger file?

@anapaulaweiss
Copy link
Author

there is no error, just abort the application, I realized that for some cell phones with the same file size it did not abort the application and for another yes, it seems to be related to the memory of the cell

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

2 participants