Closed TTD93 closed 5 years ago
Hi @TTD93 ,
Thank you for opening the issue.
I think the method you're looking for is #to_pdf
.
This method formats the data to PDF a format and returns a binary string that represents the PDF file contents.
The contents can be saved to a file or uploaded as a binary blob.
Good luck! Bo.
Thanks!
Hi, I'm currently using combined PDF to read different files which is encoded in base64. After I've combined the PDF i want to upload it to storage using .attach(io:)
It seems like this gem forces you to save the file locally (and not as a Tempfile) before you can access the objects content? And is there an easier way to add the files to the combined PDF other than creating all the Tempfiles first?
My current code: