Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
aspose-cloud / DeleteDocumentAnnotations.js
Last active April 6, 2019 19:22
aspsoe-pdf-cloud-node
const { PdfApi } = require("asposepdfcloud");
pdfApi = new PdfApi(
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195")
console.log('running example');
pdfApi.deleteDocumentAnnotations(name, null, null)
.then((result) => {
console.log(result.response);
@aspose-cloud
aspose-cloud / AcceptAllRevisions.java
Last active April 8, 2019 05:46
The GIST contains Java Examples of Aspose.Words REST APIs.
// For complete examples and data files, please go to https://github.com/aspose-words-cloud/aspose-words-cloud-java
String APP_KEY = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
String APP_SID = ""; // Get AppKey and AppSID from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi(new ApiClient());
ApiClient client = wordsApi.getApiClient();
client.setAppKey(APP_KEY).setAppSid(APP_SID);
try {
String APP_KEY = ""; // Get AppKey and AppSID from https:dashboard.aspose.cloud/
String APP_SID = ""; // Get AppKey and AppSID from https:dashboard.aspose.cloud/
String DATA_PATH = "src/main/resources/";
ImagingApi imagingApi = new ImagingApi(APP_KEY, APP_SID);
try {
String searchContextId = "5728a4ed-12bb-4b4a-8dce-38295735549f";
String imageId = "WaterMark.bmp";
@aspose-cloud
aspose-cloud / AddImageAndImagesFeaturesToSearchContext.cs
Last active July 16, 2019 08:12
The GIST contains .NET Examples of Aspose.Imaging REST APIs.
// For complete examples and data files, please go to https://github.com/aspose-imaging-cloud/aspose-imaging-cloud-dotnet
public void AddSearchImage()
{
// Create new search context
string searchContextId = this.CreateImageSearch();
string imageId = "WaterMark.bmp";
string folder = null;
string storage = null;
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
Name = "Test Line Annotation",
Rect = new Rectangle(100, 100, 300, 300),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Updated Rich Text",
Subject = "Subj",
ZIndex = 1,
ShowCaption = true,
Title = "Title Updated",
curl -X PUT "https://api.aspose.cloud/v3.0/pdf/eng.pdf/ocr?lang=rus,eng"
-H "accept: application/json"
-H "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NzAzMDAzNzksImV4cCI6MTU3MDM4Njc3OSwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXSwiY2xpZW50X2lkIjoiOWYwYjI2ZDEtMGYxZi00MDNiLTliYTQtMTMzMzk4MGFjNmRiIiwiY2xpZW50X2lkU3J2SWQiOiIiLCJzY29wZSI6WyJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXX0.nc4L0UINWk0fBPUatKmr8yy0BN6WL6BTExUkPF57GO43Z4uOJnbhRgALdNRKgx-EeeSUHIagUplJQ3oBkqeQEZtKZbkzi--ZH8WCj-r83P56vLEIchhX8r47wwfeiReF5BBRHfM7FLXzMtvmPPscH7rEnTyonyjKOrcspBzjVlbz8ffLHyawKaIJ6E1SduBsJwPpITE-mh_p1KfWiCmXLmTuJDdbnKkcLkYA7UJsbiCeOe_ubo2lmWdqnhAWfLetnzFqhMGCl5-dyXur3B6fc-CB8d2SOG1GbmdhoyzWhLNhiNF9kzdh4G6GzvkEPOYw-TK9fxNpk2keUIFo8P5euA"
// For complete examples and data files, please go to https://github.com/Aspose-3D-Cloud
folderApi = new FolderApi(grantType, clientId, clientSecret);
string srcPath = "3DTest";
string destPath = "3DTestCOPY";
string srcStorageName = null;
string destStorageName = null;
var response = folderApi.CopyFolderWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName);
Console.WriteLine(response);
var calendar = new HierarchicalObject("CALENDAR", null, new List<BaseObject>
{
new PrimitiveObject("LOCATION", null, "location"),
new PrimitiveObject("STARTDATE", null, startDate.ToString("u")),
new PrimitiveObject("ENDDATE", null, endDate.ToString("u")),
new HierarchicalObject("ORGANIZER", null, new List<BaseObject>
{
new PrimitiveObject("ADDRESS", null, "organizer@aspose.com"),
new PrimitiveObject("DISPLAYNAME", null, "Organizer Name")
}),
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
string AppSID = "Use your AppSID";
string AppKEY = "Use your AppKEY";
//Url
string url = "http://api.aspose.cloud/v3.0/cells/sampleExcel2HTML.xlsx?format=html";
//Sign url
string surl = Sign(url, AppSID, AppKEY);
//Your workbook and sheet name
string workbookName = "sampleExcelPageBreaks.xlsx";
string sheetName = "Sheet1";
//Your vertical page break index
int idxVerticalPageBreak = 0;
//URL to Delete Vertical Page Break
string url = "http://api.aspose.com/v3.0/cells/" + workbookName + "/worksheets/" + sheetName + "/verticalpagebreaks/" + idxVerticalPageBreak;