Reverse search and image deskewing with Aspose.Imaging Cloud API

Reverse image search API

We are excited to inform you about the newly introduced features in Aspose.Imaging Cloud API. Now it supports website-based image source for reverse image search. The image deskewing feature also makes the API second to none. We are continuously working and improving to offer you the best solutions possible.

Reverse image search is useful for finding duplicate or similar images. It can also help to monitor obscene or graphic content. You can also counter copyrights violations or trademark counterfeit by searching digitally signed images with the reverse search. Moreover, image deskewing is another feature that adds value to Aspose.Imaging Cloud API. It is also relevant to scanned PDF documents where skewed images often exist. Such PDF documents are frequently converted to searchable PDF documents where the results can be improved by deskewing the images. Let us dissect these features below.

Reverse Image Search using Aspose.Imaging Cloud SDK for Python

Several SDKs are available to communicate with Aspose.Imaging Cloud API. The SDKs take care of all minor details so that you can proceed with your requirements hassle-free. The SDKs include .NET, Java, Python, PHP, Ruby, Android, and Node.js. Here we will be working with a Python example:

First of all, you would need a free sign up at Aspose.Cloud. Install Python 2.7 or later and then add the following PyPi package to your requirements.txt.

aspose-imaging-cloud>=20.1

Now import the dependencies as under:

import aspose-imaging-cloud

Now, you can use below Python code to call the APIs and test the feature:

The website-based image source for reverse image search is well elaborated in this example. It includes an additional step of resizing the image to demonstrate the efficiency of API. Image dimensions may differ but the API will produce reliable and accurate results. Following is the screenshot of the output:

As you can notice that the number of similar images, the URL and similarity percentage are shown by the parameters in API response.

Image Deskewing

Images contain a lot of information and image processing has assumed a lot of importance these days. A very common use case is skewed images in scanned PDF documents or often in the images from mobile phone cameras. Aspose.Imaging Cloud API now includes the feature of deskewing the images. You can deskew the images in BMP, GIF, JPEG, JPEG2000, PSD, TIFF, WEBP, and PNG format. Let’s consider a .NET example for deskewing a TIFF image.

This example uploads a sample image to Cloud Storage, deskews it and uploads the updated to Cloud Storage. Below are the screenshots of input and output TIFF images.

Input TIFF Image

Output TIFF Image (Deskewed)

Aspose.Imaging Cloud SDK for Ruby

Another important addition in SDKs lineup is that we have published Aspose.Imaging Cloud SDK for Ruby. It lets you integrate robust image processing features in your Ruby applications.

We encourage you to try these efficient features of the API and share your experiences with us. Let us know if you have any suggestions or queries. We look forward to hearing back from you via Free Support Forums.

Related Article:

Introducing Aspose.Imaging Cloud V3

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

Convert HTML to PDF with Aspose.PDF Cloud API

HTML to PDF

We often need to convert HTML files to PDF owing to several strengths of PDF file format. Considering the features of PDF files, Aspose.PDF Cloud API has been structured and designed to cater to all of your PDF related needs. You can create, edit or manipulate supported file formats. Among other file format conversions, HTML to PDF conversion is one of the famous use cases.

Aspose.PDF Cloud is a REST API so you would not need any complicated environment configurations or setups. Several SDKs are also available so that you can easily achieve the requirements. You can work with any of the SDK including .NET, Java, PHP, Android, Python, Ruby, Node.js, Swift or Go. Get started today by signing up with existing GitHub, Twitter, Facebook or Google account. A generous free trial is granted when you sign up.

Convert HTML to PDF file

You can convert HTML to PDF by following below steps:

  1. Upload the HTML file and related CSS, JS, Images as a single ZIP file to Cloud Storage
  2. Get JSON Web Token for authentication
  3. Call the API https://api.aspose.cloud/v3.0/pdf/create/html
  4. Save generated PDF file received as API response

Following cURL code follows these steps and converts the HTML file:

You can also notice several optional parameters specified with the API call in above code. These include page dimensions and page margins of the generated PDF document which can be specified beforehand. Please note that the standard unit in Aspose APIs is point, where 72 points equal 1 inch. Therefore, according to passed values, the margin is set to half-inch and the page dimensions equal to A4 size.

Input HTML file

Output PDF file

High fidelity PDF rendering with Aspose.PDF Cloud API via single API call is noteworthy in the screenshot. Likewise, this simple yet powerful feature is capable of rendering even complicated documents in WYSIWYG format.

Moreover, Aspose Cloud APIs support 3rd party cloud storages including Google Drive, Dropbox etc. The following cURL example is using Amazon S3 Storage for conversion:

This code will upload source file to AWS S3 Storage and will save generated PDF file on local storage. It also sets the page size of PDF document as of A4 standard, which can be verified from the document’s properties tab as in the screenshot below:

Java Example

Let us now consider a Java example to convert HTML to PDF with Aspose.PDF Cloud SDK for Java. The SDK is a wrapper around REST API in Java that allows you to process documents while gaining all benefits of strong types and IDE highlights. You can install it by adding below dependency in the project’s POM file:

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-cloud-pdf</artifactId>
    <version>20.2.0</version>
    <scope>compile</scope>
</dependency>

Aspose.PDF Cloud SDK also includes a suite of unit tests. The unit tests also serve the purpose of examples that explain how to work with Aspose.PDF Cloud SDK for Java. Learn more.
Following is the Java code to convert HTML file to PDF document:

These are some simple and basic demonstrations of high fidelity rendering of PDF documents. Furthermore, the API is rich in features and comes with free trial without any watermarks or limitations. In case you have any concerns, questions or suggestions, get in touch with us via free support forums and we would love to assist you. Happy coding!

Suggested Articles:

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

Convert FBX or GLB files to PDF with Aspose.3D Cloud API

FBX to PDF API

3D file formats are quite common these days. From concept inception to planning and implementation, 3D modeling is used in all phases. Aspose.3D Cloud API is a feature-rich API that lets you create, edit or convert several supported file formats. You can translate, rotate or convert the files as per your requirements. Aspose.3D Cloud API helps you to manage file formats used in 3D modeling, gaming, computer-aided design and much more, on any platform without any dependency on 3D modeling and rendering software.

Aspose.3D Cloud is a REST API solution that helps you to add features to create, modify and convert 3D objects, models and entities in your applications. We also offer SDKs which are wrappers to interact with Cloud APIs. They take care of low-level details and manage the requests and responses so that you can dedicate your efforts to the main objectives. For now, you can integrate .NET or Java SDK in your applications, whereas we will be supporting more SDKs soon.

You can save a 3D file to any supported file format such as 3DS, AMF, RVM, DAE, DRC, FBX, gLTF, OBJ, PDF, PLY, STL, U3D, DXF, JT, X, and 3MF. You can convert a 3D file to another format with default settings or can pass a detailed setting parameter for the conversion. Most popular 3D format conversions include FBX to PDF and GLB to PDF conversions. You may need to convert a 3D file to PDF for printing, archival, approval or any other purpose.

FBX to PDF Conversion

Let us convert a sample FBX to PDF format file here as a demonstration. We will follow the below steps for the conversion:

  1. Upload the source FBX file to Cloud Storage
  2. Call the API to convert the FBX file to PDF
  3. Download converted PDF file from Cloud Storage

Following is the cURL code for FBX to PDF conversion:

Input FBX file

Output PDF file

You can notice how efficiently the PDF file has been rendered by Aspose.3D Cloud API. Let us take a look at GLB to PDF conversion feature as well.

GLB to PDF Conversion

Aspose.3D Cloud API is pretty simple and easy to work with. GLB to PDF conversion also includes a simple API call that converts input GLB file and returns output PDF document as API response. Below cURL example demonstrates GLB to PDF rendering:

Likewise, you can further explore these high fidelity renderings and other features with Free Trial while consulting API references. Do share your experience, feedback or suggestions with us via Free Support Forum.

Related Post:

Manipulate 3D Models and Objects with Aspose.3D Cloud

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

Create, Edit or Convert Excel Files with Aspose.Cells Cloud API

Create edit or convert excel files

Aspose.Cells Cloud is a REST API that allows you to perform simple as well as complex operations on your Excel files including, but not limited to, XLSX, XLS, XLSB, XLSM, and several other supported file formats. You can create these files from scratch as well as from existing template file. Moreover, you can also convert supported file formats with Aspose.Cells Cloud API. You can use many other features of the API without needing to install MS Excel or any other third party application.

You only need to Sign Up for free and get your App SID and App Key as guided in Creating and Managing Account. After the sign-up, you are ready to test the API as per your requirements. You may work with default storage or configure 3rd party storage with Aspose APIs. Now you are ready to test the basic yet important feature of Aspose.Cells Cloud API. You can use cURL commands to call the REST APIs from any platform. We also offer several SDKs that take care of low-level details for making a request and handling the responses, so that you may focus over the main code. These SDKs include .NET, Java, PHP, Python, Ruby, Node.js, Android, Swift and Perl.

Create Excel files without using MS Excel Application

Let’s create a blank workbook with Aspose.Cells Cloud API. Below are the steps you need to follow for creating an XLSX file:

  1. Get your App Key and App SID after signing up
  2. Get JSON Web Token
  3. Call the API https://api.aspose.cloud/v3.0/cells/CellsCloud.xlsx
  4. Empty XLSX file will be created in your configured Storage

Output XLSX file created with Aspose.Cells Cloud API

Create XLSX file without MS Excel

Likewise, you can also create a workbook based on an existing template file. The below code elaborates on how can you utilize a template file while creating a new workbook. Please note, the example assumes that the template file, Template.xlsx in this case, is already uploaded in Cloud storage.

Once you have created a new file using any of the above approaches, you are all set to edit, manipulate and convert the XLSX, XLS or any other file format to supported file format. Here we will be adding a blank worksheet to newly created XLSX or XLS file.

Below sreenshot shows addition of empty worksheet with the name specified by you, in the curl code.

These examples elaborate on how simple is it to work with Excel files. Many other useful features are offered by Aspose.Cells Cloud API as you may visit API documentation and API references for further information. In case of any query, suggestion or feedback, please feel free to get in touch with us via Free Support Forum. We would love to hear back from you!

Related Post:

Apply Conditional Formatting to Excel Files

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

Convert HTML files to PDF with Aspose.HTML Cloud API

HTML to PDF API

HTML files are usually the basic building block of the websites. HTML file format lets you manipulate or organize text, images, tables or any other page contents. Modern web applications generate reports or information in HTML format because almost all devices support this format without needing any additional or complex configuration. However, often we need to protect a document from modifications by means of document privileges or digital signing. You may also need to archive data for longer periods of time. In such cases, you can convert HTML files to PDF documents. There could be many other reasons to convert HTML files to PDF. Here we will be discussing this use case in connection with Aspose.HTML Cloud APIs.

Aspose.HTML Cloud API for HTML to PDF Conversion

Aspose.HTML Cloud is a REST API that allows you to convert or manipulate HTML documents and several other Supported File Formats. You can use it on any platform you may plan to work with, because it can be used with cURL commands or SDKs including PHP, Ruby, Python, Node.js and many others. You only need to sign up for free and test the API in its full capacity. We have already compiled all the necessary information about Creating and Managing accounts in the documentation article.

Convert HTML files to PDF

Here we will be discussing two popular but different use cases of HTML to PDF conversion using cURL. First of all, let’s consider the conversion of HTML file to PDF where HTML file exists on your local disk and the result PDF will be saved in your storage.

  1. Get your App Key and App SID after signing up
  2. Get JSON Web Token
  3. Call the API https://api.aspose.cloud/v3.0/html/convert/pdf
  4. Generated PDF file will be saved in a specified folder on the Storage

Below code snippet shows all these steps and converts the HTML file to PDF:

Input HTML file displayed by browser (Google Chrome)

HTML to PDF rendering

Output PDF file generated by Aspose.HTML Cloud API

PDF output

Likewise, you can also convert HTML to PDF by using a URL. In response to your request, a PDF file will be received which you may save in your local file system. Below are the steps for converting a web page to PDF by specifying the URL.

  1. Get your App Key and App SID after signing up
  2. Get JSON Web Token
  3. Call the API https://api.aspose.cloud/v3.0/html/convert/pdf where you need to pass the URL as parameter
  4. Generated PDF file will be saved in your local file system

Following code snippet follows these steps and can simply generate a PDF document:

Webpage displayed by browser (Google Chrome)

Source HTML file

Output PDF file generated by Aspose.HTML Cloud

HTML to PDF

As you can notice the generated PDF file is a true depiction of WYSIWYG rendering. The API performs high fidelity rendering thus it could be a perfect candidate to be integrated into your applications. Feel free to test the APIs prior to purchasing it and we would love to hear your concerns, questions or suggestions via our Free Support Forums.

Related Post:

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

Convert Presentation to PDF with Aspose.Slides Cloud API

This image has an empty alt attribute; its file name is aspose_slides_for_cloud-150x150.png

Presentations are helpful to reflect information in an organized manner. You can fill slides with a lot of content including text, shapes, charts, images and much more. Aspose.Slides Cloud API can be used to create, edit or manipulate presentation files. You do not need to install Microsoft PowerPoint or any other additional application. It gives you the privilege to work in any operating system and environment, no complicated configurations are involved. Moreover, all learning resources are well-managed which enable you to work efficiently. You can simply Sign Up and test all the features with Free Trial.

In this article, we will be considering a very important feature of Aspose.Slides Cloud API. Let us learn about the conversion of presentation to a PDF document. The API lets you convert a whole presentation to PDF with a single API call. You can also convert a specific slide to PDF document. First of all, we need to upload the source presentation to Cloud Storage. Aspose Cloud provides its own storage capacity. It also supports several 3rd party storages including Amazon S3, Azure, Dropbox, etc. You can configure any 3rd party cloud storage with Aspose Cloud. Following is a cURL example to upload a presentation from local storage to Cloud storage.

After uploading the file, you can convert a specific slide to a PDF document by specifying the slide number. For instance, to render the second slide, specify the number as in below code snippet:

Convert PPTX to PDF or PPT to PDF

In this example, we will assume that the source PPTX file is already uploaded to Cloud Storage with the example we have discussed above. Now use following cURL code to call the API and the whole presentation will be converted to PDF document.

Following are some screenshots of source and generated files:

Input PPTX file

PPTX to PDF

Second Slide to PDF output

Whole Presentation to PDF file

PPT to PDF

You can notice how simple is it to convert the presentation to PDF while the rendering engine of API is very good. Moreover, we look forward to knowing your feedback, do reach out to us via Free Support Forum.

Related Article:

Reorder Multiple Slides in one API call using Aspose.Slides Cloud API

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

Create, Edit, Merge or Convert a Word Document without MS Word

Aspose.Words Cloud API

Aspose Cloud APIs allow you to create and convert Word documents without needing conventional word processing applications. You can also edit, manipulate or merge Word documents including DOC, DOCX, and many other file formats. One does not need to process hundreds of documents manually, one by one. The process can simply be automated with Aspose Cloud APIs. Several SDKs are available which make Cloud APIs truly platform-independent.

Let us walk through the initial steps before we start working with Aspose.Words Cloud API. First of all, you would need to Create a new account or Sign Up with Facebook, Google, GitHub or Twitter account. Now you need to Create New Application and get its respective SID and Key, to proceed further.

In this article, we will be discussing about creating a new DOCX file, as well as converting a DOCX file to PDF. Below is the cURL code which creates a blank DOCX file into your storage.

Output

Word document

Converting a Word document to PDF file

For converting a Word document to PDF, you need to go through the following steps:

  1. Set App SID and App Key and sign the URI
  2. Build JSON to post in the request body. Input documents including its path should be provided
  3. Send a PUT request to Aspose.Words Cloud API
  4. Download converted PDF document

Below is the code to convert a Word document to PDF file:

Output

Word to PDF conversion

Likewise, many more word processing features are offered by Aspose.Words Cloud API. You may visit API documentation and API references for further information. Moreover, all SDKs are hosted at GitHub that you can integrate with your applications. We would love to hear your feedback and suggestions. Please feel free to write back to us at Support Forum.

Related Article(s)

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

Convert Microsoft PowerPoint Presentation to image with Aspose.Slides Cloud API

This image has an empty alt attribute; its file name is aspose_slides_for_cloud-150x150.png

Images are supported at almost all devices without requiring any complicated configurations. Converting Slides of PowerPoint presentation is a popular use case of Aspose APIs. Image conversion feature has been further enhanced in Aspose.Slides Cloud API. You can convert PPT, PPTX and many more supported file formats to JPEG, PNG, TIFF, SVG, BMP, and other image formats.

Sometimes the developers face problems where everything works fine in development environment but issues arise on production server. Aspose.Slides Cloud, being a REST API, gets you covered from such awkward situations. You would not need to install additional applications or resources. Simply create a free account and you are all set to try the API at any platform, using your app Key and SID.

Let me illustrate how simple is the presentation to image conversion with Aspose.Slides Cloud API.

Converting a presentation to image

You can convert a specific slide to an image, or the whole presentation to images which later returns a ZIP file containing generated images. Aspose.Slides Cloud API supports both use cases. Below is a cURL example to convert whole presentation (PPTX) to images (PNG) format and saving the output on Cloud storage.

curl  -v "https://api.aspose.cloud/v3.0/slides/convert/Png?outPath=myabc.png" \
-X PUT \
-T test.pptx \
-H "Content-Type: application/octet-stream" \
-H "Authorization: Bearer  <jwt token>" \

For converting a specific slide to an image, below cURL example can be used:

​curl  -v "https://api.aspose.cloud/v3.0/slides/test.pptx/2/Png?outPath=myabc.png" \
-X PUT \
-T test.pptx \
-H "Content-Type: application/octet-stream" \
-H "Authorization: <jwt token>"\

This will convert the slide at a specific index to a PNG image. Moreover, you can also use this swagger link to call the API right inside a browser. Further information about the request and response is also documented along with all the details. Learn more

Moreover, we have written the Cloud SDKs in nine different programming languages so that you may call the APIs with minimal code: Aspose.Slides Cloud SDKs

In case you need any assistance or information, please reach out to us via Support Forum. You can also access Aspose Cloud SDKs and code samples for more exposure and knowledge of respective APIs.

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

Aspose Cloud December Pricing Update

Simplifying Pricing for New Customers

We have updated the Aspose Cloud pricing structure to simplify it for new customers. Previously some API calls were “chargeable” while other API calls were not. If an API call created a document or meaningful result, then it was chargeable. If an API call did not create a document or result, then it was not chargeable. However, there were some ‘grey areas’ with certain Aspose Cloud products where customers were confused about whether they should be charged for some calls.

To resolve this issue we have updated our pricing to now charge for every API call made, regardless of what the API call does. At the same time, the cost of each API call on the new pricing scheme has been reduced by 1/3.

How does this affect Existing Customers?

Since the effect of this change is different for every customer we have not automatically switched existing customers to the new pricing. Instead as with every pricing change we have “grandfathered” existing customers who will continue to be charged based on the pricing when they signed up.

If you are an existing customer who wishes to switch to the new pricing, you can do this by visiting the “Buy Now” page within your Aspose Cloud account.

You can find more information on the new pricing here: https://purchase.aspose.cloud/pricing.

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

Aspose.Storage Cloud has been Discontinued

Aspose Storage Cloud

Aspose is glad to share with you that Aspose.Storage Cloud API features are now more simplified. Files and folders storage and their manipulation are no more dependent on the separate Aspose.Storage Cloud API, however, these features have been integrated within every Aspose Cloud API. To be very precise, “Aspose.Storage Cloud has been discontinued as a separate product”.

What existing users can do?

Aspose.Storage Cloud API and following SDKs will remain available on the public repositories like GitHub, NuGet, etc for the existing customers until 31.12.2020:

  • Aspose.Storage Cloud SDK for .NET
  • Aspose.Storage Cloud SDK for Java
  • Aspose.Storage Cloud SDK for PHP
  • Aspose.Storage Cloud SDK for Python
  • Aspose.Storage Cloud SDK for Ruby

Therefore, we recommend updating your applications to the latest versions of SDKs / Endpoints as soon as possible.

Aspose.Storage Cloud will neither be available for purchase separately nor as a part of Aspose.Total Cloud Product Family any more. However, the technical support welcomes you for any further queries about the migration to the latest versions.

How to work with new APIs?

The below sample shows how you were using Aspose.Storage Cloud API to upload the file to Cloud Storage:

// cURL example to upload file to Cloud Storage
curl -v "https://api.aspose.cloud/v1.1/storage/file?path=sample.docx" \
-X PUT \
-T sample.docx \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-H "Authorization: Bearer <jwt token>"

Now you can achieve this using any of the Aspose Cloud APIs. Below sample shows Aspose.Words Cloud API to upload the file to Cloud Storage:

// cURL example to upload file to Cloud Storage
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/sample.docx" \
-X PUT \
-T sample.docx \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-H "Authorization: Bearer <jwt token>"

The most notable change is the Base URL of the API.

Support and Learning Resources

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