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

Convert VSDX to PDF with Aspose.Diagram Cloud SDK for PHP

VSDX to PDF

Hello Guys! We’re pleased to share another important monthly release of Aspose.Diagram Cloud API release, 19.10. In this blog post I’ll introduce you with the new features and enhancements of the release using VSDX to PDF conversion feature.

In this release, we’ve made significant updates to improve performance and stability of Aspose.Diagram Cloud to make it the developer’s first choice for Microsoft Visio file format manipulation without depending on Microsoft Visio. We introduced SaveOption parameter for the SaveAs API to export Visio files to supported file formats with customized settings. Integrated new APIs for storage operations in the Aspose.Diagram Cloud API and many other enhancements in the API structure to make it more optimized and refined. You can check the release notes of new version to get a complete list of new features and fixes.

Let me demonstrate the some of the changes in subsequent sections.

Convert VSDX to PDF with PHP

Aspose.Diagram Cloud lets you to create and convert Microsoft Visio drawings to a number of file formats on any platform without depending on any tool or plugin. I’ll show you how easily you can convert VSDX to PDF using Aspose.Diagram Cloud SDK for PHP with new release. However, you can use the API on any language or platform that supports REST or use SDK of your favorite language directly in your application.

Here we go, follow these steps to convert VSDX to PDF:

Step 1: Sign up with aspose.cloud and get free app KEY and SID

Step 2: install PHP from the Packagist

Step 3: Create a new php file and copy paste following code to upload a VSDX file to Aspose storage and convert to PDF

Tell Us What You Think

We would love you to hear from you, what you think about Aspose.Diagram Cloud API new release? If you’ve any suggestions or if you need any particular features which you expect our Aspose.Diagram REST API to have, please feel free to drop us a comment below or at the support forum. If you’ve not already tried our REST API, we encourage you sign up with the aspose.cloud for a free trial today and explore the API live examples, online Documentation and code samples on Github.

Related Post:

Create, Read and Convert or Manipulate Microsoft Visio Diagrams

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

Apply Image Processing Filters with Aspose.Imaging Cloud SDK for .NET

With the major release of Aspose.Imaging Cloud 19.10, we’ve introduced an advanced image processing feature; support of Image processing filters. The image filters list includes a variety of the filters for image noise reduction, sharpen and smoothing images. In this release, we’ve also fixed some issues reported in our previous releases. It makes this release more reliable and stable image processing REST API. Please check the detailed release notes of Aspose.Imaging Cloud 19.10 to get an idea of all the new enhancements and bug fixes made in this release.

No matter what programming language or platform you are working on, you can rely on Aspose.Imaging Cloud for image processing operations like applying image filters, resizing, cropping, rotating, scaling, flipping, searching, exporting and converting images without depending on any third-party tool or plugin. Let me share some brief details of the new exciting feature; image processing filters.

Image Processing Filters

Starting from 19.10 release, Aspose.Imaging Cloud is introducing a wide range of image processing filters, that you can use as per your requirements. The supported image filter types are as following. It is not a final list; we will keep adding more demanding filter types in future.

  • BigRectangular
  • SmallRectangular
  • Median
  • GaussWiener
  • MotionWiener
  • GaussianBlur
  • Sharpen
  • BilateralSmoothing

Let’s have a hand-on experience of applying image filter on an image using Aspose.Imaging Cloud API. We’ll add a Gaussian blur filter. It is a low-pass filter that widely used effect in graphics software, typically to reduce image noise and reduce detail.

In following example, we’re using the cURL command line tool to apply supported image filter on an image with a simple HTTP request. You can use the REST API in any programming language that supports REST and provides native REST client to work with REST APIs. Or you can use the SDK of your choice from GitHub repository directly in your favorite language without worrying about underlying rest HTTP requests and responses.

Input

Output

Other Improvements

Other important improvements and fixes are as following:

  • Optimized the process to export SVG to raster formats.
  • Fixed SVG to PNG conversion issue, a SVG image was resulting as white PNG
  • Fixed exception on loading of a gif image
  • Added image filtering feature to all Aspose.Imaging Cloud SDKs

Try It Out and Share Your Feedback

If you’ve not already tried Aspose.Imaging Cloud, we encourage you to head over to it with a free trial today. All you need is to sign up with the aspose.cloud to get the free APP SID and KEY. Once you’ve signed up, you may go through the Online Documentation and try Live examples of APIs. We would love to hear what you think. If you’ve any questions and/or comments, please share them at support forum.

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

Show Data Labels Over the Maximum of the Chart with Aspose.Slides Cloud 19.10

Our Aspose.Slide Cloud monthly releases continue, and we’re happy to announce the latest version, 19.10. It’s available on production server. It improves the Chart manipulation feature of the API .It includes a new chart property ShowDataLabelsOverMaximum to show data labels over the maximum of the chart, custom HTTP headers support and issue fixes in API Explorer. Check the release notes of this version for a complete list of enhancements and improvements.

Let me give you a quick overview of some of these features, carried in this new release.

Add Chart with ShowDataLabelsOverMaximum

While working with charts, there is a scenario where your maximum data value is greater than the maximum value of the axis and data goes off the chart canvas and data label does not show up in the chart. With the introduction of new property now you can specify to show data labels over the maximum of the chart in that case.

For example, in following chart maximum value of the vertical axis is 6 but Column 04 in Category 2 has value 7, so the data label is not reflected in this case.

Now starting from this release, you can control the Data Labels appearance in discussing scenario. You can set ShowDataLablesOverMaximum to true and get the data labels in the chart:

A cURL example to update the Chart properties:

Custom HTTP Header Support

Custom HTTP headers are commonly meant to provide additional information in the HTTP request. These are used for troubleshooting, informational purposes, and even implementing particular logic on the server-side.

In this release, we have implemented a new feature to pass custom HTTP headers in Aspose.Slides Cloud SDKs. The SDKs are wrapped around Cloud APIs and support all the features of Aspose.Slides Cloud API in your favorite programming language without worrying about the underlying REST API calls.

Here you can check how to pass custom HTTP header using Aspose.Slides Cloud SDK for .NET:

To learn more about Aspose.Slides Cloud, please have a free sign up and visit following resources.

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

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

Are you looking for a robust 3D modeling and transformation API?  Aspose fulfilled your quest with introduction of Aspose.3D Cloud. It will help the developers to manage file formats used in 3D modelling, gaming, computer aided design and manufacturing on any platform without dependency of any 3D modeling and rendering software.

What is Aspose.3D Cloud?

Aspose.3D Cloud is a REST API solution that helps developers to add features to create, modify and convert 3D objects, models and entities in their desktop, web and cloud applications. It supports manipulation of all popular 3D file formats. You can use it with any platform or language for example .NET, Java, PHP, Ruby, Python, Node.js and many more. You do not need to worry about language or platform limitations because almost all the platforms and languages support REST features and provide native REST clients to work with REST APIs.

It supports to convert the specific part or whole 3D file from one format to another. You can create or delete various types of 3D entities, such as 3D box, 3D cylinder, 3D sphere, torus, and 3D plane with the Cloud API. Please check the release notes of first version for a complete list of Aspose.3D Cloud API features. And once you’ve done that, give it a try for yourself.

Convert 3D Files

The Aspose.3D API allows developers to 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. Below is the cURL code example for converting an FBX to 3D PDF file format, you can use SDKs for all popular programming languages from GitHub repo.

Triangulate Meshes

You would know that graphics software can operate more efficiently on triangle meshes and Aspose.3D Cloud supports this important feature. It enables you to triangulate the whole file or only a specific part of the 3D scene and save it to a different file. Here is a sample cURL command we will use to triangulate a 3D PDF file.

What’s Next

We’ve given you a quick overview of Aspose.3D Cloud. But to know more about this powerful 3D modeling and transformation solution, all you need is to sign up with aspsoe.cloud and check the API documentation section for a complete list of features with sample code examples. If you’ve any queries, feel free to post to the Aspose.3D Cloud forum. We’ll be happy to assist you with your queries and inquiries.

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