You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating the word doc using caracal and saving that on s3. But generated word document is corrupted as well images are not getting displayed.
docx = Caracal::Document.new("test.docx")
docx.p "sample text"
docx.img get_presigned_url_from_blob(image.blob) do
data file_to_upload.read # this returns binary data
width width
height height
align :left
top 5
bottom 5
left 10
right 10
end
I dont want to save the file created locally so I am directly uploading the generated contents on s3 with
test.docx
Hi,
I am creating the word doc using caracal and saving that on s3. But generated word document is corrupted as well images are not getting displayed.
I dont want to save the file created locally so I am directly uploading the generated contents on s3 with
Am I using the gem correctly? or its the issue with latest version. I am using Rails 7 and Ruby 3.1.1
Note: generated doc is attached
The text was updated successfully, but these errors were encountered: