Error 401 when Trying to Get File after Converting PDF to PPTX in Ruby


We’re using the aspose_slides_cloud ruby gem. When trying to convert from pdf to pptx to retrieve the file, it gives a 401. Example code:
#Use a PDF Document|Documentation

require 'aspose_slides_cloud'

configuration =

configuration.app_sid = "id"

configuration.app_key = "key"

slides_api =

pdf_data = File.binread("company-risk.pdf")

options =

options.detect_tables = false

response = slides_api.import_from_pdf("company-risk.pptx", pdf_data, options, nil, "files", "ethos_pptx")

puts response.self_uri.href

=> ""

Screenshot 2024-06-19 at 11.38.28 AM.png (102.8 KB)

Please help as a priority.
Screenshot 2024-06-19 at 11.38.28 AM.png (38.2 KB)

Thank you for contacting support. I am working on the issue and will get back to you soon.

Typically response objects contain their own URLs, and they don’t have much practical value. You can download the file like this:

file_data = slides_api.download_file("files\\company-risk.pptx")

# Save the file data to a local file.
File.binwrite("company-risk.pptx", file_data)