Encrypt and Decrypt PDF files with cURL

Share on FacebookTweet about this on TwitterShare on LinkedIn

PDF Document is the defacto file type to present documents, including text formatting and images, in a manner independent of application software, hardware, and operating systems. Aspose.PDF Cloud provides a number of operations that work seamlessly with your existing PDF Documents, allowing you to convert to and from PDF Format, extract document information, and perform operation like Encrypting and Decrypting PDF Documents.

Encrypting a PDF Document

Aspose.PDF Cloud allows you to easily encrypt a PDF document. Encrypting a PDF makes it unreadable to anyone without the password. This helps you protect sensitive information in a PDF file. You can similarly encrypt a file using the ubiquitous Adobe PPF Reader

The below example demonstrates applying the AESx256 encryption algorithm to a PDF document hosted on Aspose Cloud Storage. The output is then stored back onto the Cloud

Valid API Parameters

ParameterValues
userPasswordBase 64 Encoded String Value
ownerPasswordBase 64 Encoded String Value
cryptoAlgorithmPlease see below

The cryptoAlgorithm takes the following possible values. This represents the type of cryptographic algorithm used in Encryption / Decryption routines.

RC4x40RC4 with key length 40.
RC4x128RC4 with key length 128.
AESx128AES with key length 128.
AESx256AES with key length 256.

When you try to open an encrypted PDF file, you get asked for a password

Decrypting a PDF Document

Aspose.PDF Cloud allows you to easily decrypt a PDF document. Any PDF decrypted by the above encryption process needs to be decrypted before it can be used. Please remember the password has to be a Base 64 Encoded string value.

Have any Question

Feel free to drop us a comment below sharing your thoughts about Aspose.PDF Cloud REST API. Or let’s know if you have any suggestions or if you need any particular features which you expect our REST API to have.

Try It Out

And if you’ve not already had a chance to try our REST API, simply start a free trial today. All you need is to sign up with the aspose.cloud. Once you’ve signed up, you’re ready to try the powerful file processing features offered by aspose.cloud.

Posted in Aspose.Total Cloud Product Family | Leave a comment

Check Out the Enhancements in Aspose.Slides Cloud 19.7

Share on FacebookTweet about this on TwitterShare on LinkedIn

Hi Guys! Aspose.Slides Cloud 19.7 is here. It is your feedback and trust in our API that keeps us moving forward, to provide new features and enhancements in it. Check out the latest release for Aspose.Slides Cloud that includes the support of the POT file format, responsive HTML and nested comments along with the issues fixed in Aspose.Slide Cloud SDK for PHP and intermittent 503 error.

Wait the list is not over yet, there’re many other enhancements and bug fixes included in this release. Read More.

Let me give you a quick walk through some of these improvements, carried in this new release.

Export POT File Format

It is a common scenario to have a POT file template, used to create presentations that have the same layout and other settings required to be applied to new files for official use. So after the release of this version you do not need to worry about the generation of POT files.

Let’s show you how easily you can create a POT file template from any Presentation file of your choice with a simple set of HTTP requests.

Get JWT Authentication Token

Convert Presentation to POT

Convert Presentation to Responsive HTML

You know Aspose.Slides Cloud provides support for converting a presentation to HTML, which is an embedded SVG. Now you can export presentations to responsive HTML, which will ensure to generate an HTML that will look good for all devices. The new SvgResponsiveLayout property is added in the HtmlOptions to generate responsive HTML files. It removes width & height attributes from SVG tag which make it responsive.

Get JWT Authentication Token

Convert Presentation to Responsive HTML

Resources

If you are new to Aspose.Slides Cloud and have not already had a chance to try it, simply start a free trial today. All you need is to sign up with the aspose.cloud. Once you have signed up, you are ready to try the powerful file processing features offered by aspose.cloud. Following are some useful resources of Aspose.Slides Cloud you may need to accomplish your tasks.

Share Your Feedback

Feel free to drop us a comment sharing your thoughts about the new version of Aspose.Slides Cloud REST API. Or let us know if you have any suggestions or if you need any particular features which you expect our REST API to have.

Posted in Aspose.Slides Cloud Product Family | Leave a comment

All New Aspose.Tasks Cloud V3 API Version!

Share on FacebookTweet about this on TwitterShare on LinkedIn

Hello! Guys, we’re back with a revamped version of Aspose.Tasks Cloud. To provide you the best solution, we follow a continuous improvement process based on your valued feedback and our internal product reviews. Aspose.Tasks Cloud 19.4 is already live, it is all new V3 API version with improved architecture, implemented as microserivce. We’ve introduced storage API methods in the new release along with many other fixes and improvement, that takes the API to the next level of reliability and stability. For complete details of new features and enhancement, please check the release notes of this version.

What’s New

API Version – Introduced API version V3, V1.1 will remain available with previous API versions

Authentication – JWT(JSON Web Token) authentication, OAuth2 and URL signing authentication methods are not supported anymore by V3 API Version

File API – Introduced methods for upload, download, copy, move, delete files : input documents and rendering results, in the cloud storage

Folder API – Introduced methods for create, copy, move, delete folders in the cloud storage

Storage API – Introduced methods for getting storage information and file information

How it Works

If you are working with a project management application and want to manipulate Microsoft Project Documents in your application along with other industry standard project formats, Aspose.Tasks Cloud REST API is a perfect match for your need. It is a true Cloud API that can be used on any platform. It supports to read, convert and manipulate Microsoft Project, Oracle Primavera and XML Project file formats.

Aspose.Tasks Cloud is a complete solution that allows you to work with all aspects of a Project document, including conversion and manipulation of project’s tasks, task links, resources, resource assignments and extended attribute data. Learn More.

Let’s show you how easily you can convert Microsoft Project document to PDF document. First of all we will get JWT authentication token for V3 API version and upload project file to storage using the newly introduced method. We are using cURL- a most popular command line tool for REST API testing, for this demonstration. However, you can check a complete list of available SDKs to use Aspose.Tasks Cloud SDK of your choice in your favorite platform without worrying about underlying API calls.

Get Authentication Token

Upload Source Document to Storage

Convert Project document to PDF

Have any Question

Feel free to drop us a comment below sharing your thoughts about the new version of Aspose.Tasks Cloud REST API. Or let’s know if you have any suggestions or if you need any particular features which you expect our REST API to have.

Try It Out

And if you’ve not already had a chance to try our REST API, simply start a free trial today. All you need is to sign up with the aspose.cloud. Once you’ve signed up, you’re ready to try the powerful file processing features offered by aspose.cloud.

Posted in Aspose.Tasks Cloud Product Family | Tagged , , , | Leave a comment

Enhanced Bookmark Manipulation with Aspose.PDF Cloud 19.6

Share on FacebookTweet about this on TwitterShare on LinkedIn

We’re excited to release 19.6 version of Aspose.PDF Cloud, with all new API Version V3, with enhancement to Bookmark manipulation and introduced breaking changes to   storage operations. Read on to see what’s new.

V3 API Version

In 19.6, we’ve implemented Aspose.PDF Cloud as a microservice. Now, it uses V3 API Version, new base URI will be as following. Please note legacy V2.0 API version will remain available with older release, but all new changes and updation will be made in latest API Version(V3) in the future.

https://api.aspose.cloud/v3.0/pdf/

API calls are more secured in new API version, because now it supports JWT(JSON Web Token) authentication in this release. OAuth2 and URL signing authentication methods are not supported any more by V3 API Version. Let us show you how to get JWT Access Token.

Get JWT Authentication Token

Enhanced Bookmark Manipulation

While working with PDF documents, bookmark is an essential feature for navigation within PDF document pages. After you add bookmarks to a PDF file, you can access to a specific part of a PDF file easily and efficiently. In this release, we’ve enhanced working with bookmarks with Aspose.PDF Cloud API. Now you can add and delete bookmarks, get bookmark by path, get child collection of particular bookmark and update bookmark in PDF document with simple request calls.

Let’s show you how easily you can add bookmarks in a PDF document using Aspose.PDF Cloud REST API, using cURL command. You can check a complete list of available SDKs to use Aspose.PDF Cloud SDK in your favorite platform without worrying about underlying API calls.

Upload Source Document to Storage

Add Bookmark

Breaking Changes in Storage Methods

In previous releases, storage APIs are included in Aspose.PDF Cloud REST API for a better user experience and unification, so user no need to use any other API for storage operations. Now, we’ve improved the naming scheme of storage methods as following.

Old Methods New Methods
PostMoveFile MoveFile
PostMoveFolder MoveFolder
PutCreate UploadFile
PutCreateFolder CreateFolder
GetDownload DownloadFile
GetIsExist ObjectExists
GetIsStorageExist StorageExists
GetListFileVersions GetFileVersions
GetListFiles GetFilesList

You can visit the release notes for a complete list of breaking changes.

We Want to Hear from You

Feel free to drop us a comment sharing your thoughts about the new version of Aspose.PDF Cloud REST API. Or let us know if you have any suggestions or if you need any particular features which you expect our REST API to have.

And if you’ve not already had a chance to try our REST API, simply start a free trial today. All you need is to sign up with the aspose.cloud. Once you’ve signed up, you’re ready to try the powerful file processing features offered by aspose.cloud.

Posted in Aspose.PDF Cloud Product Family | Leave a comment

Want to Set Timeout for Aspose.Slides Cloud Requests

Share on FacebookTweet about this on TwitterShare on LinkedIn

If we use third party services in our application, we have make to from a few to a lot of HTTP requests. And in consuming them, while making those HTTP requests, we should carefully set a timeout. Because if the server does not respond within this time for any reason, we cannot keep waiting for it to respond. If we do not have a timeout set, our entire system becomes stalled. Even if it is not fully stuck, the service is just too slow, that too could accumulate a lot of tasks on our queue.

A timeout saves us from a disaster and gives control over how to handle such issues. When a timeout is triggered, we can report an error, set a retry policy or move on as per our priority.

We have introduced a timeout feature in our new version of Aspose.Slides Cloud 19.6 along with many other important improvements and fixes. It will provide users more control on the API calls and plan their fall back policy accordingly. In subsequent paragraphs we will shed some light on the timeout feature of Aspose.Slides Cloud. For complete details of new improvement and fixes, please check the release notes of this version.

You can set timeout for any operation of Aspose.Slides using x-aspose-timeout header parameter, implemented in the current version. It can be used with any method and resource. It is an integer number specifying timeout (in seconds) for a request. It applies not to the overall Web request, but to the operation in Aspose.Slides on the server. An operation taking too long will be cancelled with an exception if it is taking too long. Please note Aspose.Slides Cloud timeout is counted only from the moment when the operation is started on the server.

Let us demonstrate how you can set a timeout of HTTP API request. We are using cURL command for the purpose, however, you can also use Aspose.Slides Cloud SDK of your choice. You need to set timeout property of configuration object. Please refer to the complete list of available SDKs to use Aspose.Slides Cloud API directly in your favorite platform.

Get JWT Authentication Token

Representation of a Presentation

Got a question or Bug? Please feel free to drop us a comment below or post a question in support forum. It helps us to continually improve and refine our API.

Still haven’t tried Aspose.Slides Cloud? The free trial is right here waiting for you to give it a try and explore the power of the Comparison REST API. All you need is to sign up with the aspose.cloud.

Posted in Aspose.Slides Cloud Product Family | Leave a comment

What’s New in Aspose.Imaging Cloud 19.6

Share on FacebookTweet about this on TwitterShare on LinkedIn

Our new release Aspose.Imaging Cloud 19.6 is already a fact. We have a number of new improvements and fixes in the new version, those make it more stable and reliable Cloud API of your choice, that empower you the manipulation of popular image formats with ease and authority. This release enriched our common ops functionality which is reflected in the common operations format support map for you to be able to save the processing results to even more formats. Please visit the release notes, for a complete list of improvement and fixes of this release.    

Updated GET requests

We always follow the best API practices of industry, as a step forward, we have deprecated GET requests those were able to create resources. We have removed the outPath parameter from GET request. So from now on you can only obtain the processed image in the response stream with GET requests, and saving it to storage is no longer allowed. If you still need to process the image from storage using GET request and save it to storage as well, then please upload the processed image explicitly by using the Storage API. Let’s show you, how you can achieve this using cURL commands in the new release.   

Get Authentication Token

Resize Image and Format Change

Upload Result File to Storage

SDK Updates

In this version we have improved the naming scheme of SDK methods. It is a breaking change. The main motive of this change is to make SDK methods naming simple and intuitive instead of previous bulky approach.

Now, the GET method name reflects simply the operation name. The POST requests which allow you to create resources start with Create and the ones that don’t, start with Extract. Please check some methods for understanding, for complete list, check release notes.

Old Method Names New Method Names
GetImageResize ResizeImage
PostImageResize CreateResizeImage
GetImagePorperties GetImageProperties
PostImageProperties ExtractImageProperties

Other changes are updation of Java SDK to eliminate the possible security vulnerability, improving SDK documentation and adding the common operations format support map to SDK READMEs.

Heads-Up about V4 API Version

We have plans to release new API v4.0 later this year. It is about re-structuring of API architecture to improve its availability and make it simpler. As per plan, it will not affect SDK methods naming much since the scheme introduced in the current release is designed to be mostly compatible with this change.

Try it Out and Share your Feedback

Still haven’t tried Aspose.Imaging Cloud? The free trial is right here waiting for you to give it a try and explore the power of the Aspose.Imaging Cloud REST API. All you need is to sign up with the aspose.cloud and visit our developer resources for a quick start:

Don’t forget to share your feedback, your feedback helps shape our roadmap because it is important to us to always deliver a product that satisfies your needs.

Posted in Aspose.Imaging Cloud Product Family | Tagged , , , , , | Leave a comment

Perform a Reverse Image Search

Share on FacebookTweet about this on TwitterShare on LinkedIn

The reverse image search is an analysis process when source image set containing at least one image is compared with several other images. As a result of this comparison, we get a list of most similar images according to the following conditions:

  • Degree of similarity
  • The minimal threshold of similarity
  • Algorithm of comparison

Aspose.Imaging Cloud provides REST APIs to help developers perform a reverse image search.

Use Cases

There may be a lot of use cases to apply reverse image search engine. The most common use cases are the following:

  • Search for image duplicates and remove the duplicates. This is the most common use of the library, and many customers need to sort out their photo libraries by finding similar photo images and leaving one or several shots while deleting the rest ones.
  • Search for content similar images. This feature is useful for digital writers who wish to find the most suitable content image to fill the article. Sometimes they may want to find a higher resolution image with the same content to put into article.
  • Search for inappropriate content. The engine may help find and identify images with inappropriate content and filter them out.
  • Search for digitally signed images.

Find Duplicate Images

With Aspose.Imaging REST API, we can find duplicate images in images storage. The steps to call this API are following:

1. Create ImagingApi Instance

Before creating ImagingApi instance, we need to create Aspose Cloud account and obtain our App Key and App SID. Getting Started article explains how to perform these steps.

2. Create Image Search

The method creates empty search context with certain settings. The search context state is stored in storage as a file (searchContextId).search. The important API parameters are:

  • String detector – features detector (default AKAZE)
  • String matchingAlgorithm – features matching algorithm (default RandomBinaryTree)

The API returns SearchContextStatus in response which indicates the current status of search context: Idle, ExtractingFeatures, MatchingFeatures or Searching.

3. Upload Image Set to Cloud Storage

Now, we upload the image set to cloud storage among whom we want to find duplicate images.

4. Add Images to Search Context

Now, we extract features of the above images and add them to search context.

5. Call Find Image Duplicates API

Finally, we call FindImageDuplicates API and pass following parameters:

  • searchContextId – search context id
  • similarityThreshold (required) – minimum similarity threshold

The API returns Duplicates(ImageDuplicates[]) array. The array contains property SearchResult[] DuplicateImages. The Search result contains two properties: string ImageId and float Similarity.

We may delete the search context as a last step.

Posted in Aspose.Total Cloud Product Family | Leave a comment

Export Spreadsheet to Markdown Format

Share on FacebookTweet about this on TwitterShare on LinkedIn

We are excited to announce new release Aspose.Cells Cloud 19.5. If you are working with the Markdown file format, then it is good news for you. From this release Aspose.Cells Cloud starts the support of Markdown file format.

Let’s show you how conveniently you can export your Spreadsheet documents to Markdown file format on any platform. You do not need any cumbersome coding for the purpose.

Let’s have a look at conversion code using cURL commands for REST API requests.   

Get Authentication Token

Upload source document to Storage

Export source document to Markdown File Format

In case you still haven’t met the API and haven’t worked with it, free trial is right here waiting for you to give it a try and explore the power of the Aspose.Cells Cloud REST API. All you need is to sign up with the aspose.cloud and visit our developer resources for a quick start:

Posted in Aspose.Cells Cloud Product Family | Leave a comment

Update Slide Animation with Aspose.Slides Cloud 19.5

Share on FacebookTweet about this on TwitterShare on LinkedIn

Guys! We have a great news for you. Aspose.Slides Cloud 19.5 is released. It is not a routine monthly release, but with some major changes in the RESTful API that takes it to the next level of reliability and availability. In new release, we have implemented Aspose.Slides Cloud as Microservice and introduced new API Version V3. Along with this internal architectural change, we have introduced many other important features in this release that make the API first choice of developers for creation and manipulation of PowerPoint Presentations on any platform. Let me share some overview of newly added features/enhancements in subsequent sections. However, please check the detailed release notes of this version to get an idea about all the new features/enhancements and fixes made in this release.

What’s New

Following are some notable changes from the new release:

  • Introduction of API version 3.0, API version v1.1 will remain available
  • Introduction of JWT(JSON Web Token) authentication , now OAuth2 and URL signing authentication methods are obsolete
  • Storage API is now available as part of Slides API
    • File API – Methods for upload, download, copy, move, delete files in the cloud storage
    • Folder API – Methods for create, copy, move, delete folders in the cloud storage
    • Storage API – Methods for getting storage information
  • Animation API has been added. API offers a wide range of options for applying various types of animation effects on the shapes in the presentation
  • format query string parameter and saveAs resource are replaced by format path parameter. This applies to presentation, slide, notes slide, shape and image.Format in convert resource is also specified in path instead of query
  • All response objects have the following changes:
    • Code and Status properties are removed. Inspect HTTP response to retrieve them
    • The data properties are moved level up. Their properties are now root properties of response DTO. For example, Document in document response, Slides in slides response, Slide in slide response, ShapeList in shapes response etc.
  • Read more

Working with Animation      

Animations make presentations, eye catching and attractive for the viewers. We already support Animations in Aspose.Slides for .NET. Now we have introduced Animation feature in Aspose.Slides Cloud as well. You can apply a vast range of effects to the shapes. As every element on the slide including text, pictures, OLE Object, table, etc is considered as a shape, so it means we can apply animation effects on every element of a slide.

Animation method represents animation sequences of a slide. You can get animation info of any slide, update mainsequence and interactivesequence elements of a Slide with Aspose.Slides Cloud. Please check documentation for more details.

Here, we will show how easily you can apply animation to shapes in a slide using cURL for the REST API requests along some other new features of this release. There are other SDKs available to use Aspose.Slides Cloud API directly in your favorite platform.

Following steps are involved in this example:

  • Get JWT authentication code
  • Upload source file to storage
  • Update Slide Animation
  • Download updated source file

Get JWT authentication code

Upload source file to storage

We are uploading source file to default storage of aspose.cloud using new File API. However, you can also use 3rd party storage as well.

Update Slide Animation

We will update the slide animation of the source file from the storage as follows. We will create the main animation sequence with two effects and an interactive sequence. All existing animation will be removed.

Please note, while updating the slide animation, If mainSequence element is specified, all existing main sequence effects will be removed. Otherwise, they will remain unchanged.

And if interactiveSequences element is specified, all existing interactive sequences will be removed. Otherwise, they will remain unchanged.

Download File

File API is used to download files form storage. We will download updated slide with animation from storage to local drive.

Resources

To learn more about Aspose.Slides Cloud REST API, visit our developer resources:

Posted in Aspose.Slides Cloud Product Family | Leave a comment

MailMerge Feature Improvement in Aspose.Words Cloud 19.5

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Words Cloud is a market leading REST API, for manipulation of Word files and report generation without dependency of Microsoft Word. Aspose.Words extended the standard Mail Merge feature of Microsoft Word and Mustache template to advance level, turning Aspose.Words API into a full-fledged reporting solution that allows you to generate even more complex documents such as reports, catalogs, inventories, and invoices.

We are pleased to announce Aspose.Words Cloud 19.5. Are you using Mail Merge and Mustache templates for reporting? In that case, you have to call two different APIs for Mail Merge and Mustache templates, “ExecuteMailMerge” and “ExecuteTemplate” methods respectively. But in Aspose.Words Cloud 19.5 release, we have simplified the reporting feature by replacing these methods with a single “MailMerge” method which can be used with both template types. Please check Mail Merge Documentation for more details to use the same method for both types of templates.

MailMerge Template

Mustache Template

Another important change in new release is change of insertPageNumbers method to PageNumbers.

Resources

And if you have not already had a chance to try Aspose.Words Cloud REST API, simply start a free trial today. All you need is to sign up with the aspose.cloud. Once you have signed up, you are ready to try the powerful file processing features offered by aspose.cloud. Following are some useful resources of Aspose.Words Cloud you may need to accomplish your tasks.

Documentation

Web API Explorer

Examples and SDKs

Support Forum

Share Your Feedback

Feel free to drop us a comment sharing your thoughts about the new version of Aspose.Words Cloud REST API. Or let us know if you have any suggestions or if you need any particular features which you expect our REST API to have.

Posted in Aspose.Words Cloud Product Family | Tagged , , , , , | Leave a comment