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
View AcceptAllRevisionsExample.java
String fileName = "test_doc.docx";
String remoteName = "TestAcceptAllRevisions.docx";
WordsApi wordsAPI=WordsAPIInitialize.getWordsAPI();
wordsAPI.putCreate(
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);
View Examples-src-main-java-com-aspose-tasks-examples-CalendarExceptions-AddRemoveCalendarExceptions-adding-removing-calender-exceptions.java
// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
// 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.