Last active
March 30, 2017 06:51
-
-
Save aspose-words/f3d8033a893c941abe1e168f5f5f1d06 to your computer and use it in GitHub Desktop.
The GIST contains Objective C code snippets for examples of Aspose.Words for Cloud.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aspose.Words-for-Cloud-for-Objective-C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentBookmarkByNameWithCompletionBlock:fileName | |
bookmarkName:@"aspose" | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBookmarkResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentBookmarksWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBookmarksResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPBookmarkData *bookmarkData = [[ASPBookmarkData alloc] init]; | |
bookmarkData.name = @"aspose"; | |
bookmarkData.text = @"Bookmark is very good"; | |
[self.wordsApi postUpdateDocumentBookmarkWithCompletionBlock:fileName | |
bookmarkName:@"aspose" | |
bookmarkData:bookmarkData | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBookmarkResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"Test.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteDocumentMacrosWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentStatisticsWithCompletionBlock:fileName | |
includeComments:[NSNumber numberWithBool:YES] | |
includeFootnotes:[NSNumber numberWithBool:YES] | |
includeTextInShapes:[NSNumber numberWithBool:YES] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPStatDataResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentWithFormatWithCompletionBlock:fileName | |
format:@"pdf" | |
storage:nil | |
folder:nil | |
outPath:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPDocumentEntry *document1 = [[ASPDocumentEntry alloc] init]; | |
document1.href = @"SampleAppendDoc.docx"; | |
document1.importFormatMode = @"KeepSourceFormatting"; | |
ASPDocumentEntry *document2 = [[ASPDocumentEntry alloc] init]; | |
document2.href = @"SampleAppendDoc2.docx"; | |
document2.importFormatMode = @"KeepSourceFormatting"; | |
ASPDocumentEntryList *documentList = [[ASPDocumentEntryList alloc] init]; | |
documentList.documentEntries = (NSArray<ASPDocumentEntry>*) @[document1, document2]; | |
[self.wordsApi postAppendDocumentWithCompletionBlock:fileName | |
documentList:documentList | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPSaveOptionsData *saveOptions = [[ASPSaveOptionsData alloc] init]; | |
saveOptions.fileName = @"SampleWordDocument.pdf"; | |
saveOptions.saveFormat = @"pdf"; | |
[self.wordsApi postDocumentSaveAsWithCompletionBlock:fileName | |
saveOptionsData:saveOptions | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSaveResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
ASPLoadWebDocumentData *loadWebDocumentData = [[ASPLoadWebDocumentData alloc] init]; | |
loadWebDocumentData.loadingDocumentUrl = @"http://google.com"; | |
ASPSaveOptionsData *saveOptions = [[ASPSaveOptionsData alloc] init]; | |
saveOptions.saveFormat = @"doc"; | |
saveOptions.fileName = @"google.doc"; | |
loadWebDocumentData.saveOptions = saveOptions; | |
[self.wordsApi postLoadWebDocumentWithCompletionBlock:loadWebDocumentData completionHandler:^(ASPSaveResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"SampleWordDocument" withExtension:@"docx"]; | |
[self.wordsApi postRunTaskWithCompletionBlock:pathToFile completionHandler:^(ASPResponseMessage *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"SampleWordDocument" withExtension:@"docx"]; | |
[self.wordsApi putConvertDocumentWithCompletionBlock:pathToFile | |
format:@"pdf" | |
outPath:nil | |
replaceResourcesHostTo:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPTiffSaveOptionsData *tiffSaveOptions = [[ASPTiffSaveOptionsData alloc] init]; | |
tiffSaveOptions.fileName = @"SampleWordDocument.tiff"; | |
tiffSaveOptions.saveFormat = @"tiff"; | |
[self.wordsApi putDocumentSaveAsTiffWithCompletionBlock:fileName | |
saveOptions:tiffSaveOptions | |
resultFile:nil | |
useAntiAliasing:nil | |
useHighQualityRendering:nil | |
imageBrightness:nil | |
imageColorMode:nil | |
imageContrast:nil | |
numeralFormat:nil | |
pageCount:nil | |
pageIndex:nil | |
paperColor:nil | |
pixelFormat:nil | |
resolution:nil | |
scale:nil | |
tiffCompression:nil | |
dmlRenderingMode:nil | |
dmlEffectsRenderingMode:nil | |
tiffBinarizationMethod:nil | |
storage:nil | |
folder:nil | |
zipOutput:nil | |
completionHandler:^(ASPSaveResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi acceptAllRevisionsWithCompletionBlock:fileName | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPRevisionsModificationResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi rejectAllRevisionsWithCompletionBlock:fileName | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPRevisionsModificationResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteDocumentPropertyWithCompletionBlock:fileName | |
propertyName:@"AsposeAuthor" | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentPropertiesWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentPropertiesResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentPropertyWithCompletionBlock:fileName | |
propertyName:@"Author" | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentPropertyResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPDocumentProperty *property = [[ASPDocumentProperty alloc] init]; | |
property.name = @"Provider"; | |
property.value = @"Jobs"; | |
[self.wordsApi putUpdateDocumentPropertyWithCompletionBlock:fileName | |
propertyName:@"Provider" | |
_property:property | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentPropertyResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"OLE.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentDrawingObjectByIndexWithCompletionBlock:fileName | |
objectIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDrawingObjectResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"OLE.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentDrawingObjectByIndexWithFormatWithCompletionBlock:fileName | |
objectIndex:[NSNumber numberWithInt:0] | |
format:@"png" | |
storage:nil | |
folder:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentDrawingObjectImageDataWithCompletionBlock:fileName | |
objectIndex:[NSNumber numberWithInt:2] | |
storage:nil | |
folder:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"Sample_EmbeddedOLE.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentDrawingObjectOleDataWithCompletionBlock:fileName | |
objectIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentDrawingObjectsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDrawingObjectsResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteDocumentFieldsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"FormFilled.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteFormFieldWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
paragraphIndex:[NSNumber numberWithInt:0] | |
formfieldIndex:[NSNumber numberWithInt:0] | |
destFileName:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteSectionFieldsWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleMailMergeTemplate.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentFieldNamesWithCompletionBlock:fileName | |
useNonMergeFields:[NSNumber numberWithBool:NO] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFieldNamesResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"FormFilled.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getFormFieldWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
paragraphIndex:[NSNumber numberWithInt:0] | |
formfieldIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFormFieldResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"FormFilled.docx"; | |
[Utils uploadFile:fileName]; | |
ASPFormField *formField = [[ASPFormField alloc] init]; | |
formField.name = @"CheckBox"; | |
formField.statusText = @"Helpful?"; | |
formField.enabled = [NSNumber numberWithBool:YES]; | |
[self.wordsApi postFormFieldWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
paragraphIndex:[NSNumber numberWithInt:0] | |
formfieldIndex:[NSNumber numberWithInt:0] | |
formField:formField | |
destFileName:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFormFieldResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPPageNumber *pagenumber = [[ASPPageNumber alloc] init]; | |
pagenumber.format = @"{PAGE} of {NUMPAGES}"; | |
pagenumber.alignment = @"center"; | |
[self.wordsApi postInsertPageNumbersWithCompletionBlock:fileName | |
pageNumber:pagenumber | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi postUpdateDocumentFieldsWithCompletionBlock:fileName | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"FormFilled.docx"; | |
[Utils uploadFile:fileName]; | |
ASPFormField *formField = [[ASPFormField alloc] init]; | |
formField.name = @"FullName"; | |
formField.statusText = @"Enter your name and surname (trimmed to 30 characters)"; | |
formField.enabled = [NSNumber numberWithBool:YES]; | |
[self.wordsApi putFormFieldWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
paragraphIndex:[NSNumber numberWithInt:0] | |
formField:formField | |
insertBeforeNode:nil | |
destFileName:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFormFieldResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentHyperlinkByIndexWithCompletionBlock:fileName | |
hyperlinkIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPHyperlinkResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentHyperlinksWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPHyperlinksResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleMailMergeTemplateImage.doc"; | |
[Utils uploadFile:fileName]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"SampleMailMergeTemplateImageData" withExtension:@"txt"]; | |
[self.wordsApi postDocumentExecuteMailMergeWithCompletionBlock:fileName | |
withRegions:[NSNumber numberWithBool:NO] | |
file:pathToFile | |
mailMergeDataFile:nil | |
cleanup:nil | |
filename:nil | |
storage:nil | |
folder:nil | |
useWholeParagraphAsRegion:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleExecuteTemplate.doc"; | |
[Utils uploadFile:fileName]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"SampleExecuteTemplateData" withExtension:@"txt"]; | |
[self.wordsApi postExecuteTemplateWithCompletionBlock:fileName | |
file:pathToFile | |
cleanup:nil | |
filename:nil | |
storage:nil | |
folder:nil | |
useWholeParagraphAsRegion:nil | |
withRegions:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"SampleMailMergeTemplate" withExtension:@"docx"]; | |
NSURL *pathToDataFile = [[NSBundle mainBundle] URLForResource:@"SampleMailMergeTemplateData" withExtension:@"txt"]; | |
/*cleanup parameter contains list of values from below, separated by ",": | |
None - without any cleanup | |
EmptyParagraphs - Specifies whether paragraphs that contained mail merge fields with no data should be removed from the document | |
UnusedRegions - Specifies whether unused mail merge regions should be removed from the document | |
UnusedFields - Specifies whether unused merge fields should be removed from the document | |
ContainingFields - Specifies whether fields that contain merge fields (for example, IFs) should be removed from the document if the nested merge fields are removed | |
RemoveTitleRow - Removes title row of the table if this table doesn't contain any rows except title row. | |
RemoveTitleRowInInnerTables - Enable "RemoveTitleRow " for nested tables*/ | |
[self.wordsApi putExecuteMailMergeOnlineWithCompletionBlock:[NSNumber numberWithBool:NO] | |
file:pathToFile | |
data:pathToDataFile | |
cleanup:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"SampleExecuteTemplate" withExtension:@"doc"]; | |
NSURL *pathToDataFile = [[NSBundle mainBundle] URLForResource:@"SampleExecuteTemplateData" withExtension:@"txt"]; | |
[self.wordsApi putExecuteTemplateOnlineWithCompletionBlock:pathToFile | |
data:pathToDataFile | |
cleanup:nil | |
useWholeParagraphAsRegion:nil | |
withRegions:nil | |
completionHandler:^(NSURL *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteParagraphFieldsWithCompletionBlock:fileName | |
index:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentParagraphWithCompletionBlock:fileName | |
index:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPParagraphResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentParagraphRunWithCompletionBlock:fileName | |
index:[NSNumber numberWithInt:0] | |
runIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPRunResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentParagraphRunFontWithCompletionBlock:fileName | |
index:[NSNumber numberWithInt:0] | |
runIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFontResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentParagraphsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPParagraphLinkCollectionResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPFont *font = [[ASPFont alloc] init]; | |
font.name = @"Arial"; | |
font.bold = [NSNumber numberWithBool:YES]; | |
[self.wordsApi postDocumentParagraphRunFontWithCompletionBlock:fileName | |
index:[NSNumber numberWithInt:0] | |
runIndex:[NSNumber numberWithInt:0] | |
font:font | |
storage:nil | |
folder:nil | |
filename:nil | |
completionHandler:^(ASPFontResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPProtectionRequest *protectionData = [[ASPProtectionRequest alloc] init]; | |
protectionData.password = @"123456"; | |
[self.wordsApi deleteUnprotectDocumentWithCompletionBlock:fileName | |
protectionRequest:protectionData | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPProtectionDataResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentProtectionWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPProtectionDataResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPProtectionRequest *protectionData = [[ASPProtectionRequest alloc] init]; | |
protectionData.password = @"123456"; | |
protectionData.latestPassword = @"123456789"; | |
[self.wordsApi postChangeDocumentProtectionWithCompletionBlock:fileName | |
protectionRequest:protectionData | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPProtectionDataResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPProtectionRequest *protectionData = [[ASPProtectionRequest alloc] init]; | |
protectionData.password = @"123456"; | |
protectionData.protectionType = @"AllowOnlyComments"; | |
[self.wordsApi putProtectDocumentWithCompletionBlock:fileName | |
protectionRequest:protectionData | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPProtectionDataResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getSectionWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSectionResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getSectionPageSetupWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSectionPageSetupResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getSectionsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSectionLinkCollectionResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPPageSetup *pageSetup = [[ASPPageSetup alloc] init]; | |
pageSetup.rtlGutter = [NSNumber numberWithBool:YES]; | |
pageSetup.leftMargin = [NSNumber numberWithDouble:10.0]; | |
pageSetup.orientation = @"Landscape"; | |
pageSetup.paperSize = @"A5"; | |
[self.wordsApi updateSectionPageSetupWithCompletionBlock:fileName | |
sectionIndex:[NSNumber numberWithInt:0] | |
pageSetup:pageSetup | |
storage:nil | |
folder:nil | |
filename:nil | |
completionHandler:^(ASPSectionPageSetupResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi postSplitDocumentWithCompletionBlock:fileName | |
format:@"pdf" | |
from:nil | |
to:nil | |
zipOutput:[NSNumber numberWithBool:YES] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSplitDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi postSplitDocumentWithCompletionBlock:fileName | |
format:@"text" | |
from:[NSNumber numberWithInt:1] | |
to:[NSNumber numberWithInt:2] | |
zipOutput:[NSNumber numberWithBool:NO] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSplitDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi postSplitDocumentWithCompletionBlock:fileName | |
format:@"pdf" | |
from:[NSNumber numberWithInt:1] | |
to:[NSNumber numberWithInt:2] | |
zipOutput:[NSNumber numberWithBool:NO] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSplitDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi getDocumentTextItemsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPTextItemsResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPReplaceTextRequest *replaceText = [[ASPReplaceTextRequest alloc] init]; | |
replaceText.oldValue = @"Times New Roman"; | |
replaceText.currentValue = @"Arial Black"; | |
replaceText.isMatchCase = [NSNumber numberWithBool:NO]; | |
replaceText.isMatchWholeWord = [NSNumber numberWithBool:YES]; | |
[self.wordsApi postReplaceTextWithCompletionBlock:fileName | |
replaceText:replaceText | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPReplaceTextResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleBlankWatermarkDocument.docx"; | |
[Utils uploadFile:fileName]; | |
[self.wordsApi deleteDocumentWatermarkWithCompletionBlock:fileName | |
filename:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
NSString *imageName = @"aspose-cloud.png"; | |
[Utils uploadFile:imageName]; | |
[self.wordsApi postInsertDocumentWatermarkImageWithCompletionBlock:fileName | |
filename:nil | |
rotationAngle:[NSNumber numberWithDouble:45] | |
image:@"aspose-cloud.png" | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPWordsApi *wordsApi = [[ASPWordsApi alloc] init]; | |
NSString *fileName = @"SampleWordDocument.docx"; | |
[Utils uploadFile:fileName]; | |
ASPWatermarkText *watermarkText = [[ASPWatermarkText alloc] init]; | |
watermarkText.text = @"Welcome Aspose"; | |
watermarkText.rotationAngle = [NSNumber numberWithDouble:45]; | |
[self.wordsApi postInsertDocumentWatermarkTextWithCompletionBlock:fileName | |
watermarkText:watermarkText | |
filename:nil | |
text:nil | |
rotationAngle:nil | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment