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

stream operator isn't terminated by valid EOL #172

Open
jeremiecourlivant opened this issue Jul 21, 2023 · 3 comments
Open

stream operator isn't terminated by valid EOL #172

jeremiecourlivant opened this issue Jul 21, 2023 · 3 comments

Comments

@jeremiecourlivant
Copy link

Hello,

When I use the module, some pdfs generate images with the message.

**** Error: stream operator isn't terminated by valid EOL.. Output may be incorrect.. **** Error: stream operator isn't terminated by valid EOL.. Output may be incorrect

image

And the image is not readable for the browser.

If I remove the warning, the image is good.

So is it possible to remove the warning in the image ?

Thanks,
Jérémie

@mskec
Copy link
Collaborator

mskec commented Aug 2, 2023

Hi @jeremiecourlivant, thanks for reporting this.

It seems like the reason for the warning is a PDF that does not follow the PDF specification. The error does not come from this library directly, but from Ghostscript dependency.

I can take a look if there's a way to throw an error instead of silently failing and outputting the warning in the image.
For that I need a reproduction repository and a sample of invalid PDF that causes the warning. Can you able to provide this?

@jeremiecourlivant
Copy link
Author

Hello, an example of pdf that create a warning :

Compte-rendu d'entretien 2021 (1).pdf

What do you mean by reproduction repository ?

Thanks,
Jérémie

@mskec
Copy link
Collaborator

mskec commented Aug 29, 2023

Hi @jeremiecourlivant, by reproduction repository I mean a repo I can clone and run without additional setup that would show the error.
Anyway, the PDF is enough. I will try to run it and see if there's something we can do to handle this differently.

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