Export WordPress posts to PDF using exporter Plugin

Aspose.PDF Exporter plugin banner

Portable Document Format (PDF) file is a format which is independent of application software, hardware as well as Operating System. PDF files can be opened in Adobe Acrobat Reader/Writer as well in most modern browsers like Chrome, Safari, Firefox via extensions/plug-ins. They usually contain information like text, images, hyperlinks, form-fields, rich media, digital signatures, attachments, metadata, Geospatial features, and 3D objects. Due to all such capabilities, they are popular data sharing format. So in order to share the WordPress webpage or blog, you need to publish them and share the respective URL. However, for data archive purposes, we need to export them to a format which is shall preserve the information for a longer period of time as well as fidelity of the content is not compromised. In such cases, PDF format is one of the best options.

Free WordPress export plugin

Aspose.PDF Cloud is our popular PDF document creation and manipulation cloud API and many users are already using it in desktop & cloud-based applications with the help of their favorite programming language. Though we also have language-specific Cloud SDKs and in order to cater to the requirement for WordPress users, we have developed a plugin to extend Aspose.PDF Cloud features to WordPress platform.

Plugin Installation

The plugin can be installed using either of the following approaches

  • Installation through Marketplace
  • Installation using .ZIP package

Installation through Marketplace

In the WordPress Admin, click Plugins link from the left menu and click Add New button. Enter Aspose.PDF Exporter in the search field and hit the Enter key. The search results will be displayed over the page.

Aspose.PDF Exporter search results
Image 1:- Aspose.PDF Exporter appearing as a search result.

Now click the Install Now button under the Aspose.PDF Exporter option.

The Next step is to Activate the plugin. Therefore, click the Activate button. It will take you to the Plugins page and now click Settings hyperlink appearing against the Aspose.PDF Exporter plugin.

Settings link for Aspose.PDF Exporter plugin
Image 2:- Aspose.PDF Exporter plugin settings link.

Installation using .ZIP package

As an alternative approach, the plugin can also be installed using .zip archive package. Visit Aspose.PDF Exporter page on WordPress plugins section and download aspose-pdf-exporter.zip package.

Now under the Plugins section over WordPress Admin, click Add New button. Now click the Upload plugins button and provide the path to aspose-pdf-exporter.zip archive location over the system. Then click the Install Now button.

Aspose.PDF Exporter plugin installation with .zip file
Image 3:- Installation of Aspose.PDF Exporter plugin through the ZIP file.

Before we start using the Plugin, we need to activate it and therefore, click the Activate Plugin button.

Link to Activate Plugin
Image 4:- Link to Activate PDF Exporter plugin.

Activation of the Export plugin

In order to use the plugin, you need to activate it first by providing your personalized App Key and App SID. In case you do not have the App Key or App SID, sign up free on aspose.cloud dashboard. Click Settings link on the Plugin page under Aspose.PDF Exporter to provide the App Key and App SID.

App SID and App Key provision fields.
Image 5:- Activate the plugin using App Key and App SID.

Export the pages

Click the Pages link from the left menu and from the tabular list, enable the checkbox for one or more entries listed. Click Bulk Action drop-down and select Aspose Export to PDF option (as shown in the image below). Then click the Apply button. A dialog to save the file on the system will appear.

Export to PDF option from Bulk Action menu.
Image 6:- Export to PDF option from the Bulk Action menu.

Similar products

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

Import PDF as a WordPress post using Free plugin

Aspose.PDF Importer plugin

WordPress started as a blogging tool and has evolved throughout the years into a powerful website builder and a robust content management system (CMS). Being a content management system (CMS) enables you to organize and display the content on your site. Since its free, so it is appropriate when you are operating on a small-business budget. Another interesting fact is that it’s easy to use and flexible enough to make different types of websites and it has grown so much in popularity. According to a recent survey, WordPress powers 32.3% of all websites on the internet.

During data collaboration, we usually share documents and if you are using WordPress as your CMS, you may receive files in MS Word, PDF, TXT, etc format. However, PDF is among the popular and widely used formats because it preserves the document layout when viewing on different Operating Systems as well as any PDF viewing tools. So in order to add the PDF content into the digital archiving system, you will have to manually type all the details or copy the content from individual PDF pages.

Keeping this requirement in mind, we have developed Aspose.PDF Importer plugin which takes PDF file as an input and read contents of PDF documents without requiring any other software such as Adobe Acrobat or Adobe Reader. The WordPress plugin is developed using Aspose.PDF Cloud and demonstrates the powerful conversion features of Aspose.Pdf Cloud API.

Installation through Admin Panel

WordsPress Admin plugins section
Image 1:- WordPress Plugins section.

WordPress Admin panel is an easy and convenient mechanism to install the plugins. Login to the WordPress admin panel and click the Plugins menu option.

Click Install Plugin button and enter Aspose.PDF Importer in the search field. Hit the enter key and it will list the plugin. Click Install now button and then click Activate button (which appears in the same place).

Aspose.PDF Importer plugin as search result
Image 2:- Aspose.PDF Importer plugin as a search result.

Once we have activated the plugin, it appears in the list of available plugins as shown in the image below.

Aspose.PDF importer plugin Activated.
Image 3:- Aspose.PDF importer plugin Activated.

Click the Settings link to enable FREE Unlimited Access. On the Aspose Pdf Importer Options page, click the FREE Unlimited Access button. Upon successful subscription, an App SID will be generated and displayed which will be helpful when contacting the technical support team for any queries in Product support forums.

PDF Importer plugin settings screen.
Image 4:- PDF Importer plugin settings screen.
Free unlimited access enabled for the plugin.
Image 5:- Free unlimited access enabled for the plugin.

Installation using .ZIP archive

Another approach of installing Aspose.PDF Importer plugin is using .ZIP archive.

  • Visit wordpress.org plugins page and download aspose-pdf-importer.3.1.zip.
  • Open the Plugins section and click Add New button.
  • On Add plugins Page, click the Upload plugin button.
  • Provide the location of .zip located over the system.
  • Click the Install Now button.
  • Now click the Activate Plugin button.
  • Finally, under the settings section of the plugin, click button.
Image to upload aspose-pdf-importer.3.1.zip package.
Image 6:- Provide the location of aspose-pdf-importer.3.1.zip package.
Image to Activate Plugin.
Image 7:- Image to Activate Plugin.

Create Blog through PDF import

Click Posts link from the left menu and click Add New button appearing in front of Posts heading. In the blog editor page, a new Aspose.PDF Importer button appears. Click the Browse button and provide the location of PDF document who content you want to import into Post. Make the required changes and over the page and then click Insert PDF to Editor button.

Aspose.PDF Importer plugin while creating a new blog.
Image 8:- Aspose.PDF Importer plugin while creating a new blog.
Provide the path to PDF file.
Image 9:- Provide the path to PDF file.

Related Products

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

GLB to FBX conversion using Cloud APIS

GLB is the binary file format representation of 3D models and stores information about 3D models such as node hierarchy, cameras, materials, animations, and meshes in binary format. GLB as a container format was introduced as a binary file format for the representation of glTF assets in a binary blob to avoid the issues caused by glTF. Please note that GLB file is a globe file used by AGI Systems Tool Kit (STK), a program used to simulate aerospace missions, defense systems, and telecommunication systems. 

Furthermore, the GLB file format results in compact file sizes, fast loading, complete 3D scene representation, and extensibility for further development. There are three file types that use .glb extension.

  • STK Globe File
  • Binary GL Transmission Format File
  • Glulx Blorb Game F

GLB files are text files that record what textures, images, and other files are used in a globe, as well as where those files are stored. The GLB formats are optimized for download speed and load time at runtime, it makes them easier to use in mobile- and web-based 3D modeling programs. Apart from this, the glTF is developed to be an efficient, extensible, interoperable format for the transmission and loading of 3D content. The goals of the format include compact file sizes, fast loading, complete 3D scene representation, runtime independence, and extensibility to accompany further development.

FBX format

An FBX file is a 3D model saved in the Autodesk Filmbox format. It contains a model that can be used and shared across a variety of digital modeling and content creation programs, including the Autodesk suite of applications. FBX files are often used in game development and animation. It is available in both binary and ASCII file formats and many non-Autodesk modeling and animation applications can open FBX files.

The FBX format allows creators to share 3D models with each other because of the fact that its efficient and stores models as binary data. In order to cater to this requirement, Aspose.3D Cloud can be used to transform GLB format to FBX.

Get List of Supported File Formats

The product development team is always striving to add new features as well as support new 3D formats and in order to get information regarding the latest file formats, please try using following cURL command. Send a GET request and in response, the list of supported formats will be returned.

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/3d/fileformats" -H "accept: application/json" -H "authorization: Bearer <JWT Token>" 

Request URL

https://api.aspose.cloud/v3.0/3d/fileformats

Response Body

 [
   "amf",
   "ase",
   "collada",
   "discreet3ds",
   "draco",
   "dxf",
   "fbx7200ascii",
   "fbx7200binary",
   "fbx7300ascii",
   "fbx7300binary",
   "fbx7400ascii",
   "fbx7400binary",
   "fbx7500ascii",
   "fbx7500binary",
   "gltf",
   "gltf2",
   "gltf2_binary",
   "gltf_binary",
   "microsoft3mf",
   "pdf",
   "ply",
   "rvmbinary",
   "rvmtext",
   "siemensjt8",
   "siemensjt9",
   "stlascii",
   "universal3d",
   "wavefrontobj",
   "xbinary",
   "xtext"
 ] 

Conversion using cURL commands

In order to perform the conversion of 3D model into various other supported formats, you need access PostConvertByFormat method.

curl -X POST "https://api.aspose.cloud/v3.0/3d/saveas/newformat?name=uploads_files_2382092_untitled.glb&newformat=%22fbx7200ascii%22&newfilename=Myresultant.fbx&IsOverwrite=false" -H  "accept: application/json" -H  "authorization: Bearer <JWT Token>"

Request URL

https://api.aspose.cloud/v3.0/3d/saveas/newformat?name=uploads_files_2382092_untitled.glb&newformat=%22fbx7200ascii%22&newfilename=Myresultant.fbx&IsOverwrite=false
Posted in Aspose.3D Cloud Product Family | Tagged , , , | Leave a comment

PowerPoint Slides manipulation using Cloud API

With every new release, Aspose.Slides Cloud development team is striving to bring the best of PowerPoint manipulation and processing features and working hard to make the API more robust and capable so that our users can make most out of the API with a minimal amount of code.

FODP format support

FODP is a Presentation file saved in the OpenDocument format but saved using a flat XML format instead of the .ZIP container used by the standard .ODP files. It makes auto-generating presentations simpler and allows the presentations to be readable with a text editor. In the latest release version of Aspose.Slides Cloud, the support for .fodp format has been provided which now enables the users to load .fodb file for any processing or rendering existing loaded PowerPoint files to FODB format.

cURL command

curl -X PUT "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/Fodp?outPath=NotesPresentation.fodp" -H  "accept: application/json" -H  "authorization: Bearer <JWT Token>" -H  "Content-Type: application/json" -H  "x-aspose-client: Containerize.Swagger" -d "{  \"Format\": \"string\"}"

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/Fodp?outPath=NotesPresentation.fodp

C#.NET

New PdfCompliance options

In the latest release version, a couple of new options (PdfA1a and PdfUa options) have been added to ComplianceEnum enumeration.

PDF/A compliance Options
Image 1:- Newly added PDF/A compliance options
PDF/A-1a compliant output
Image 2:- PPTX converted to PDF/A-1a Compliant format

Determining Notes Slide

An essential part of a presentation is the preparation of speaker notes. These notes provide structure to a presentation and encourage the audience to listen as well as view the screen. Speaker notes can include reminders of what to say and additional information or facts that do not appear on the screen.

PowerPoint slide with Notes
Image 3:- PowerPoint slide with Notes

PowerPoint presentation from Cloud Storage

Request URL

https://api.aspose.cloud/v3.0/slides/Presentation1-a.pptx/slides/1/notesSlide/exist

cURL Command

curl -X GET “https://api.aspose.cloud/v3.0/slides/Presentation1-a.pptx/slides/1/notesSlide/exist” -H “accept: application/json” -H “authorization: Bearer <JWT Token>”

C#.NET

PowerPotin Presentation from local system

Request URL

https://api.aspose.cloud/v3.0/slides/slides/1/notesSlide/exist

cURL Command

curl -X POST “https://api.aspose.cloud/v3.0/slides/slides/2/notesSlide/exist” -H “accept: application/json” -H “authorization: Bearer <JWT Token>” -d {“document”:{}}

C#.NET

Export SubShapes as Raster Image

Shapes are a great way to make your presentations more interesting. PowerPoint shapes can be customized to suit your needs, using your own color palette, preferences, and more. Shapes add visual appeal to your presentations. Aspose.Slides Cloud provides the capabilities to extract/save the shape into a raster image. You get the option to export in one of the following supported raster image formats.

Raster image export formats
Image 4:- Image Export formats
PowerPoint slide with smart shapes
Image 5:- PowerPoint slide with shapes

C#.NET

smartshape exported as PNG
Image 6:- Shape exported in PNG format
Posted in Aspose.Slides Cloud Product Family | Tagged , , , , | Leave a comment

Export WordPress posts to MS Word documents

WordPress post export to MS Word format

WordPress is one of the most popular content management system solutions in use. It is a free and open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database. It was originally created as a blog-publishing system but has evolved to support other types of web content including mailing lists, forums, media galleries, membership sites, learning management systems (LMS), and online stores. As of April 2019, WordPress is used by more than 60 million websites including 33.6% of the top 10 million websites. In simple words, a “WordPress is a factory that makes webpages” where it stores content and enables a user to create and publish webpages. The WordPress’ plugin architecture allows users to extend the features and functionality of a website or blog where each one offers custom functions and features enabling users to tailor their sites for their specific needs.

Aspose.Words Exporter Plugin

Once a blog post is created, one of the options to share the content is to share a webpage/post link or export WordPress pages into MS Word format such as DOC, DOCX, etc. In order to fulfill this requirement, we have developed a plugin named Aspose.Words Exporter. The Aspose.Words Exporter Plugin for WordPress allows administrators to export post contents to Microsoft Word (DOC/DOCX) document. This plugin works as a bulk action for Posts, Pages, or any custom post type. The plugin is developed using Aspose.Words Cloud and demonstrates the very powerful export feature provided by Aspose.Words for Cloud. It adds a simple bulk action in the drop-down “Export to DOCX” and as soon as the bulk action is called, it exports all posts to a Microsoft Word (DOC/DOCX) document.

Installation through Admin Panel

WordPress admin panel dislay.

Most plugins are available through WordPress themselves, either via downloading them and installing the files manually via FTP or through the WordPress dashboard. In order to install the Word document exporter from WordPress marketplace, login to the WordPress admin panel and click the Plugins menu option. Click Add New button and enter Aspose.Words Exporter in the search field. Hit the enter key and it will list the plugin. Click Install now button and then click Activate button (which appears on the same place)

Aspose.Words Exporter plugin listed as a search result.
Image 2:- Aspose.Words Exporter plugin listed as a search result

Once the plugin is activated, it will appear in the list of available plugins.

Aspose.Words Exporter plugin listed after activation
Image 3:- Aspose.Words Exporter plugin listed after activation

Click an option Open Aspose.Words Exporter Settings to enable FREE Unlimited Access. There you get a variety of options to configure the plugin. Among various options, you also get the privilege to specify the output format

Post export format
Image 4:- Specify an export format for the post.

Aspose.Cloud subscription

The Aspose.Words Exporter requires an active subscription at aspose.cloud so you need to click on Enable FREE and Unlimited Access button.

Enable free access privileges using aspose.cloud account.
Image 5:- Enable aspose.cloud subscription options.

Upon successful subscription, an App SID will be generated and displayed which will be helpful when contacting the technical support team for any queries in Product support forums.

Exporting the post

After the successful installation and activation, now in order to export the post in MS Word format, open All Posts section, select one or more posts which you need to export, and from Bulk Actions menu, select Export to DOCX (Aspose.Words Exporter) option. Click the Apply button and specify the location where you need to save the resultant file.

Aspose.Words Exporter option to export the post.
Image 6:- Aspose.Words Exporter option from the dropdown.

Installation through ZIP archive

Another approach to install and configure the plugin is to download the .zip archive from WordPress marketplace. Save aspose-doc-exporter.zip file on your system.

Now under WordPress Admin, click Plugins link from the left menu and press Add New button on the Plugins page.

Plugin upload option in the WordPress Admin.
Image 7:- Plugin upload option in the WordPress Admin.

Click the Upload Plugin button and specify the location where aspose-doc-exporter.zip is located. Then click the Install Now button.

Once the plugin has been installed, the next step is to Activate it. Click the Activate Plugin button.

Aspose.Words Exporter activation page
Image 8:- Aspose.Words Exporter activation page.

Now follow the same steps and open Aspose.Words Exporter Settings page. Click Enable FREE and Unlimited Access button and your App SID will be displayed. You are good to use the plugin for blog posts/pages export to MS Word formats. Please note that if you do not Activate the plugin, you may encounter issues while trying to export the pages.

The document export format which you will select under the settings page will appear as a default export format.

Document Export format settings
Image 9:- Document export format selection menu.
ODT appearing as Document export format.
Image 10:- ODT as a document export format.

Technical Support

Technical Support is one of the salient features of Aspose and in case you encounter any issue while using the products, we are always there to help you out. Similarly, if you face any issue while using the Aspose.Words Exporter plugin, please visit our Technical Support forum for quick and appropriate assistance.

Customize the Plugin

We do believe that sharing is caring. Therefore, apart from an out of the box solution, you can also custom tailor the plugin as per your needs. Aspose Doc Exporter Plugin for WordPress is open source and its source code is available on WordPress Plugin Directory. Developers are encouraged to download the source code and contribute by suggesting or adding new features or improving the existing ones so that others could also benefit from it.

Related Products

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

Object recognition through images using Java Cloud SDK

Aspose.Imaging Cloud Logo

Object detection is a computer technology related to computer vision and image processing that deals with detecting instances of semantic objects of a certain class (such as humans, buildings, or cars) in digital images and videos. In case you need to programmatically perform the object detection using Cloud API, then Aspose.Imaging Cloud APIs are a perfect choice. We also have developed language-specific SDKs to facilitate our customers. So Aspose.Imaging Cloud Java SDK is a viable choice for Java prommers.

In recent release versions, we have incorporated the object detection feature in our SDKs and with the help of this feature, users are able to detect object boundaries on an input image, as long as their labels and probabilities. The API currently supports 3 raster image formats (bmp, jpeg, and jpeg2000) and Single Shot Detector (SSD) is the detection method to recognize objects. Nevertheless, we are planning to integrate several other methods and image formats in our subsequent releases. Once the operation is performed through API, we can get a JSON object with detected object bounds, labels, and scores or a result image with object bounds and labels on it. Currently, you can identify objects such as a person, bicycle, car, cat, dog, horse, etc. You may consider visiting the following link for further details on the List of Available labels.

Detect objects and highlight on the image

There are two options to detect objects inside image i.e. perform an operation over an image in storage or perform an operation on image passed in the request body.

Process Images from Cloud Storage

The first method expects you to first upload an image to Cloud Storage then pass its name in the API URL. After the object detection, the API returns the resulting image in the response.

We also understand that Cloud storages are a quick and easy way to store and access the files. The object detection procedure can easily be performed on images stored on cloud storage and the resultant file is returned in the response header. In following cURL command, the object detection operation is performed on an image containing multiple objects wherein arguments, it’s specified to use Single Shot Detector (SSD) as detection model, keep threshold value at 50, include labels of objects in the resultant image and also specify the object detection score. Furthermore, we have specified Zebra, giraffe, horse as a Comma-separated list of allowed labels against allowedLabels argument. Nevertheless, if you want to save the resultant file on the local system, you may try using -o and specify a location for the resultant file.

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/71ElMFUKIvL.jpg/visualbounds?method=ssd&threshold=50&includeLabel=true&includeScore=true&allowedLabels=zebra, giraffe, horse" -H "accept: application/json" -H "authorization: Bearer <JWT Token>" -o c:/pdftest/mydetected.jpeg

Java Code snippet

Source file for object detection
Image 1:- Source file for the object detection
Resultant image with detected objects
Image 2:- Resultant file with recognized objects

Process Images without Storage

The Image processing API offers a second method (POST) where you may directly pass the image from local storage into the request body. It also lets you save the resulting image on the Cloud Storage by specifying the outPath parameter value. However, if you do not specify the value, the response contains a streamed image.

cURL command

curl -X POST "https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/visualbounds?method=ssd&threshold=50&includeLabel=true&includeScore=true&allowedLabels=bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe&color=yellow" -H "accept: application/json" -H "authorization: Bearer <jwt token>" -H "Content-Type: multipart/form-data" -d {"imageData":{}}

Request URL

https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/visualbounds?method=ssd&threshold=50&includeLabel=true&includeScore=true&allowedLabels=bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe&color=yellow

Java Code Snippet

Input image with horse
Image 3:- Input image with running horse
Horse object detected in image
Image 4:- Horse detected with 98% score
Posted in Aspose.Imaging Cloud Product Family | Tagged , , , , | Leave a comment

Merge PDF files using PHP Cloud SDK

Concatenate PDF files

The concatenation or merging of PDF files is among the widely used operations where multiple PDF files are combined together to create one single document. There can be several business use cases where PDF concatenation operations can be useful. Given below are some of the real-life examples where this feature becomes quite beneficial.

Geographical distant teams on single Projects – a project that has more than one person or team involved will end up with documents being submitted from every angle, especially when team members are distantly apart. For example, a proposal for new housing development will include reports from engineers, architects, environmental agencies, and builders, not to mention the original proposal documents. If these are all sent in various file formats, they can all be saved as PDF documents and then merged, so the final artifact can then be made using only one big document with all team’s input and conclusions in one place.

Document Archive System – places such as records libraries will have thousands of files saved electronically as separate documents rather than one big record. Merging these files as PDFs in groups will mean that searchers need to spend less time working through while trying to find a document.

Aspose provides a wide range of options to accomplish this requirement. If you need to fulfill the requirement using on-premise APIs, then Aspose.PDF is the right solution. Whereas if your preference is to perform the operations using a free and online cross-platform App, then try using Aspose.PDF merger APP. Nevertheless, if you prefer to programmatically accomplish the PDF concatenation functionality using Cloud API without any specific software installation, then Aspose.PDF Cloud API is a perfect choice.

cURL command for PDF merge

The cURL commands are the quickest way to accomplish the PDF merge feature through the command prompt. We need to use PostAppendDocument method to combine two PDF files. Two of the mandatory parameters include the name (the original PDF file) and, appendFile (name of PDF file to be appended). It also accepts two optional parameters startPage (start page of the file to be appended) and endPage (end page of the file to be appended). In case the startPage and endPage information are not specified, the whole file is appended. At the end of the operation, the source file is saved as a merged document.

curl -X POST "https://api.aspose.cloud/v3.0/pdf/Aspose_Words_Assembly.pdf/appendDocument?appendFile=sample.pdf&startPage=2&endPage=2" -H "accept: application/json" -H "authorization: Bearer <JWT token>"

PHP code snippet

Merge Multiple PDF files

Apart from PDF Append operation where one file is concatenated with other documents, the API also offers another method PutMergeDocuments where a list of documents is merged together. It accepts two mandatory arguments name (resultant PDF file) and mergeDocuments (JSON list of documents to be merged). The list is specified as given below

{<br>
  "List": [<br>
    "Aspose_Words_Assembly.pdf","sample.pdf","sample_assessment_test.pdf"<br>
  ]<br>
}

cURL command to Merge documents

curl -X PUT "https://api.aspose.cloud/v3.0/pdf/Resultant.pdf/merge" -H "accept: application/json" -H "authorization: Bearer <JWT Token>" -H "Content-Type: application/json" -d "{ \"List\": [ \"Aspose_Words_Assembly.pdf\",\"sample.pdf\",\"sample_assessment_test.pdf\" ]}"

PHP code snippet

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

Optical Characters Recognition over Images using Java Cloud SDK

Aspose.OCR Cloud Family

Aspose.OCR Cloud provides features to perform Optical Characters Recognition and document scanning in the Cloud. No software download or installation required. It supports reading and recognition of text from most commonly used raster image formats (BMP, JPG, GIF, PNG, TIFF). The recognition operation can be performed with fewer code lines where you need to pass a specific image to the Aspose.OCR Cloud API, and it will return a response with recognized text. The API is capable of recognizing English, French, or Spanish text and response in XML or JSON formats.

During the recognition process, you can read characters as well as the associated font information. You can perform OCR on the whole image or provide X and Y coordinates to perform it on a specific portion of the raster image. It is also capable to perform an automatic skew correction, plus an automatic and manual document layout detection operations at a high speed, as it has no hardware resources dependency.

Platform Independent

The Cloud API is completely independent of your operating system, database system, or development language and you may use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone, and time-consuming. Therefore, in order to facilitate our customers using Java language, a language-specific Aspose.OCR Cloud Java SDK is published. When using SDK, it takes care of a lot of low-level details while making requests and handling responses and enables you to focus on writing code specific to your particular project needs.

Recognize Text from URL Image

The Cloud OCR API provides an option to directly perform text recognition operation on image files available over web URL. You do not need to exclusively upload it to particular cloud storage.

Java Code snippet

Recognize Text from Image in Storage

Java Code snippet

cURL command

curl "https://api.aspose.cloud/v3.0/ocr/MyImage.png/recognize?language=1" -X GET -H  "accept: application/json" -H  "authorization: Bearer <jwt token>"

Request URL

https://api.aspose.cloud/v3.0/ocr/MyImage.png/recognize?language=1

Response Body

{
  "text": "MOORE STEPHENS",
  "code": 200
}

Useful Links

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

How to Programmatically Manipulating Notes in PowerPoint Slides

Preview of Notes in Slides

Notes are one of the integral components while you are creating a presentation. You add the speaker notes to refer to later while delivering the slide show in front of an audience. During the presentation, the speaker notes are visible on your monitor but aren’t visible to the audience. So the Notes pane is the place to store talking points that you want to mention when you give your presentation.

Aspose.Slides Cloud offers the capabilities to add, update, or remove notes from PowerPoint slides. You can perform the operation on PowerPoint slides available on the local system drive or stored in Cloud storage.

Add Notes to Slides

In order to add notes, you need to try using NotesSlide/PostAddNotesSlide. The following cURL command enables you to add Notes to PowerPoint slides.

curl -X POST "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>" -H  "Content-Type: application/json" -d "{  \"Text\": \"These are sample presenter notes added using Aspose.Slides Cloud\",}"

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide

Response Body

{<strong>
  </strong>"text":<strong> </strong>"These are sample presenter notes added using Aspose.Slides Cloud",<strong>
  </strong>"shapes":<strong> </strong>{<strong>
    </strong>"uri":<strong> </strong>{<strong>
      </strong>"href":<strong> </strong>"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide/shapes",<strong>
      </strong>"relation":<strong> </strong>"self"<strong>
    </strong>}<strong>
  </strong>},<strong>
  </strong>"selfUri":<strong> </strong>{<strong>
    </strong>"href":<strong> </strong>"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide",<strong>
    </strong>"relation":<strong> </strong>"self"<strong>
  </strong>}<strong>
</strong>}

C#.NET code snippet

Sample Slides without notes
Image 1:- PowerPoint slide without notes
PowerPoint Slide with Notes
Image 2:- PowerPoint slide with added notes

Update Slide Notes

You may also use the API to update notes inside the PowerPoint presentation. In order to fulfill this requirement, the NotesSlide/PutUpdateNotesSlide is used.

cURL command

curl -X PUT "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>" -H  "Content-Type: application/json" -d "{  \"Text\": \"Notes updated using Aspose.Slides Cloud API\",  \"Shapes\": {    \"Uri\": {      \"Href\": \"https://products.aspose.cloud/slides/curl\",       \"Title\": \"Aspose.Slides Cloud for cURL\"    }  }}"

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide

Response Body

{<strong>
  </strong>"text":<strong> </strong>"Notes updated using Aspose.Slides Cloud API",<strong>
  </strong>"shapes":<strong> </strong>{<strong>
    </strong>"uri":<strong> </strong>{<strong>
      </strong>"href":<strong> </strong>"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide/shapes",<strong>
      </strong>"relation":<strong> </strong>"self"<strong>
    </strong>}<strong>
  </strong>},<strong>
  </strong>"selfUri":<strong> </strong>{<strong>
    </strong>"href":<strong> </strong>"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide",<strong>
    </strong>"relation":<strong> </strong>"self"<strong>
  </strong>}<strong>
</strong>}

C#.NET Code snippet

PowerPoint Slide notes updated
Image 3:- Slide with updated Notes

Read Slide Notes

The PowerPoint processing Cloud API also offers the capabilities to read the notes from the existing slide. You simply need to provide the PowerPoint file name and index of a slide for which you need to read the details of the notes. The GetNotesSlide enables you to accomplish this requirement.

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>"

Response body

The response body shows the slides note parsed from a specific slide of PowerPoint presentation.

{<strong>
  </strong>"text":<strong> </strong>"This is second slide of PowerPoint presentation",<strong>
  </strong>"shapes":<strong> </strong>{<strong>
    </strong>"uri":<strong> </strong>{<strong>
      </strong>"href":<strong> </strong>"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide/shapes",<strong>
      </strong>"relation":<strong> </strong>"self"<strong>
    </strong>}<strong>
  </strong>},<strong>
  </strong>"selfUri":<strong> </strong>{<strong>
    </strong>"href":<strong> </strong>"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide",<strong>
    </strong>"relation":<strong> </strong>"self"<strong>
  </strong>}<strong>
</strong>}

In case you need to read notes slide information for a document provided in the request body, please try using PostGetNotesSlide.

Delete Slide Notes

The API offers DeleteNotesSlide method to remove/delete the notes from the PowerPoint slide.

cURL command

curl -X DELETE "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>"
Notes deleted from Slide
Image 4:- PowerPoint slide with deleted notes

Convert Notes Slide to specific Image Format

You may stumble upon a requirement to render PowerPoint slides containing notes to specific image formats. In order to fulfill this requirement, you need to use GetNotesSlideWithFormat method of API.

cURL command

curl -X GET "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide/Jpeg" -H  "accept: multipart/form-data" -H  "authorization: Bearer "

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide/Jpeg

As a result, the response body contains a converted image as shown below.

Second Slide with Notes
Image 5:- Preview of 2nd slide containing Notes
Notes Slide exported image
Image 6:- PowerPoint Note slide converted to JPEG image format
Posted in Aspose.Slides Cloud Product Family | Tagged , , , , | Leave a comment

Object detection from Image using Single Shot Detector method

With the release of Aspose.Imaging Cloud 20.5, we are pleased to announce the object detection feature which enables the users to detect object boundaries on an input image based on their labels and probabilities. The current implementation supports only Single Shot Detector method to recognize objects where the model is trained using COCO 2017 dataset. The SSD approach discretizes the output space of bounding boxes into a set of default boxes over different aspect ratios and scales per feature map location. 

Aspose.Imaging Cloud performs Object detection based on the following 4 methods:

  1. Detect objects on an existing image and return results as a JSON object
  2. Detect objects on an existing image and return results as an image
  3. Upload an image, detect objects on it, and return results as a JSON object
  4. Upload an image, detect objects on it, and return results as an image

1. Detects objects’ bounds

This approach detects objects on an existing image and returns the result as a JSON object.

Request query parameters:

  • name (string, required): image name. Currently, 3 image formats are supported: BMP, JPEG, and JPEG 2000
  • method (string, optional, default “ssd”): object detection method
  • threshold (number, optional, [0 – 100], default 50): minimum detected objects probability in percentage that will be included in the result
  • includeLabel (boolean, optional, default false): whether to include detected object labels in the response
  • includeScore (boolean, optional, default false): whether to include detected object probabilities in the response
  • folder (string, optional): folder
  • storage (string, optional): storage

Using cURL command

Aspose.Imaging Cloud can also be accessed using cURL command to perform the required operation. The following command shows how a cURL command can be used to detect and object and get a response as JSON object.

The following sample image is being used to detect the object.

Sample cat image
Image 1:- Source image
curl "https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/cat-pet-animal-domestic-104827.jpeg/bounds?method=ssd&threshold=50&includeLabel=true&includeScore=true" \
-X GET \
-H "accept: application/json" \
-H "authorization: Bearer <jwt token>"

Request URL

https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/cat-pet-animal-domestic-104827.jpeg/bounds?method=ssd&threshold=50&includeLabel=true&includeScore=true

Response Body

{
  "detectedObjects": [
    {
      "label": "cat",
      "score": 0.9450986,
      "bounds": {
        "x": 43,
        "y": 4,
        "width": 401,
        "height": 323
      }
    }
  ]
}

Response Schema

{
    "type": "object",
    "properties": {
        "detectedObjects": {
            "type": "array",
            "items": [
                {
                    "type": "object",
                    "properties": {
                        "score": {
                            "type": "number"
                        },
                        "label": {
                            "type": "string"
                        },
                        "bounds": {
                            "type": "object",
                            "properties": {
                                "x": {
                                    "type": "number"
                                },
                                "y": {
                                    "type": "number"
                                },
                                "width": {
                                    "type": "number"
                                },
                                "height": {
                                    "type": "number"
                                }
                            },
                            "required": [
                                "x",
                                "y",
                                "width",
                                "height"
                            ]
                        }
                    },
                    "required": [
                        "score",
                        "label",
                        "bounds"
                    ]
                }
            ]
        }
    },
    "required": [
        "detectedObjects"
    ]
}

C# .NET code snippet

2. Detect Objects bounds and return an image

Upload an image, detect objects, draw bounds around them and, return results as an image.

Request query parameters:

  • name (string, required): image name. Currently, 3 image formats are supported: bmp, jpeg, and jpeg2000
  • method (string, optional, [“ssd”], default “ssd”): object detection method
  • threshold (number, optional, [0 – 100], default 50): minimum objects’ probability in percents that will be included in the result
  • includeLabel (boolean, optional, default false): whether to include detected object labels in the response
  • includeScore (boolean, optional, default false): whether to include detected object probabilities in the response
  • color (string, optional): the custom color of the detected object bounds and info. If equals to null, objects of different labels have bounds of different colors
  • folder (string, optional): folder
  • storage (string, optional): storage

Using cURL command to determine objects

curl -X GET "https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/dog-and-cat-cover.jpg/visualbounds?method=ssd&threshold=50&includeLabel=false&includeScore=false&color=Red" -H "accept: application/json" -H "authorization: Bearer <jwt token>"

Request URL

https://api.aspose.cloud/v3.0/imaging/ai/objectdetection/dog-and-cat-cover.jpg/visualbounds?method=ssd&threshold=50&includeLabel=false&includeScore=false&color=Red

In the above request, notice Red is specified as a highlight color.

C#.NET code snippet

The following code snippet shows steps to load an image file containing two objects (Dog and Cat). Both of these objects are identified using Aspose.Imaging Cloud API and resultant image with highlighted objects are saved on the system drive.

Cat and Dog cover image
Image 2:- Input image with Cat and Dog
Processed image highlighting identified objects
Image 3:- Processed image highlighting identified objects

For more information on Image search, please visit Reverse Image Search.

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