Improved HTML Formatting in Aspose.Words for Reporting Services 19.8

Share on FacebookTweet about this on TwitterShare on LinkedIn
Aspose.Words for SSRS icon

Hi guys! We are pleased to announce new release of Aspose.Words for Reporting Services i.e. 19.8. We have upgraded it to Aspose.Words for .NET 19.8 and improved HTML formatting for output documents. Please check the release notes for more detail.

You can download the latest release of Aspose.Words for Reporting Services 19.8 from the following link:

Download Aspose.Words for Reporting Services 19.8

When time allows you can check documentation of Aspose.Words for Reporting Services and talk about this release and other related issues in our forum.



The post Improved HTML Formatting in Aspose.Words for Reporting Services 19.8 appeared first on File Format APIs Blog – aspose.com.

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

Add Watermark to a Batch of Documents and Images in .NET and Java

Share on FacebookTweet about this on TwitterShare on LinkedIn

Watermarking is a popular technique to indicate that the content or data inside a document is copyrighted. On the other hand, it is also used to place the company’s logo or some kind of label in the documents before they are shared within or outside the company. However, it is quite hard to apply the watermark to a bunch of documents one by one. It becomes harder if you have documents of various formats such as PDF, DOCX, PPTX, XLSX, EML, JPG, PNG, etc. So in order to make this process easier, we need some automation.

In this article, I will show you how you can apply a watermark to a batch of documents and images in one go using GroupDocs.Watermark API. So you don’t need to add watermark to each document manually. Also, you don’t need to worry about if you have or not the software or application that supports adding watermark to the document of a particular format.

Before we proceed, let me tell you the reasons why GroupDocs.Watermark is a suitable API for watermarking. This is because it supports:

  • a wide range of file formats,
  • adding text/image watermark,
  • adding watermark to images inside a document,
  • adding watermark to all or selected pages of the document,
  • customizing the size, position, and appearance of the watermark, and
  • much more.

Now, let’s have a look at how to add watermark to the documents as well as images of various formats at once. For this, we’ll follow the below steps:

  • Place the documents in a folder.
  • Load each document from the folder using GroupDocs.Watermark.
  • Create and initialize the watermark.
  • Set watermark properties such as position, size, opacity, font, etc.
  • Add watermark to the document.
  • Save the document to the destination folder.

This is how we would transform these steps into the code.

C#

Java

And that’s it! The following is the screenshot of a PDF document that we have before and after applying the watermark using the above-mentioned code.

Download the complete ready-to-run source code from GitHub. Contact us on our forum for any questions or queries.

Cheers!

The post Add Watermark to a Batch of Documents and Images in .NET and Java appeared first on Document Manipulation APIs Blog – groupdocs.com.

Posted in Conholdate.Total Product Family, GroupDocs.Watermark Product Family, GroupDocs.Watermark for .NET, GroupDocs.Watermark for Java, Watermarking API, dotnet, java | Tagged , , , , , | Leave a comment

Compare Two Images in C# .NET and Java

Share on FacebookTweet about this on TwitterShare on LinkedIn

GroupDocs.Comparison is a document comparison API that correlates content and style, it detects number of inserted/deleted or style changed items and generates a summary.


How GroupDocs.Comparison works for Image Comparison?
The comparison starts with the upper left corner and compares the entire image pixel by pixel. If the pixels are the same, it moves on to the next one and so on until it finds a difference. The changed pixels are given an ID. It is defined as dabbed, deleted or changed. They are highlighted in a specific color (blue, red or green according to the standard settings).

Source Image

Target Image is same as source image except it has some extra objects on the table and some new code lines in the text editor.

Comparison Result

API successfully detects the changes and highlights them in the output/resultant image. In this case it highlighted the inserted items (e.g glasses, mug and some changes in the code).
This is how you do image comparison using GroupDocs.Comparison for .NET

And using GroupDocs.Comparison for Java

Get access to the API resources. Post your concerns on forum.

The post Compare Two Images in C# .NET and Java appeared first on Document Manipulation APIs Blog – groupdocs.com.

Posted in Conholdate.Total Product Family, C#, GroupDocs.Comparison Product Family, Image Comparison, Pixel Comparison, java | Tagged , , , , | Leave a comment

Detect Hyperlink Type with Aspose.Cells for Java 19.8

Share on FacebookTweet about this on TwitterShare on LinkedIn

You get a list of hyperlinks from an Excel file and now thinking about how to categorise them into different types in order to select the appropriate method for processing each of them. Don’t panic! Aspose.Cells for Java 19.8 is released containing the solution for this problem. This is not the only feature introduced in this release but there are many more to explore like extracting embedded MOL file, getting total page count before converting to PDF/Image, inserting SVG file into a worksheet and supporting Java 12 are just a few to list here. You may have a look at the release notes to get the complete list of features and bug fixes which are part of this new release. Let us see in detail what are these features and how to use them.

Detect Hyperlink Type

There can be different types of hyperlinks which can be used in an Excel file like external, cell reference, file path and email. Our new release has introduced an enumerator TargetModeType which represents the type of hyperlink. A new property LinkType is introduced in Hyperlink class which return the hyperlink type using above mentioned enumerator. Following are the enumerator members:

Here is an example which can be used to exercise this new feature. Also for more details visit here.

Program output vs template Excel file

Get total page count before PDF/image creation

Well, the title is explaining this new feature. When a file has too many pages, the process of converting to pdf/image may use too much memory and CPU, and OOM exception may be thrown. Getting total page count before converting can indicate this risk, and do some actions(e.g. skip this file) or print the selected pages to avoid the undesired results. For example one of my sample Excel file (870 KB) was showing about 38 million pages. Just imagine, what will happen if you come across a conversion containing such a huge number of pages!!! Following is an example to show the usage of new classes SheetPrintingPreview and WorkbookPrintingPreview. Both of these classes contain a property EvaluatedPageCount which returns the page count of the printout or PDF file. Here is an article which provides more details in this regard.

Extracting Embedded MOL File

As you know that molecular data file created in the MDL Molfile format, a chemical file format; contains plain text information and stores information about atoms and bonds; often used as a standard exchange format for molecular information. This type of file can be embedded in the Excel file. In this latest release, support is provided to extract object of such an uncommon type i.e. MOL. The following code snippet demonstrates extracting embedded MOL file and saving it to disk. For more details and sample file please visit here.

Other features and enhancements

  • Support for Java 12 is available now
  • Enhancements to avoid high CPU and memory usage during Excel to PDF conversion
  • Copying waterfall chart style while copying the workbook
  • Proper refreshing of PivotTable and PivotCharts
  • Avoid differences during conversion to HTML
  • Remove unwanted extended borderline in Excel to PDF rendering
  • Calculate appropriate image position while rendering to PDF
  • Ensure copying table properties while using copyColumns() function
  • Keep the image transparent instead of opaque during picture copy

The wait is over and you may get ready to test the new features. Following resources may help you to achieve your targets using Aspose.Cells.

The post Detect Hyperlink Type with Aspose.Cells for Java 19.8 appeared first on File Format APIs Blog – aspose.com.

Posted in Conholdate.Total Product Family, Aspose.Cells Product Family | Tagged | Leave a comment