Skip to content

Commit 1fb5e7c

Browse files
Updated With 19.4 Release
1 parent ea70c48 commit 1fb5e7c

6 files changed

Lines changed: 78 additions & 14 deletions

Examples/GroupDocs.Viewer.Cloud.Node.Examples.njsproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@
5757
<Compile Include="Working_With_Storage\Viewer_Node_Object_Exists.js" />
5858
<Compile Include="Working_With_Storage\Viewer_Node_Storage_Exist.js" />
5959
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_Fonts_Path_Options.js" />
60+
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_Responsive_HTML.js" />
6061
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_HTML_ViewOptions.js" />
6162
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_CAD_Options.js" />
63+
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_OutputPath.js" />
6264
<Compile Include="Working_With_View\Viewer_Node_Delete_View_With_Default_ViewFormat.js" />
6365
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_StartPage_And_CountPages.js" />
6466
<Compile Include="Working_With_View\Viewer_Node_Create_View_With_Project_Options.js" />

Examples/Run_Examples.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ require('./Supported_File_Formats/Viewer_Node_Get_All_Supported_Formats').Run();
165165
//// Create View With HTML ViewOptions
166166
//require('./Working_With_View/Viewer_Node_Create_View_With_HTML_ViewOptions').Run();
167167

168+
//// Create View With Responsive HTML ViewOptions
169+
//require('./Working_With_View/Viewer_Node_Create_View_With_Responsive_HTML').Run();
170+
171+
//// Create View With Output Path & ViewOptions
172+
//require('./Working_With_View/Viewer_Node_Create_View_With_OutputPath').Run();
173+
168174
//// ***********************************************************
169175
//// ***** DELETE VIEWS *****
170176
//// ***********************************************************
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"use strict";
2+
class Viewer_Node_Create_View_With_OutputPath {
3+
static Run() {
4+
5+
var viewOptions = new groupdocs_viewer_cloud_1.ViewOptions();
6+
7+
var fileInfo = new groupdocs_viewer_cloud_1.FileInfo();
8+
fileInfo.filePath = "viewerdocs/sample.docx";
9+
fileInfo.password = "";
10+
fileInfo.storageName = myStorage;
11+
12+
viewOptions.fileInfo = fileInfo;
13+
viewOptions.outputPath = "viewerdocs";
14+
15+
var request = new groupdocs_viewer_cloud_1.CreateViewRequest(viewOptions);
16+
17+
viewerApi.createView(request)
18+
.then(function (response) {
19+
console.log("Expected response type is ViewResult: " + response.pages.length);
20+
})
21+
.catch(function (error) {
22+
console.log("Error: " + error.message);
23+
});
24+
}
25+
}
26+
module.exports = Viewer_Node_Create_View_With_OutputPath;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"use strict";
2+
class Viewer_Node_Create_View_With_Responsive_HTML {
3+
static Run() {
4+
5+
var viewOptions = new groupdocs_viewer_cloud_1.ViewOptions();
6+
7+
var fileInfo = new groupdocs_viewer_cloud_1.FileInfo();
8+
fileInfo.filePath = "viewerdocs/three-layouts.dwf";
9+
fileInfo.password = "";
10+
fileInfo.storageName = myStorage;
11+
12+
viewOptions.fileInfo = fileInfo;
13+
14+
var renderOptions = new groupdocs_viewer_cloud_1.HtmlOptions();
15+
renderOptions.isResponsive = true;
16+
17+
viewOptions.renderOptions = renderOptions;
18+
19+
var request = new groupdocs_viewer_cloud_1.CreateViewRequest(viewOptions);
20+
21+
viewerApi.createView(request)
22+
.then(function (response) {
23+
console.log("Expected response type is ViewResult: " + response.pages.length);
24+
})
25+
.catch(function (error) {
26+
console.log("Error: " + error.message);
27+
});
28+
}
29+
}
30+
module.exports = Viewer_Node_Create_View_With_Responsive_HTML;

Examples/package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"name": ""
88
},
99
"dependencies": {
10-
"groupdocs-viewer-cloud": "^19.3.2"
10+
"groupdocs-viewer-cloud": "^19.4.0"
1111
}
1212
}

0 commit comments

Comments
 (0)