We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Empty images after splitting the document

Hi! When I’m trying to split my pptx presentation into png images I get normal response with Status and SplitResult. But links to images lead to blank pages, no images there. Can you help me with this issue? Thanks!

Hi Vadim,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the template file.

I tried your conversion of your PPTX file to PNG using Aspose.Slides for Cloud and I am unable to notice any issue. Please share your sample code with us to help us reproduce the issue. Also, are you using Aspose.Cloud storage or some third party storage?

Sorry for the inconvenience,

Thanks for the reply. Here is my sample code in ruby:


app_sid = 'xxx’
app_key = 'yyy’

product_uri = "http://api.aspose.com/v1.1"

filename = 'Lecture-01.pptx’

Aspose::cloud::Common::AsposeApp.new app_sid, app_key

Aspose::cloud::Common::Product.set_base_product_uri product_uri

folder = Aspose::cloud::AsposeStorage::Folder.new

folder.upload_file ‘/home/chill/tmp/’ + filename

folder.file_exists filename # returns true

extractor = Aspose::cloud::Slides::Extractor.new filename
extractor.get_image_count

signed_uri = Aspose::cloud::Common::Utils.sign "http://api.aspose.com/v1.1/slides/#{filename}/split?format=png"
response_stream = RestClient.post signed_uri, { accept: ‘application/json’ }
puts Nokogiri.XML(response_stream)

the last command simply generates the pretty output of server response:

<?xml version="1.0"?>
OK

Those links lead to the issue. Maybe I should sign that urls with app_sid etc. ?

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the details.

Yes, you will need to build the URI for the split pages and Sign it. Please see the following documentation link with details and sample regarding how to achieve it.

Split PowerPoint Presentations

In case you need any further assistance, please feel free to contact support.

Thanks & Regards,