Hello,
Hi Rich,
Thanks much for your reply. I was able to look at your python scripts and do the equivalent in Node.js! One question - I was trying to customize the size of the output image using:
Just to confirm, I even tried using the SDK sample code below, the only change being my particular Powerpoint deck. Same result. 720x540, not 800x600.
var file = “deck1.pptx”;
var slide = 1;
var format = “png”;
var width = 800;
var height = 600;
var outputFile = “Slide1.png”;slides.convertToImagebySize(file, slide, format, width, height, “”, “”, function(buffer) {
fs.writeFileSync(outputFile, buffer);
console.log(“File saved:”, outputFile);
});
Hi Rich,
Thanks for your reply. Unfortunately, the output file in my test still doesn’t conform to my width/height settings. I am using nearly identical code to what you reference above. Also, I even tried a second pptx file to see if it was something particular about the first one. But same results. Let me provide more details.
First, here’s the file I uploading:
https://dl.dropboxusercontent.com/u/2405581/maark/amazing.pptx
Second, here’s my upload script:
var asposeapp = new AsposeCloud({‘appSID’:AppSID,‘appKey’:AppKey,‘baseURI’:BaseProductUri});
var storage = new AsposeStorage(asposeapp);
storage.uploadFile(“amazing.pptx”, “”, “”, function(data){
console.log(data);
});
Third, here’s my convert to image script:
var asposeapp = new AsposeCloud({‘appSID’:AppSID,‘appKey’:AppKey,‘baseURI’:BaseProductUri});
var slides = new AsposeSlides(asposeapp);
var file = “amazing.pptx”;
var slide = 1;
var format = “png”;
var width = 800;
var height = 600;
var outputFile = “Slide1.png”;
slides.convertToImagebySize(file, slide, format, width, height, “”, “”, function(buffer) {
fs.writeFileSync(outputFile, buffer);
console.log(“File saved:”, outputFile);
});
Fourth, here’s the output file:
https://dl.dropboxusercontent.com/u/2405581/maark/Slide1.png
(which is 960x540).
Questions:
-
Can you try on that sample pptx file (linked above) and see if output resize works for you?
-
Is there anything in the above upload or convert scripts that would prevent the resize? Again, those scripts are directly from your sample doc code, just with the file name updated.
Thanks!
Rich
Hi Rich,
Adnan,
Hi Rich,
Sure thing. Here is a Zip that contains upload script for uploading the uls1.pptx file and convertSlide.js that attempts to convert and resize slide 1.
Hi Rich,
attached is complete example - including node modules and your sdk.
Hi Rich,
Hi Rich,
Thanks much for the update. Do you have a timeframe on the resolution of this issue? As indicated before, the ability to resize is critical to our project requirements. So, while we love your API and would love to be able to use it, we are looking to go with Zamzar unless this issue can be resolved soon.
Hi Rich,
Thank you for getting back to us.
I have observed your comments and like to share with you that this was an issue with the SDK which has been fixed in recent release. I request you to please download SDK from this link and then share your kind feedback with us.
Please let us know if the issue persists. We will be happy to assist you further.
Best Regards,
The issues you have found earlier (filed as SAASSLIDES-178) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.