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

CombinePDF.parse is unable to process some PDF files #221

Open
userrails opened this issue Sep 21, 2022 · 0 comments
Open

CombinePDF.parse is unable to process some PDF files #221

userrails opened this issue Sep 21, 2022 · 0 comments

Comments

@userrails
Copy link

Here is my sample code that is working for most of the PDF urls hosted in s3, except for 1.

NOTE: because this is customer invoice file, I can't share the file.

@pdf = CombinePDF.new
@pdf << CombinePDF.parse(Net::HTTP.get_response(URI.parse(s3_pdf_url)).body)

Again, above code is working as expected for 90% of the pdf files, there is one file that is not working for me. I don't see any exceptions generated and not sure how to debug it.

CombinePDF do generates the final pdf and it is blank and looks like this:

image

@userrails userrails changed the title Combinepdf.parse is unable to process some PDF file CombinePDF.parse is unable to process some PDF files Sep 21, 2022
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

1 participant