|
1 | 1 |     [](LICENSE)  |
2 | 2 |
|
3 | | -# Manipulate Project Files via Node.js Cloud REST API |
| 3 | +# Manipulate MS Project Files in Node.js via Cloud REST API |
4 | 4 |
|
5 | | -Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in the Cloud. [Aspose.Tasks Cloud SDK for Go](https://products.aspose.cloud/tasks/go) wraps the REST API to make it easier for the developers to integrate Task Management features in their own cloud-based Go applications. |
| 5 | +Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in Node.js. [Aspose.Tasks Cloud SDK for Node.js](https://products.aspose.cloud/tasks/nodejs) wraps the REST API to make it easier for the developers to integrate MS Project Task Management features in their own cloud-based Node.js applications on Linux, MacOS, Windows or Android. |
6 | 6 |
|
7 | 7 | Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/taskscloud/Developer+Guide) & [API Reference](https://apireference.aspose.cloud/tasks/) to know all about Aspose.Tasks Cloud API. |
8 | 8 |
|
@@ -54,19 +54,19 @@ XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG |
54 | 54 | Register an account at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) to get you application information. Next, execute `npm i @asposecloud/aspose-tasks-cloud` from the command line to install Aspose.Tasks Cloud SDK for Node.js via NPM. |
55 | 55 |
|
56 | 56 |
|
57 | | -## Get All Tasks from MPP Project File in Node.Js |
| 57 | +## Convert MS Project MPP to PDF in Node.Js |
58 | 58 |
|
59 | 59 | ```js |
60 | 60 | // Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required). |
61 | 61 | const tasksApi = new TasksApi("MY_CLIENT_ID", "MY_CLIENT_SECRET"); |
62 | 62 |
|
63 | | - const request: GetTasksRequest = { name: "template.mpp", folder: "documents", storage: ""} |
| 63 | + const request: GetReportPdfRequest = { name: "template.mpp", folder: "documents", storage: "", type: ReportType.Milestones} |
64 | 64 |
|
65 | | - tasksApi.getTasks(request) |
| 65 | + tasksApi.getReportPdf(request) |
66 | 66 | .then((result) => { |
67 | 67 | // Deal with a result |
68 | 68 | console.log(result.response.statusCode); |
69 | | - console.log(result.body); |
| 69 | + console.log(result.body.buffer); |
70 | 70 | }) |
71 | 71 | .catch(function(err) { |
72 | 72 | // Deal with an error |
|
0 commit comments