Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Convert a PDF Page to Image Error

$
0
0
Hi,

I'm trying the example you have here using node.js
http://www.aspose.com/docs/display/pdfcloud/Convert+a+PDF+Page+to+Image+with+Default+Size

but the image is not created. Instead i'm getting this error:
{"Message":"Error 'The specified file does not exist.', Bucket 'afc-filestorage', FilePath '9441/65994b98-088d-4aca-b51d-ba2c724ef04f/3.pdf'"}

I've seen another post related to this...but one of the last answers says it was fixed already?

Thanks!

The code i'm talking about is this one:
var fs = require("fs");var AsposeCloud = require("asposecloud");var aspose = new AsposeCloud({
  appSID: "Get it from https://cloud.aspose.com",  appKey: "Get it from https://cloud.aspose.com",  baseURI: "http://api.aspose.com/v1.1/"});var pdf = aspose.Pdf();var file = "Document1.pdf";var page = 1;var format = "png";var outputFile = "Page1.png";

pdf.convertToImage(file, page, format, function(result) {
  fs.writeFileSync(outputFile, result);
  console.log("File saved:", outputFile);
});



Viewing all articles
Browse latest Browse all 3131

Trending Articles