Last active
March 23, 2017 11:17
-
-
Save aspose-pdf/c572f06285c1dc58208b8e356efbb908 to your computer and use it in GitHub Desktop.
Aspose.Pdf-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
The GIST contains Objective C code snippets for examples of Aspose.Pdf 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
# For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPageAnnotationWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
annotationNumber:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPAnnotationResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPageAnnotationsWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPAnnotationsResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"SampleAttachment.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getDocumentAttachmentByIndexWithCompletionBlock:fileName | |
attachmentIndex:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPAttachmentResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"SampleAttachment.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getDocumentAttachmentsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPAttachmentsResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"SampleAttachment.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getDownloadDocumentAttachmentByIndexWithCompletionBlock:fileName | |
attachmentIndex:[NSNumber numberWithInt:1] | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Bookmark.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi 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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Bookmark.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getDocumentBookmarksChildrenWithCompletionBlock:fileName | |
bookmarkPath:@"1" | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
[self.pdfApi putCreateDocumentWithCompletionBlock:@"newPDFFile.pdf" | |
templateFile:nil | |
dataFile:nil | |
templateType: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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *templateFile = @"sample.html"; | |
[Utils uploadFile:templateFile]; | |
[self.pdfApi putCreateDocumentWithCompletionBlock:@"newPDFFromHTML.pdf" | |
templateFile:templateFile | |
dataFile:nil | |
templateType:@"html" | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *templateFile = @"Einstein_JPEG.jpg"; | |
[Utils uploadFile:templateFile]; | |
[self.pdfApi putCreateDocumentWithCompletionBlock:@"sample-jpeg.pdf" | |
templateFile:templateFile | |
dataFile:nil | |
templateType:@"jpeg" | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *templateFile = @"Example.svg"; | |
[Utils uploadFile:templateFile]; | |
[self.pdfApi putCreateDocumentWithCompletionBlock:@"sample-svg.pdf" | |
templateFile:templateFile | |
dataFile:nil | |
templateType:@"svg" | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *templateFile = @"Sample.tiff"; | |
[Utils uploadFile:templateFile]; | |
[self.pdfApi putCreateDocumentWithCompletionBlock:@"sample-tiff.pdf" | |
templateFile:templateFile | |
dataFile:nil | |
templateType:@"tiff" | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *templateFile = @"sample.xsl"; | |
[Utils uploadFile:templateFile]; | |
NSString *dataFile = @"sample.xml"; | |
[Utils uploadFile:dataFile]; | |
[self.pdfApi putCreateDocumentWithCompletionBlock:@"newPDFFromXML.pdf" | |
templateFile:templateFile | |
dataFile:dataFile | |
templateType:@"xml" | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"LargeFile.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getDocumentWithFormatWithCompletionBlock:fileName | |
format:@"doc" | |
outPath:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *appendFileName = @"sample-input.pdf"; | |
[Utils uploadFile:appendFileName]; | |
ASPAppendDocument *appendDocument = [[ASPAppendDocument alloc] init]; | |
appendDocument.document = appendFileName; | |
appendDocument.startPage = [NSNumber numberWithInt:2]; | |
appendDocument.endPage = [NSNumber numberWithInt:3]; | |
[self.pdfApi postAppendDocumentWithCompletionBlock:fileName | |
appendDocument:appendDocument | |
appendFile:nil | |
startPage:nil | |
endPage: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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *signatureFileName = @"pkc7-sample.pfx"; | |
[Utils uploadFile:signatureFileName]; | |
ASPSignature *signature = [[ASPSignature alloc] init]; | |
signature.authority = @"Alexey"; | |
signature.location = @"London"; | |
signature.contact = @"[email protected]"; | |
signature.date = @"10/25/2015 2:46:00.000 PM"; | |
signature.formFieldName = @"Signature1"; | |
signature.password = @"aspose"; | |
ASPRectangle *rectangle = [[ASPRectangle alloc] init]; | |
rectangle.X = [NSNumber numberWithInt:100]; | |
rectangle.Y = [NSNumber numberWithInt:100]; | |
rectangle.height = [NSNumber numberWithInt:100]; | |
rectangle.width = [NSNumber numberWithInt:200]; | |
signature.rectangle = rectangle; | |
signature.signaturePath = signatureFileName; | |
signature.signatureType = @"PKCS7"; | |
signature.visible = [NSNumber numberWithBool:YES]; | |
[self.pdfApi postSignPageWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
signature:signature | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi postSplitDocumentWithCompletionBlock:fileName | |
format:@"pdf" | |
from:[NSNumber numberWithInt:1] | |
to:[NSNumber numberWithInt:2] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPSplitResultResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"Sample" withExtension:@"pdf"]; | |
[self.pdfApi putConvertDocumentWithCompletionBlock:pathToFile | |
format:@"tiff" | |
replaceResourcesHostTo: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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
[Utils uploadFile:@"Sample.pdf"]; | |
[Utils uploadFile:@"sample-input.pdf"]; | |
ASPMergeDocuments *mergeDocuments = [[ASPMergeDocuments alloc] init]; | |
mergeDocuments.list = @[@"Sample.pdf", @"sample-input.pdf"]; | |
[self.pdfApi putMergeDocumentsWithCompletionBlock:@"sample-merged.pdf" | |
mergeDocuments:mergeDocuments | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi deletePropertiesWithCompletionBlock: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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi 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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi 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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *propertyName = @"AsposeDev"; | |
ASPDocumentProperty *documentProperty = [[ASPDocumentProperty alloc] init]; | |
documentProperty.name = propertyName; | |
documentProperty.value = @"Elon"; | |
documentProperty.builtIn = [NSNumber numberWithBool:NO]; | |
[self.pdfApi putSetPropertyWithCompletionBlock:fileName | |
propertyName:propertyName | |
_property:documentProperty | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-field.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getFieldWithCompletionBlock:fileName | |
fieldName:@"textbox1" | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFieldResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-field.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getFieldsWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFieldsResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-field.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *fieldName = @"textbox1"; | |
ASPField *field = [[ASPField alloc] init]; | |
field.name = fieldName; | |
field.values = @[@"Aspose"]; | |
[self.pdfApi putUpdateFieldWithCompletionBlock:fileName | |
field:field | |
fieldName:fieldName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPFieldResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"SampleImage.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getImagesWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPImagesResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"SampleImage.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getImageWithFormatWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
imageNumber:[NSNumber numberWithInt:1] | |
format:@"jpeg" | |
width:nil | |
height:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"SampleImage.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *imageFileName = @"aspose-cloud.png"; | |
[Utils uploadFile:imageFileName]; | |
[self.pdfApi postReplaceImageWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
imageNumber:[NSNumber numberWithInt:1] | |
imageFile:imageFileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPImageResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Bookmark.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPageLinkAnnotationByIndexWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
linkIndex:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPLinkAnnotationResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Bookmark.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPageLinkAnnotationsWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPLinkAnnotationsResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi deletePageWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPagesWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentPagesResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPageWithFormatWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
format:@"png" | |
width:[NSNumber numberWithInt:300] | |
height:[NSNumber numberWithInt:300] | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-merged.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi postMovePageWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
newIndex:[NSNumber numberWithInt:1] | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi putAddNewPageWithCompletionBlock:fileName | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentPagesResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getFragmentWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
fragmentNumber:[NSNumber numberWithInt:1] | |
withEmpty:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getFragmentsWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
withEmpty:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getFragmentTextFormatWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
fragmentNumber:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPTextFormatResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getPageTextItemsWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
withEmpty:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getSegmentsWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
fragmentNumber:[NSNumber numberWithInt:1] | |
withEmpty:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getSegmentTextFormatWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
fragmentNumber:[NSNumber numberWithInt:1] | |
segmentNumber:[NSNumber numberWithInt:1] | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPTextFormatResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
ASPTextReplaceListRequest *textReplaceListRequest = [[ASPTextReplaceListRequest alloc] init]; | |
ASPTextReplace *textReplace1 = [[ASPTextReplace alloc] init]; | |
textReplace1.oldValue = @"Sample"; | |
textReplace1.newerValue = @"Sample Aspose"; | |
textReplace1.regex = [NSNumber numberWithBool:NO]; | |
ASPTextReplace *textReplace2 = [[ASPTextReplace alloc] init]; | |
textReplace2.oldValue = @"PDF"; | |
textReplace2.newerValue = @"PDF Document"; | |
textReplace2.regex = [NSNumber numberWithBool:NO]; | |
textReplaceListRequest.textReplaces = (NSArray<ASPTextReplace>*)@[textReplace1, textReplace2]; | |
[self.pdfApi postDocumentReplaceTextListWithCompletionBlock:fileName | |
textReplaceListRequest:textReplaceListRequest | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentTextReplaceResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
ASPTextReplaceListRequest *textReplaceListRequest = [[ASPTextReplaceListRequest alloc] init]; | |
ASPTextReplace *textRequest1 = [[ASPTextReplace alloc] init]; | |
textRequest1.oldValue = @"Sample"; | |
textRequest1.newerValue = @"Sample Aspose"; | |
ASPTextReplace *textRequest2 = [[ASPTextReplace alloc] init]; | |
textRequest2.oldValue = @"PDF"; | |
textRequest2.newerValue = @"PDF Document"; | |
textReplaceListRequest.textReplaces = (NSArray<ASPTextReplace>*)@[textRequest1, textRequest2]; | |
[self.pdfApi postPageReplaceTextListWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
textReplaceListRequest:textReplaceListRequest | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPPageTextReplaceResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"Sample-Annotation.pdf"; | |
[Utils uploadFile:fileName]; | |
[self.pdfApi getTextItemsWithCompletionBlock:fileName | |
withEmpty:nil | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
ASPTextReplace *textReplace = [[ASPTextReplace alloc] init]; | |
textReplace.oldValue = @"Sample PDF"; | |
textReplace.newerValue = @"Sample Aspose PDF"; | |
[self.pdfApi postDocumentReplaceTextWithCompletionBlock:fileName | |
textReplace:textReplace | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPDocumentTextReplaceResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
ASPTextReplace *textReplace = [[ASPTextReplace alloc] init]; | |
textReplace.oldValue = @"Sample PDF"; | |
textReplace.newerValue = @"Sample Aspose PDF"; | |
[self.pdfApi postPageReplaceTextWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
textReplace:textReplace | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPPageTextReplaceResponse *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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *imageFile = @"aspose-cloud.png"; | |
[Utils uploadFile:imageFile]; | |
ASPStamp *stamp = [[ASPStamp alloc] init]; | |
stamp.fileName = imageFile; | |
stamp.type = @"Image"; | |
stamp.background = [NSNumber numberWithBool:YES]; | |
stamp.value = @"ASPOSE Document"; | |
stamp.pageIndex = [NSNumber numberWithInt:0]; | |
stamp.leftMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.opacity = [NSNumber numberWithFloat:0.5]; | |
stamp.rightMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.topMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.yIndent = [NSNumber numberWithFloat:100.0]; | |
stamp.xIndent = [NSNumber numberWithFloat:100.0]; | |
stamp.zoom = [NSNumber numberWithFloat:1.0]; | |
stamp.width = [NSNumber numberWithFloat:300.0]; | |
stamp.height = [NSNumber numberWithFloat:300.0]; | |
[self.pdfApi putPageAddStampWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
stamp:stamp | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
ASPStamp *stamp = [[ASPStamp alloc] init]; | |
stamp.type = @"PageNumber"; | |
stamp.background = [NSNumber numberWithBool:YES]; | |
stamp.value = @"Page # of 2"; | |
stamp.pageIndex = [NSNumber numberWithInt:0]; | |
stamp.leftMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.opacity = [NSNumber numberWithFloat:0.5]; | |
stamp.rightMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.topMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.yIndent = [NSNumber numberWithFloat:100.0]; | |
stamp.xIndent = [NSNumber numberWithFloat:100.0]; | |
stamp.zoom = [NSNumber numberWithFloat:1.0]; | |
stamp.width = [NSNumber numberWithFloat:300.0]; | |
stamp.height = [NSNumber numberWithFloat:300.0]; | |
stamp.startingNumber = [NSNumber numberWithInt:1]; | |
[self.pdfApi putPageAddStampWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
stamp:stamp | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
ASPStamp *stamp = [[ASPStamp alloc] init]; | |
stamp.type = @"Text"; | |
stamp.background = [NSNumber numberWithBool:YES]; | |
stamp.value = @"Aspose"; | |
[self.pdfApi putPageAddStampWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
stamp:stamp | |
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-pdf/Aspose.Pdf-for-Cloud | |
//Get App key and App SID from https://cloud.aspose.com | |
[Utils setAppKeyAndAppSID]; | |
ASPPdfApi *pdfApi = [[ASPPdfApi alloc] init]; | |
NSString *fileName = @"sample-input.pdf"; | |
[Utils uploadFile:fileName]; | |
NSString *pdfName = @"Sample.pdf"; | |
[Utils uploadFile:pdfName]; | |
ASPStamp *stamp = [[ASPStamp alloc] init]; | |
stamp.fileName = pdfName; | |
stamp.type = @"Image"; | |
stamp.background = [NSNumber numberWithBool:YES]; | |
stamp.pageIndex = [NSNumber numberWithInt:0]; | |
stamp.leftMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.opacity = [NSNumber numberWithFloat:0.5]; | |
stamp.rightMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.topMargin = [NSNumber numberWithFloat:0.0]; | |
stamp.yIndent = [NSNumber numberWithFloat:100.0]; | |
stamp.xIndent = [NSNumber numberWithFloat:100.0]; | |
stamp.zoom = [NSNumber numberWithFloat:1.0]; | |
stamp.width = [NSNumber numberWithFloat:300.0]; | |
stamp.height = [NSNumber numberWithFloat:300.0]; | |
[self.pdfApi putPageAddStampWithCompletionBlock:fileName | |
pageNumber:[NSNumber numberWithInt:1] | |
stamp:stamp | |
storage:nil | |
folder:nil | |
completionHandler:^(ASPBaseResponse *output, NSError *error) { | |
NSLog(@"%@", output); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment