File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,17 +101,20 @@ At first generate the JAR by executing `mvn package`, then manually install the
101101
102102``` java
103103// For complete examples and data files, please go to https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java-samples
104- String MyAppKey = " " ; // Get AppKey from https://dashboard.groupdocs.cloud
105- String MyAppSid = " " ; // Get AppSID from https://dashboard.groupdocs.cloud
104+ // Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
105+ String MyClientId = " " ;
106+ String MyClientSecret = " " ;
106107
107- Configuration configuration = new Configuration (MyAppSid , MyAppKey );
108+ Configuration configuration = new Configuration (MyClientId , MyClientSecret );
108109ViewApi apiInstance = new ViewApi (configuration);
109110
110111FileInfo fileInfo = new FileInfo ();
111112fileInfo. setFilePath(" SampleFiles/sample.docx" );
113+
112114ViewOptions viewOptions = new ViewOptions ();
113115viewOptions. setFileInfo(fileInfo);
114116viewOptions. setViewFormat(ViewFormatEnum . PDF );
117+
115118PdfOptions renderOptions = new PdfOptions ();
116119renderOptions. setPermissions(PermissionsEnum . DENYMODIFICATION );
117120renderOptions. setPermissionsPassword(" p123" );
You can’t perform that action at this time.
0 commit comments