Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The GIST contains .NET Examples of Aspose.Words Cloud APIs.
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "AcceptAllRevisions.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var acceptAllRevisionsRequest = new AcceptAllRevisionsRequest(fileName, folder, destFileName: destFileName);
var actual = wordsApi.AcceptAllRevisions(acceptAllRevisionsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var image = "aspose-cloud.png";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var putDrawingObjectRequest = new PutDrawingObjectRequest(fileName, "{\"Left\": 0}", File.OpenRead(@"c:\Data\" + image), folder);
var actual = wordsApi.PutDrawingObject(putDrawingObjectRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "SampleWordDocument.docx";
Field body = new Field { Result = "3", FieldCode = "{ NUMPAGES }", NodeId = "0.0.3" };
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var putFieldRequest = new PutFieldRequest(fileName, body, folder, nodePath: "sections/0/paragraphs/0");
var actual = wordsApi.PutField(putFieldRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "Footnote.doc";
var footNote = new Footnote { FootnoteType = Footnote.FootnoteTypeEnum.Endnote, Text = "test endnote" };
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var putFootnoteRequest = new PutFootnoteRequest(fileName, footNote, folder);
var actual = wordsApi.PutFootnote(putFootnoteRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "UpdatedDocument.docx";
string folder = null; // File exists at the root of the storage
var body = new FormFieldTextInput
{
Name = "FullName",
Enabled = true,
CalculateOnExit = true,
StatusText = string.Empty,
TextInputType = FormFieldTextInput.TextInputTypeEnum.Regular,
TextInputDefault = "123",
TextInputFormat = "UPPERCASE"
};
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var putFormFieldRequest = new PutFormFieldRequest(fileName, body, folder, nodePath: "sections/0/paragraphs/0", destFileName: destFileName);
var actual = wordsApi.PutFormField(putFormFieldRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var paragraph = new ParagraphInsert { Text = "This is a new paragraph for your document" };
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var paragraphRequest = new PutParagraphRequest(fileName, paragraph, folder, nodePath: "sections/0");
var actual = wordsApi.PutParagraph(paragraphRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "Run.doc";
var run = new Run { Text = "run with text" };
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var runRequest = new PutRunRequest(fileName, "paragraphs/1", run, folder);
var actual = wordsApi.PutRun(runRequest);
// For a complete example and data file, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet/blob/master/Examples/Aspose.Words.Cloud.Sdk.Examples/HeaderFooter/InsertHeadersAndPageNumbersToAWordDocument.cs
var run = new Run { Text = "Cloud File Format APIs" };
var runRequest = new PutRunRequest(fileName, "sections/0/headersfooters/0/paragraphs/0", run);
var actual = wordsApi.PutRun(runRequest);
// For a complete example and data file, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet/blob/master/Examples/Aspose.Words.Cloud.Sdk.Examples/HeaderFooter/InsertHeadersAndPageNumbersToAWordDocument.cs
var run = new Run { Text = "ASPOSE" };
var runRequest = new PutRunRequest(fileName, "sections/0/headersfooters/1/paragraphs/0", run);
var actual = wordsApi.PutRun(runRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_doc.docx";
var documentToAppend = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
string destFileName = null; // Changes are made in the source docuemnt
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
// Upload document to append to Cloud Storage
request = new PutCreateRequest(documentToAppend, File.OpenRead(@"c:\Data\" + documentToAppend), null, null);
storageApi.PutCreate(request);
var documentList = new DocumentEntryList();
System.Collections.Generic.List<DocumentEntry> docEntries = new System.Collections.Generic.List<DocumentEntry>();
DocumentEntry docEntry = new DocumentEntry { Href = documentToAppend, ImportFormatMode = "KeepSourceFormatting" };
docEntries.Add(docEntry);
documentList.DocumentEntries = docEntries;
var postAppendDocumentRequest = new PostAppendDocumentRequest(fileName, documentList, folder, destFileName: destFileName);
var actual = wordsApi.PostAppendDocument(postAppendDocumentRequest);
// For a complete example and data file, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet/blob/master/Examples/Aspose.Words.Cloud.Sdk.Examples/HeaderFooter/InsertHeadersAndPageNumbersToAWordDocument.cs
var runIndex = 0;
var fontDto = new Font { Bold = true, Name = "Verdana", Size = 14, Color = new XmlColor { Web = "#000000" } };
// Apply formatting to first page header
var documentParagraphRunFontRequest = new PostDocumentParagraphRunFontRequest(fileName, fontDto, "sections/0/headersfooters/1/paragraphs/0", runIndex);
var actual = wordsApi.PostDocumentParagraphRunFont(documentParagraphRunFontRequest);
// Apply formatting to header of all other pages
documentParagraphRunFontRequest = new PostDocumentParagraphRunFontRequest(fileName, fontDto, "sections/0/headersfooters/0/paragraphs/0", runIndex);
actual = wordsApi.PostDocumentParagraphRunFont(documentParagraphRunFontRequest);
The GIST contains .NET Examples of Aspose.Words Cloud APIs.
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var body = new ProtectionRequest { NewPassword = string.Empty };
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentProtectionRequest = new PostChangeDocumentProtectionRequest(fileName, body, folder);
var actual = wordsApi.PostChangeDocumentProtection(documentProtectionRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var classifyDocumentRequest = new ClassifyDocumentRequest(fileName, folder, bestClassesCount: "3");
var actual = wordsApi.ClassifyDocument(classifyDocumentRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
var request = new ClassifyRequest("Try text classification", "3");
var actual = this.WordsApi.Classify(request);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName1 = "compareTestDoc1.doc";
var fileName2 = "compareTestDoc2.doc";
var destFileName = "CompareDocumentOut.doc";
var compareData = new CompareData { Author = "author", ComparingWithDocument = fileName2, DateTime = new DateTime(2018, 10, 26) };
string folder = null; // File exists at the root of the storage
// Upload first document to Cloud Storage
PutCreateRequest request1 = new PutCreateRequest(fileName1, File.OpenRead(@"c:\Data\" + fileName1), null, null);
storageApi.PutCreate(request1);
// Upload second document to Cloud Storage
PutCreateRequest request2 = new PutCreateRequest(fileName2, File.OpenRead(@"c:\Data\" + fileName2), null, null);
storageApi.PutCreate(request2);
var request = new PostCompareDocumentRequest(fileName1, compareData, folder, destFileName: destFileName);
var actual = wordsApi.PostCompareDocument(request);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
using System.IO;
using Aspose.Words.Cloud.Sdk.Model;
using Aspose.Words.Cloud.Sdk.Model.Requests;
using Aspose.Storage.Cloud.Sdk.Model.Requests;
using Aspose.Words.Cloud.Sdk;
using Aspose.Storage.Cloud.Sdk.Api;
namespace AsposeWordsSDKExamples
{
class ConvertHTMLToWord
{
protected const string BaseProductUri = @"https://api.aspose.cloud";
protected const string MyAppKey = "xxxx";
protected const string MyAppSid = "xxxx-xxxx-xxxx-xxxx-xxxx";
static void Main(string[] args)
{
var configuration = new Configuration { ApiBaseUrl = BaseProductUri, AppKey = MyAppKey, AppSid = MyAppSid, Version = Configuration.AvailiableApiVersions.V1 };
WordsApi WordsApi = new WordsApi(configuration);
StorageApi StorageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "html_example.html";
var destFileName = "html_example.docx";
// First upload input file to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Gists\" + fileName), null, null);
StorageApi.PutCreate(request);
var saveOptionsData = new SaveOptionsData { SaveFormat = "docx", FileName = destFileName };
var saveAsRequest = new PostDocumentSaveAsRequest(fileName, saveOptionsData);
var actual = WordsApi.PostDocumentSaveAs(saveAsRequest);
}
}
}
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "45.pdf";
var destFileName = "45.docx";
string folder = null; // File exists at the root of the storage
var saveOptionsData = new SaveOptionsData { SaveFormat = "docx", FileName = destFileName };
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var postDocumentSaveAsRequest = new PostDocumentSaveAsRequest(fileName, saveOptionsData, folder);
var actual = wordsApi.PostDocumentSaveAs(postDocumentSaveAsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var format = "pdf";
var request = new PutConvertDocumentRequest(File.OpenRead(@"c:\Data\" + fileName), format);
var result = wordsApi.PutConvertDocument(request);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "test_multi_pages.pdf";
string folder = null; // File exists at the root of the storage
var saveOptionsData = new SaveOptionsData { SaveFormat = "pdf", FileName = destFileName };
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var postDocumentSaveAsRequest = new PostDocumentSaveAsRequest(fileName, saveOptionsData, folder);
var actual = wordsApi.PostDocumentSaveAs(postDocumentSaveAsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "test_multi_pages.tiff";
string folder = null; // File exists at the root of the storage
var body = new TiffSaveOptionsData { FileName = destFileName, SaveFormat = "tiff" };
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var putDocumentSaveAsTiffRequest = new PutDocumentSaveAsTiffRequest(fileName, body, folder, destFileName: destFileName);
var actual = wordsApi.PutDocumentSaveAsTiff(putDocumentSaveAsTiffRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var propertyName = "AsposeAuthor";
var destFileName = "updated_document.docx";
string folder = null; // File exists at the root of the storage
DocumentProperty body = new DocumentProperty { Name = "Author", Value = "Imran Anwar" };
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentPropertyRequest = new CreateOrUpdateDocumentPropertyRequest(fileName, propertyName, body, folder, destFileName: destFileName);
var actual = wordsApi.CreateOrUpdateDocumentProperty(documentPropertyRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableCellRequest = new DeleteTableCellRequest(fileName, "sections/0/tables/2/rows/0", 0, folder);
var actual = wordsApi.DeleteTableCell(tableCellRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var commentIndex = 0;
var destFileName = "DeleteComment.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteCommentRequest = new DeleteCommentRequest(fileName, commentIndex, folder, destFileName: destFileName);
var actual = wordsApi.DeleteComment(deleteCommentRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFieldsRequest = new DeleteFieldsRequest(fileName, folder);
var actual = wordsApi.DeleteFields(deleteFieldsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteDocumentMacrosRequest = new DeleteDocumentMacrosRequest(fileName, folder);
var actual = wordsApi.DeleteDocumentMacros(deleteDocumentMacrosRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var propertyName = "testProp";
var destFileName = "updated_document.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteRequest = new DeleteDocumentPropertyRequest(fileName, propertyName, folder, destFileName: destFileName);
var actual = wordsApi.DeleteDocumentProperty(deleteRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "DeleteDocumentWatermark.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteDocumentWatermarkRequest = new DeleteDocumentWatermarkRequest(fileName, folder, destFileName: destFileName);
var actual = wordsApi.DeleteDocumentWatermark(deleteDocumentWatermarkRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
int objectIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteDrawingObjectRequest = new DeleteDrawingObjectRequest(fileName, objectIndex, folder);
var actual = wordsApi.DeleteDrawingObject(deleteDrawingObjectRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "GetField.docx";
var fieldIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFieldRequest = new DeleteFieldRequest(fileName, fieldIndex, folder, nodePath: "sections/0/paragraphs/0");
var actual = wordsApi.DeleteField(deleteFieldRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "Footnote.doc";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFootnoteRequest = new DeleteFootnoteRequest(fileName, index, folder);
var actual = wordsApi.DeleteFootnote(deleteFootnoteRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "FormFilled.docx";
var formfieldIndex = 0;
var destFileName = "UpdatedDocument.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFormFieldRequest = new DeleteFormFieldRequest(fileName, formfieldIndex, folder, nodePath: "sections/0", destFileName: destFileName);
var actual = wordsApi.DeleteFormField(deleteFormFieldRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "HeadersFooters.doc";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteHeaderFooterRequest = new DeleteHeaderFooterRequest(fileName, index, folder);
var actual = wordsApi.DeleteHeaderFooter(deleteHeaderFooterRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "HeadersFooters.doc";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteHeadersFootersRequest = new DeleteHeadersFootersRequest(fileName, folder);
var actual = wordsApi.DeleteHeadersFooters(deleteHeadersFootersRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "MathObjects.docx";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteOfficeMathObjectRequest = new DeleteOfficeMathObjectRequest(fileName, index, folder);
var actual = wordsApi.DeleteOfficeMathObject(deleteOfficeMathObjectRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFieldsRequest = new DeleteFieldsRequest(fileName, folder, nodePath: "paragraphs/0");
var actual = wordsApi.DeleteFields(deleteFieldsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "Run.doc";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteRunRequest = new DeleteRunRequest(fileName, "paragraphs/1", index, folder);
var actual = wordsApi.DeleteRun(deleteRunRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFieldsRequest = new DeleteFieldsRequest(fileName, folder, nodePath: "sections/0");
var actual = wordsApi.DeleteFields(deleteFieldsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var deleteFieldsRequest = new DeleteFieldsRequest(fileName, folder, nodePath: "sections/0/paragraphs/0");
var actual = wordsApi.DeleteFields(deleteFieldsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRequest = new DeleteTableRequest(fileName, 1, folder);
var actual = wordsApi.DeleteTable(tableRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var borderRequest = new DeleteBorderRequest(fileName, "tables/1/rows/0/cells/0/", 0, folder);
var actual = wordsApi.DeleteBorder(borderRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var bordersRequest = new DeleteBordersRequest(fileName, "tables/1/rows/0/cells/0/", folder);
var actual = wordsApi.DeleteBorders(bordersRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRowRequest = new DeleteTableRowRequest(fileName, "tables/1", 0, folder);
var actual = wordsApi.DeleteTableRow(tableRowRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
var localName = "test_multi_pages.docx";
var remoteName = "Source.docx";
var taxonomy = "documents";
var fullName = Path.Combine(this.dataFolder, remoteName);
this.UploadFileToStorage(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(BaseTestContext.CommonFolder) + localName));
var request = new ClassifyDocumentRequest(remoteName,
this.dataFolder,
bestClassesCount: "3",
taxonomy: taxonomy);
var actual = this.WordsApi.ClassifyDocument(request);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
protected const string BaseProductUri = @"https://api.aspose.cloud";
var configuration = new Configuration { ApiBaseUrl = BaseProductUri + "/v1.1", AppKey = this.keys.AppKey, AppSid = this.keys.AppSid };
this.WordsApi = new WordsApi(configuration);
this.StorageApi = new StorageApi(this.keys.AppKey, this.keys.AppSid, BaseProductUri + "/v1.1");
var localName = "SampleMailMergeTemplate.docx";
var remoteName = "TestPostDocumentExecuteMailMerge.docx";
var fullName = Path.Combine(this.dataFolder, remoteName);
var destFileName = Path.Combine(BaseTestOutPath, remoteName);
var data = File.ReadAllText(BaseTestContext.GetDataDir(this.mailMergeFolder) + "SampleMailMergeTemplateData.txt");
this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.mailMergeFolder) + localName));
var request = new PostDocumentExecuteMailMergeRequest(remoteName, false, data, this.dataFolder, destFileName: destFileName);
var actual = this.WordsApi.PostDocumentExecuteMailMerge(request);
Assert.AreEqual(200, actual.Code);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
var localName = "45.pdf";
var remoteName = "TestPostDocumentSaveAsFromPdfToDoc.pdf";
var fullName = Path.Combine(this.dataFolder, remoteName);
var destFileName = Path.Combine(BaseTestOutPath, Path.GetFileNameWithoutExtension(remoteName) + ".docx");
var saveOptionsData = new SaveOptionsData { SaveFormat = "docx", FileName = destFileName };
this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.convertFolder) + localName));
var request = new PostDocumentSaveAsRequest(remoteName, saveOptionsData, this.dataFolder);
var actual = this.WordsApi.PostDocumentSaveAs(request);
Assert.AreEqual(200, actual.Code);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
var localName = "test_multi_pages.docx";
var remoteName = "TestPostDocumentSaveAs.docx";
var fullName = Path.Combine(this.dataFolder, remoteName);
var destFileName = Path.Combine(BaseTestOutPath, Path.GetFileNameWithoutExtension(remoteName) + ".pdf");
var saveOptionsData = new SaveOptionsData { SaveFormat = "pdf", FileName = destFileName };
this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(BaseTestContext.CommonFolder) + localName));
var request = new PostDocumentSaveAsRequest(remoteName, saveOptionsData, this.dataFolder);
var actual = this.WordsApi.PostDocumentSaveAs(request);
Assert.AreEqual(200, actual.Code);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
protected const string BaseProductUri = @"https://api.aspose.cloud";
var configuration = new Configuration { ApiBaseUrl = BaseProductUri + "/v1.1", AppKey = this.keys.AppKey, AppSid = this.keys.AppSid };
this.WordsApi = new WordsApi(configuration);
this.StorageApi = new StorageApi(this.keys.AppKey, this.keys.AppSid, BaseProductUri + "/v1.1");
var localName = "TestExecuteTemplate.doc";
var remoteName = "TestPostExecuteTemplate.docx";
var fullName = Path.Combine(this.dataFolder, remoteName);
var destFileName = Path.Combine(BaseTestOutPath, remoteName);
var data = File.ReadAllText(BaseTestContext.GetDataDir(this.mailMergeFolder) + "TestExecuteTemplateData.txt");
this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.mailMergeFolder) + localName));
var request = new PostExecuteTemplateRequest(remoteName, data, this.dataFolder, destFileName: destFileName);
var actual = this.WordsApi.PostExecuteTemplate(request);
Assert.AreEqual(200, actual.Code);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
var format = "pdf";
using (var fileStream = File.OpenRead(BaseTestContext.GetDataDir(this.convertFolder) + "test_uploadfile.docx"))
{
var request = new PutConvertDocumentRequest(fileStream, format);
var result = this.WordsApi.PutConvertDocument(request);
Assert.IsTrue(result.Length > 0, "Error occurred while converting document");
}
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
var localName = "test_multi_pages.docx";
var remoteName = "TestPutDocumentSaveAsTiff.docx";
var fullName = Path.Combine(this.dataFolder, remoteName);
var destFileName = Path.Combine(BaseTestOutPath, Path.GetFileNameWithoutExtension(remoteName) + ".tiff");
var body = new TiffSaveOptionsData { FileName = "abc.tiff", SaveFormat = "tiff" };
this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(BaseTestContext.CommonFolder) + localName));
var request = new PutDocumentSaveAsTiffRequest(remoteName,
body,
this.dataFolder,
destFileName: destFileName);
var actual = this.WordsApi.PutDocumentSaveAsTiff(request);
Assert.AreEqual(200, actual.Code);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
protected const string BaseProductUri = @"https://api.aspose.cloud";
var configuration = new Configuration { ApiBaseUrl = BaseProductUri + "/v1.1", AppKey = this.keys.AppKey, AppSid = this.keys.AppSid };
this.WordsApi = new WordsApi(configuration);
this.StorageApi = new StorageApi(this.keys.AppKey, this.keys.AppSid, BaseProductUri + "/v1.1");
using (var file = File.OpenRead(BaseTestContext.GetDataDir(this.mailMergeFolder) + "SampleExecuteTemplate.docx"))
{
using (var data = File.OpenRead(BaseTestContext.GetDataDir(this.mailMergeFolder) + "SampleExecuteTemplateData.txt"))
{
var request = new PutExecuteMailMergeOnlineRequest(file, data);
var result = this.WordsApi.PutExecuteMailMergeOnline(request);
Assert.IsTrue(result.Length > 0, "Error occurred while executing mail merge");
}
}
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
protected const string BaseProductUri = @"https://api.aspose.cloud";
var configuration = new Configuration { ApiBaseUrl = BaseProductUri + "/v1.1", AppKey = this.keys.AppKey, AppSid = this.keys.AppSid };
this.WordsApi = new WordsApi(configuration);
this.StorageApi = new StorageApi(this.keys.AppKey, this.keys.AppSid, BaseProductUri + "/v1.1");
using (var file = File.OpenRead(BaseTestContext.GetDataDir(this.mailMergeFolder) + "SampleMailMergeTemplate.docx"))
{
using (var data = File.OpenRead(BaseTestContext.GetDataDir(this.mailMergeFolder) + "SampleExecuteTemplateData.txt"))
{
var request = new PutExecuteTemplateOnlineRequest(file, data);
var result = this.WordsApi.PutExecuteTemplateOnline(request);
Assert.IsTrue(result.Length > 0, "Error occurred while executing template");
}
}
# For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-php/
$localName = "test_multi_pages.docx";
$remoteName = "Source.docx";
$subfolder = "Common";
$taxonomy = "documents";
$fullName = self::$baseTestPath . $subfolder . "/" . $remoteName;
$file = realpath(__DIR__ . '/../../../..') . '/TestData/Common/' . $localName;
$putRequest = new Aspose\Storage\Model\Requests\PutCreateRequest($fullName, $file);
$this->storage->PutCreate($putRequest);
$request = new Requests\ClassifyDocumentRequest($remoteName, $folder=self::$baseTestPath . $subfolder);
$request->set_taxonomy($taxonomy);
$result = $this->words->classifyDocument($request);
# For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-php/
$this->storage = new StorageApi();
$this->config = new Configuration();
$this->words = new WordsApi(null, $this->config);
$localName = "SampleMailMergeTemplate.docx";
$remoteName = "TestPostDocumentExecuteMailMerge.docx";
$subfolder = "DocumentActions/MailMerge";
$fullName = self::$baseTestPath . $subfolder . "/" . $remoteName;
$destName = self::$baseTestOut . $remoteName;
$data = file_get_contents(realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "SampleMailMergeTemplateData.txt");
$file = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . $localName;
$this->storage->PutCreate($Path=$fullName, $versionId = null, $storage = null, $file);
$request = new Requests\PostDocumentExecuteMailMergeRequest($remoteName, false, $data, $folder=self::$baseTestPath . $subfolder,
null, null, null, null,
null, null, $destName);
$result = $this->words->postDocumentExecuteMailMerge($request);
Assert::assertEquals(200, json_decode($result, true)["Code"]);
# For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-php/
$this->storage = new StorageApi();
$this->config = new Configuration();
$this->words = new WordsApi(null, $this->config);
$localName = "TestExecuteTemplate.doc";
$remoteName = "TestPostExecuteTemplate.docx";
$subfolder = "DocumentActions/MailMerge";
$fullName = self::$baseTestPath . $subfolder . "/" . $remoteName;
$destName = self::$baseTestOut . $remoteName;
$data = file_get_contents(realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "TestExecuteTemplateData.txt");
$file = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . $localName;
$this->storage->PutCreate($Path=$fullName, $versionId = null, $storage = null, $file);
$request = new Requests\PostExecuteTemplateRequest($remoteName, $data, $folder=self::$baseTestPath . $subfolder,
null, null, null, null,
null, null, $destName);
$result = $this->words->postExecuteTemplate($request);
Assert::assertEquals(200, json_decode($result, true)["Code"]);
# For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-php/
$this->storage = new StorageApi();
$this->config = new Configuration();
$this->words = new WordsApi(null, $this->config);
$file = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "SampleMailMergeTemplate.docx";
$data = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "SampleMailMergeTemplateData.txt";
$request = new Requests\PutExecuteMailMergeOnlineRequest($file, $data);
$result = $this->words->putExecuteMailMergeOnline($request);
Assert::assertNotNull($result, "Error occurred while executing mail merge");
# For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-php/
$this->storage = new StorageApi();
$this->config = new Configuration();
$this->words = new WordsApi(null, $this->config);
$file = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "SampleExecuteTemplate.docx";
$data = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "SampleExecuteTemplateData.txt";
$request = new Requests\PutExecuteTemplateOnlineRequest($file, $data);
$result = $this->words->putExecuteTemplateOnline($request);
Assert::assertNotNull($result, "Error occurred while executing template");
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var request = new GetAvailableFontsRequest();
var actual = wordsApi.GetAvailableFonts(request);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
int commentIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getCommentRequest = new GetCommentRequest(fileName, commentIndex, folder);
var actual = wordsApi.GetComment(getCommentRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getCommentsRequest = new GetCommentsRequest(fileName, folder);
var actual = wordsApi.GetComments(getCommentsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentRequest = new GetDocumentRequest(fileName, folder);
var actual = wordsApi.GetDocument(getDocumentRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var bookmarkName = "aspose";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentBookmarkByNameRequest = new GetDocumentBookmarkByNameRequest(fileName, bookmarkName, folder);
var actual = wordsApi.GetDocumentBookmarkByName(getDocumentBookmarkByNameRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentBookmarksRequest = new GetDocumentBookmarksRequest(fileName, folder);
var actual = wordsApi.GetDocumentBookmarks(getDocumentBookmarksRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var objectIndex = 0;
var format = "png";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var renderDrawingObjectRequest = new RenderDrawingObjectRequest(fileName, format, objectIndex, folder, nodePath: "sections/0");
var result = wordsApi.RenderDrawingObject(renderDrawingObjectRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var objectIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentDrawingObjectImageDataRequest = new GetDocumentDrawingObjectImageDataRequest(fileName, objectIndex, folder, nodePath: "sections/0");
var result = wordsApi.GetDocumentDrawingObjectImageData(documentDrawingObjectImageDataRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var objectIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentDrawingObjectByIndexRequest = new GetDocumentDrawingObjectByIndexRequest(fileName, objectIndex, folder, nodePath: "sections/0");
DrawingObjectResponse actual = wordsApi.GetDocumentDrawingObjectByIndex(documentDrawingObjectByIndexRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "sample_EmbeddedOLE.docx";
var objectIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentDrawingObjectOleDataRequest = new GetDocumentDrawingObjectOleDataRequest(fileName, objectIndex, folder, nodePath: "sections/0");
var result = wordsApi.GetDocumentDrawingObjectOleData(getDocumentDrawingObjectOleDataRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentDrawingObjectsRequest = new GetDocumentDrawingObjectsRequest(fileName, folder, nodePath: "sections/0");
var actual = wordsApi.GetDocumentDrawingObjects(documentDrawingObjectsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentFieldNamesRequest = new GetDocumentFieldNamesRequest(fileName, folder);
var actual = wordsApi.GetDocumentFieldNames(getDocumentFieldNamesRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TestGetDocumentFormatUsingStorage.docx";
var format = "text";
var storage = "AWSStorageS3";
string folder = null; // File exists at the root of the storage
var request = new GetDocumentWithFormatRequest(fileName, format, folder, storage);
var result = wordsApi.GetDocumentWithFormat(request);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_doc.docx";
var hyperlinkIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentHyperlinkByIndexRequest = new GetDocumentHyperlinkByIndexRequest(fileName, hyperlinkIndex, folder);
var actual = wordsApi.GetDocumentHyperlinkByIndex(getDocumentHyperlinkByIndexRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphRequest = new GetDocumentParagraphRequest(fileName, index, folder, nodePath: "sections/0");
var actual = wordsApi.GetDocumentParagraph(documentParagraphRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var runIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphRunRequest = new GetDocumentParagraphRunRequest(fileName, "paragraphs/0", runIndex, folder);
var actual = wordsApi.GetDocumentParagraphRun(documentParagraphRunRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var runIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphRunFontRequest = new GetDocumentParagraphRunFontRequest(fileName, "paragraphs/0", runIndex, folder);
var actual = wordsApi.GetDocumentParagraphRunFont(documentParagraphRunFontRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphsRequest = new GetDocumentParagraphsRequest(fileName, folder, nodePath: "sections/0");
var actual = wordsApi.GetDocumentParagraphs(documentParagraphsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphRequest = new GetDocumentParagraphRequest(fileName, index, folder);
var actual = wordsApi.GetDocumentParagraph(documentParagraphRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentPropertiesRequest = new GetDocumentPropertiesRequest(fileName, folder);
var actual = wordsApi.GetDocumentProperties(documentPropertiesRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string propertyName = "Author";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentPropertyRequest = new GetDocumentPropertyRequest(fileName, propertyName, folder);
var actual = wordsApi.GetDocumentProperty(getDocumentPropertyRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentProtectionRequest = new GetDocumentProtectionRequest(fileName, folder);
var actual = wordsApi.GetDocumentProtection(getDocumentProtectionRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentStatisticsRequest = new GetDocumentStatisticsRequest(fileName, folder);
var actual = wordsApi.GetDocumentStatistics(getDocumentStatisticsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentTextItemsRequest = new GetDocumentTextItemsRequest(fileName, folder);
var actual = wordsApi.GetDocumentTextItems(documentTextItemsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var format = "text";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentWithFormatRequest = new GetDocumentWithFormatRequest(fileName, format, folder);
var result = wordsApi.GetDocumentWithFormat(getDocumentWithFormatRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var format = "text";
var destFileName = "test_multi_pages.text";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getDocumentWithFormatRequest = new GetDocumentWithFormatRequest(fileName, format, folder, outPath: destFileName);
wordsApi.GetDocumentWithFormat(getDocumentWithFormatRequest);
var result = storageApi.GetIsExist(new GetIsExistRequest(destFileName));
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "GetField.docx";
var fieldIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getFieldRequest = new GetFieldRequest(fileName, fieldIndex, folder, nodePath: "sections/0/paragraphs/0");
var actual = wordsApi.GetField(getFieldRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "GetField.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getFieldsRequest = new GetFieldsRequest(fileName, folder, nodePath: "sections/0");
FieldsResponse actual = wordsApi.GetFields(getFieldsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "Footnote.doc";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getFootnoteRequest = new GetFootnoteRequest(fileName, index, folder);
var actual = wordsApi.GetFootnote(getFootnoteRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "Footnote.doc";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getFootnotesRequest = new GetFootnotesRequest(fileName, folder);
var actual = wordsApi.GetFootnotes(getFootnotesRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "FormFilled.docx";
int formfieldIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getFormFieldRequest = new GetFormFieldRequest(fileName, formfieldIndex, folder, nodePath: "sections/0");
FormFieldResponse actual = wordsApi.GetFormField(getFormFieldRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "FormFilled.docx";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getFormFieldsRequest = new GetFormFieldsRequest(fileName, folder, nodePath: "sections/0");
FormFieldsResponse actual = wordsApi.GetFormFields(getFormFieldsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "HeadersFooters.doc";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getHeaderFooterRequest = new GetHeaderFooterRequest(fileName, index, folder);
var actual = wordsApi.GetHeaderFooter(getHeaderFooterRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "HeadersFooters.doc";
var index = 0;
var sectionIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getHeaderFooterOfSectionRequest = new GetHeaderFooterOfSectionRequest(fileName, index, sectionIndex, folder);
var actual = wordsApi.GetHeaderFooterOfSection(getHeaderFooterOfSectionRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "HeadersFooters.doc";
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getHeaderFootersRequest = new GetHeaderFootersRequest(fileName, folder);
var actual = wordsApi.GetHeaderFooters(getHeaderFootersRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "MathObjects.docx";
var index = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getOfficeMathObjectRequest = new GetOfficeMathObjectRequest(fileName, index, folder);
var actual = wordsApi.GetOfficeMathObject(getOfficeMathObjectRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "MathObjects.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getOfficeMathObjectsRequest = new GetOfficeMathObjectsRequest(fileName, folder);
var actual = wordsApi.GetOfficeMathObjects(getOfficeMathObjectsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphFormatRequest = new GetDocumentParagraphFormatRequest(fileName, 0, folder);
var actual = wordsApi.GetDocumentParagraphFormat(documentParagraphFormatRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "GetField.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var documentParagraphRunsRequest = new GetDocumentParagraphRunsRequest(fileName, "sections/0/paragraphs/0", folder);
RunsResponse actual = wordsApi.GetDocumentParagraphRuns(documentParagraphRunsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var sectionIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var sectionRequest = new GetSectionRequest(fileName, sectionIndex, folder);
var actual = wordsApi.GetSection(sectionRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var sectionIndex = 0;
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var getSectionPageSetupRequest = new GetSectionPageSetupRequest(fileName, sectionIndex, folder);
var actual = wordsApi.GetSectionPageSetup(getSectionPageSetupRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var sectionsRequest = new GetSectionsRequest(fileName, folder);
var actual = wordsApi.GetSections(sectionsRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRequest = new GetTableRequest(fileName, 1, folder);
var actual = wordsApi.GetTable(tableRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var borderRequest = new GetBorderRequest(fileName, "tables/1/rows/0/cells/0/", 0, folder);
var actual = wordsApi.GetBorder(borderRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var bordersRequest = new GetBordersRequest(fileName, "tables/1/rows/0/cells/0/", folder);
var actual = wordsApi.GetBorders(bordersRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableCellRequest = new GetTableCellRequest(fileName, "sections/0/tables/2/rows/0", 0, folder);
var actual = wordsApi.GetTableCell(tableCellRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableCellFormatRequest = new GetTableCellFormatRequest(fileName, "sections/0/tables/2/rows/0", 0, folder);
var actual = wordsApi.GetTableCellFormat(tableCellFormatRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tablePropertiesRequest = new GetTablePropertiesRequest(fileName, 1, folder);
var actual = wordsApi.GetTableProperties(tablePropertiesRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRowRequest = new GetTableRowRequest(fileName, "tables/1", 0, folder);
var actual = wordsApi.GetTableRow(tableRowRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRowFormatRequest = new GetTableRowFormatRequest(fileName, "sections/0/tables/2", 0, folder);
var actual = wordsApi.GetTableRowFormat(tableRowFormatRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tablesRequest = new GetTablesRequest(fileName, folder);
var actual = wordsApi.GetTables(tablesRequest);
// For a complete example and data file, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet/blob/master/Examples/Aspose.Words.Cloud.Sdk.Examples/HeaderFooter/InsertHeadersAndPageNumbersToAWordDocument.cs
// Insert Header for all other pages
var putHeaderFooterRequest = new PutHeaderFooterRequest(fileName, "HeaderPrimary", folder);
var actual = wordsApi.PutHeaderFooter(putHeaderFooterRequest);
// For a complete example and data file, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet/blob/master/Examples/Aspose.Words.Cloud.Sdk.Examples/HeaderFooter/InsertHeadersAndPageNumbersToAWordDocument.cs
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
string fileName = "Sample-Document.docx";
string folder = null; // File exists at the root of the storage
// Insert Header for the first page
var putHeaderFooterRequest = new PutHeaderFooterRequest(fileName, "HeaderFirst", folder);
var actual = wordsApi.PutHeaderFooter(putHeaderFooterRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TestMailMergeWithImages.doc";
var destFileName = "TestMailMergeWithImages_Out.docx";
var data = File.ReadAllText(WordsExamples.PathToDataFiles + @"\DocumentActions\MailMerge\" + "MailMergeData.txt");
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(WordsExamples.PathToDataFiles + @"\DocumentActions\MailMerge\" + fileName), null, null);
storageApi.PutCreate(request);
var executeMailMergeRequest = new PostDocumentExecuteMailMergeRequest(fileName, data, folder, destFileName: destFileName, withRegions: false);
var actual = wordsApi.PostDocumentExecuteMailMerge(executeMailMergeRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "UpdatedDocument.docx";
var body = new PageNumber { Alignment = "center", Format = "{PAGE} of {NUMPAGES}" };
string folder = null; // File exists at the root of the storage
// Upload source document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var insertPageNumbersRequest = new PostInsertPageNumbersRequest(fileName, body, folder, destFileName: destFileName);
var actual = wordsApi.PostInsertPageNumbers(insertPageNumbersRequest);
// For a complete example and data file, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet/blob/master/Examples/Aspose.Words.Cloud.Sdk.Examples/HeaderFooter/InsertHeadersAndPageNumbersToAWordDocument.cs
var body = new PageNumber { Alignment = "right", Format = "{PAGE} of {NUMPAGES}", IsTop = true, SetPageNumberOnFirstPage = true };
var insertPageNumbersRequest = new PostInsertPageNumbersRequest(fileName, body);
var actual = wordsApi.PostInsertPageNumbers(insertPageNumbersRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
var tableDto = new TableInsert { ColumnsCount = 5, RowsCount = 4 };
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRequest = new InsertTableRequest(fileName, folder, table: tableDto);
var actual = wordsApi.InsertTable(tableRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
var cell = new TableCellInsert();
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableCellRequest = new InsertTableCellRequest(fileName, "sections/0/tables/2/rows/0", folder, cell: cell);
var actual = wordsApi.InsertTableCell(tableCellRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "TablesGet.docx";
string folder = null; // File exists at the root of the storage
var row = new TableRowInsert { ColumnsCount = 5 };
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var tableRowRequest = new InsertTableRowRequest(fileName, "sections/0/tables/2", folder, row: row);
var actual = wordsApi.InsertTableRow(tableRowRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "InsertDocumentWatermarkImage.docx";
double rotationAngle = 0F;
var image = "aspose-cloud.png";
string folder = null; // File exists at the root of the storage
using (var file = File.OpenRead(@"c:\Data\" + image))
{
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var insertDocumentWatermarkImageRequest = new PostInsertDocumentWatermarkImageRequest(fileName, file,
folder, rotationAngle: rotationAngle, destFileName: destFileName);
var actual = wordsApi.PostInsertDocumentWatermarkImage(insertDocumentWatermarkImageRequest);
}
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "InsertWatermarkImage.docx";
double rotationAngle = 0F;
var localImage = "aspose-cloud.png";
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
// Upload image to Cloud Storage
request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + localImage), null, null);
storageApi.PutCreate(request);
var insertDocumentWatermarkImageRequest = new PostInsertDocumentWatermarkImageRequest(fileName, folder: folder, image: localImage, rotationAngle: rotationAngle, destFileName: destFileName);
var actual = wordsApi.PostInsertDocumentWatermarkImage(insertDocumentWatermarkImageRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var fileName = "test_multi_pages.docx";
var destFileName = "PostInsertWatermarkText.docx";
var body = new WatermarkText { Text = "This is the text", RotationAngle = 90.0f };
string folder = null; // File exists at the root of the storage
// Upload input document to Cloud Storage
PutCreateRequest request = new PutCreateRequest(fileName, File.OpenRead(@"c:\Data\" + fileName), null, null);
storageApi.PutCreate(request);
var insertDocumentWatermarkTextRequest = new PostInsertDocumentWatermarkTextRequest(fileName, body, folder, destFileName: destFileName);
var actual = wordsApi.PostInsertDocumentWatermarkText(insertDocumentWatermarkTextRequest);
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(MyAppKey, MyAppSid);
StorageApi storageApi = new StorageApi(MyAppKey, MyAppSid);
var body = new LoadWebDocumentData();
var saveOptions = new SaveOptionsData
{
FileName = "google.doc",
SaveFormat = "doc",
ColorMode = "1",
DmlEffectsRenderingMode = "1",
DmlRenderingMode = "1",
UpdateSdtContent = false,
ZipOutput = false
};
body.LoadingDocumentUrl = "http://google.com";
body.SaveOptions = saveOptions;
var request = new PostLoadWebDocumentRequest(body);
var actual = wordsApi.PostLoadWebDocument(request);