Skip to content

Instantly share code, notes, and snippets.

Muhammad Mateen mmsajjad-aspose

Block or report user

Report or block mmsajjad-aspose

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
String fileName = "test_doc.docx";
String remoteName = "TestAcceptAllRevisions.docx";
WordsApi wordsAPI=WordsAPIInitialize.getWordsAPI();
Paths.get(WordsAPIInitialize.RemoteTestFolder, this.getClass().getSimpleName(), remoteName).toString().replace("\\", "/"),
new File(Paths.get(WordsAPIInitialize.LocalCommonFolder, fileName).toString()), null, null);
AcceptAllRevisionsRequest request = new AcceptAllRevisionsRequest(remoteName,
Paths.get(WordsAPIInitialize.RemoteTestFolder, this.getClass().getSimpleName()).toString(), null, null, null, null);
View PostDocumentSaveAsRequest.js
const { WordsApi, PostDocumentSaveAsRequest, SaveOptionsData } = require("asposewordscloud");
wordsApi = new WordsApi(AppSid, AppKey);
var request = new PostDocumentSaveAsRequest({
name: "html_example.html",
saveOptionsData: new SaveOptionsData(
saveFormat: "docx",
fileName: "html_example.docx"
View PostDocumentSaveAsRequest.php
localName = "html_example.html";
$remoteName = "html_example.docx";
$subfolder = "DocumentActions/ConvertDocument";
$fullName = $remoteName;
$saveOptions = new SaveOptionsData(array("save_format" => "pdf", "file_name" => $remoteName));
$file = realpath(__DIR__ . '/../../../..') . '/TestData/Common/' . $localName;
$request = new Requests\PostDocumentSaveAsRequest($remoteName, $saveOptions, $folder="");
$result = $this->words->postDocumentSaveAs($request);
// For complete examples and data files, please go to
// The path to the documents directory.
String dataDir = Utils.getDataDir(AddRemoveCalendarExceptions.class);
Project project = new Project(dataDir + "input.mpp");
// Remove an exception
Calendar cal = project.getCalendars().toList().get(0);
if (cal.getExceptions().getCount() > 1) {
CalendarException exc = cal.getExceptions().toList().get(0);
You can’t perform that action at this time.