Implement Page Rotation when Converting to PDF

Its time to augment your document conversion experience. You will be pleased to hear the new features, improvements and bug fixes that we’r going to elaborate in this blog post. Did you ever think of converting and rotating a document at the same time? We make your wish come true with this month’s release of GroupDocs.Conversion for Java 19.4.
You can now set page rotation angle when converting to a PDF or Image format. And it only takes a single line of code.

We implemented following new properties:

  • setRotate(PdfSaveOptions.Rotation.On90)
  • setRotateAngle(45)

Rotation Feature when Converting to Image Format

We enriched ImageSaveOptions class with a new property that takes rotation angle value as parameter.

Rotation when Converting to PDF

PdfSaveOptions class covers a new property that takes PdfSaveOptions.Rotation enumeration.

More File Formats and Font Substitution Options

Some new document formats are also introduced. Like you can do conversion from EPS, TSV, PCL. API also permits to set default font and font substitution option when converting from .one file.

Measure Conversion Time

Can we measure or track time for a document conversion? You might be thinking of such a feature. Because its appealing. Therefore, we’ve introduced this in current release. Let’s have a look at its implementation.

Include Hidden Slides in Converted Document

Yes, this is absolutely right. We’ve implemented a property setShowHiddenSlides using that you can decide either to convert or skip hidden slides when converting a Slide document.

Improvements

We always introduce improvements for better usability. This release covers following improvements.

  • HideWordTrackedChanges option to WordsLoadOptions class
  • HidePdfAnnotations option to PdfLoadOptions class
  • HideComments option to CellsLoadOptions, SlidesLoadOptions and WordsLoadOptions class

Bug Fixes

We listen your feedback carefully and make sure to fix the disruptions that you face. Spreadsheets are one of the best way to represent data. Most of the time you add graphs in it. Previously, API was not converting spreadsheets with graphs properly. It was not showing complete data. However, this issue is now fixed.

Width and Height not Working

Furthermore, there was no impact of width and height in the output that you set in ImageSaveOptions. This issue is also now resolved.

Will we get PasswordProtectedException?

Yes, we fixed obfuscation config for com.groupdocs.conversion.exceptions package. You will now get proper exception on processing a password protected document without applying password. Eventually, this exception could be then handled.

To learn more about API integration and usage check out the docs here. To see the implementation and functionalities, check out the GitHub repository.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Conversion Product Family | Tagged | Leave a comment

Add Ellipse Annotation in Slides

We try our best to provide minimal yet appropriate solutions to our customers. Hence, in this month’s release of GroupDocs.Annotation for .NET 19.3 you will observe some new “easy-to-implement” features. Lets start with ellipse annotation. You might be looking for it, we’ve now added its support for different document formats.

Ellipse Annotation

GroupDocs.Annotation for .NET 19.3 provides GetThumbnail method for PageImage class, that helps you in getting thumbnails of PDF document pages.

Get Thumbnails

You’ll be glad to hear that multipage TIFF file can be processed by API. Have a glance at release notes.

Bug Fixes

Now coming to your issues, we’ll discuss some major fixes introduced in this release. There was issue in applying PenWidht and PenColor properties but now this is fixed.

AnnotationImageHandler.GetDocumentInfo exception while evaluating API in trial mode is now resolved. API now closes stream when you import annotations for Images. Lastly, issue in setting comments to shapes in Slides is fixed.

Learn more about API integration and usage check out the docs here.



Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Annotation Product Family | Tagged | Leave a comment

Set Flip Mode when Converting to a Image Format

With our latest release 19.3, some new properties are introduced in ImageSaveOptions class. When converting to a Image format you can now always set brightness and contrast. API permits you to do mirror-reversal across a horizontal/vertical axis using FlipMode property. Based on your feedback, we resolved some previously logged issues and improved document conversion experience. Such as, image quality is improved when converting to a WebP format. Furthermore, JpegQuality issue is now resolved for PDF to JPEG conversion.

New Properties in ImageSaveOptions

FlipMode offers horizontal, vertical, horizontal and vertical at the same time or no Flip at all. Control gamma correction, brightness and contrast when converting to a image format.

Fix – ImageSaveOptions.JpegQuality Issue

You can select desired image quality when converting to JPEG format. Quality scale must be between 0 and 100. Previously, despite of setting JpegQuality to any value (0-100), API was not reflecting any change in the output. This issue is now fixed.

GroupDocs.Conversion for .NET 19.3 is now available to download. Let us know what you think by sending feedback!

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Conversion Product Family | Tagged | Leave a comment

Detect Print Restriction in PDF Documents using GroupDocs.Viewer for Java 19.3

PDF is a widely used document format that also supports interactive elements including annotations, forms, 3D objects, layers, etc. Along with these elements, PDF format also supports setting restrictions such as print restriction, modification restriction, restrictions on data extraction and so on. Such features give the user more control over the document and therefore, the PDF has become a popular document format.

Since we support the rendering of PDF documents, therefore, we always keep looking to introduce features that may give you more information about the documents. Hence, we provided the detection of print restriction in the PDF documents in GroupDocs.Viewer for Java 19.3.

Well, we have made it quite easy for you to detect print restrictions in a PDF document. The following code snippet shows how to get this information using getDocumentInfo() method:

Not only this, but we have also extended the list of our supported document formats with the addition of the following formats in v19.3:

  • TSV (Tab-separated values)
  • PCL (Printer command language)

Well, these could be the interesting additions in the API for you. If yes, let’s not wait and download the latest version of GroupDocs.Viewer for Java. To evaluate the API features, you may clone and explore the examples project from GitHub repository. In case you want to share your reviews, concerns or feedback, we welcome you on our forum.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Viewer Product Family | Tagged , , , , | Leave a comment

GroupDocs.Viewer for .NET 19.3 is Released!

Document Viewer API

We are happy to announce the release of version 19.3 of GroupDocs.Viewer for .NET. In this release, we have added several new features that target the PDF documents, archives and the source code files of Visual Basic and C#. Along with 2 bug fixes, we have made a couple of improvements for rendering of ZIP archives and vCard documents. For detailed information about the latest release, please have a look at the release notes.

What’s New in this Release?

Setting Passwords and Permissions for PDF Documents

PDF format allows setting the Owner password and the User password to restrict access to the document. The Owner password is used to change the permissions of the document whereas the User password is required when opening a PDF document. Along with the passwords, PDF format supports setting permissions such as allow or deny printing, modification and data extraction. In this release, we have added the support of setting the Owner password, User password, and the file permissions while rendering the document into PDF.

The following is a simple way to create and use the PDF file’s security options using GroupDocs.Viewer for .NET:

Working with Folders within the Archives

In the previous version, we introduced the support of rendering archive documents. The rendering of archive documents shows a list of the items (files and folders) located in the root of the archive. In the latest release, we have made it possible to get the list of the folders within the archive and render the content from those folders. The following sections demonstrate how to work with the folders located in an archive document.

Getting List of Folders within an Archive

The following code snippet shows how to get the list of folders within an archive:

Getting List of Folders in a Specific Folder

There might be the case when you have sub-folders within a folder located in the root of the archive. In that case, to get the list of sub-folders you can simply specify the folder name in ArchiveOptions.FolderName property of HtmlOptions/ImageOptions class.

Rendering Specified Folder within Archive

To render the content of a folder, simply specify the folder name in
ArchiveOptions.FolderName property and call GetPages function as shown in the following code snippet.

Support of Visual Basic (.vb) and C# (.cs) Files

Using the latest release, you will be able to view the source code files of Visual Basic and C#. The rendering of these source code files is available in both, the HTML-based and image-based rendering.

Haven’t Used GroupDocs.Viewer Before?

In case you haven’t yet tried our API but are interested in using it, the following resources will be helpful for you to get started.

Stay Tuned for Updates!

If you don’t want to miss out any news or announcements on GroupDocs products, stay tuned to our blog and keep visiting frequently.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Viewer Product Family | Tagged , , , , , , | Leave a comment

Save Document Comparison Results in Image Format

Yes, you heard it right. We’ve implemented ability to save document comparison results in image format as well. In this blog post we’ll review the new feature and bug fixes introduced in monthly release of GroupDocs.Comparison for .NET 19.3.1.

Let’s talk about image representation of the document pages. The moment you save comparison results in your directory, you have a control to save results in image format as well using ICompareResult.SaveImages Method. Quite simple, isn’t it?

The good thing is that you just have to pass the output folder path and API will take care of conversion mechanism itself.

Is there a way to get number of converted images? Can images be saved in separate directory?

The answer is yes, you can retrieve a list of converted pages and also save them in some separate directory. Let’s see full implementation of this feature.

Bug Fixes

In addition to the new features, we also emphasis to improve/resolve consistency, usability and issues. We will highlight the major bug fixes below.

SuperScript and SubScript

You may be familiar with these characters. They are slightly below or above the normal line and are usually smaller than the rest of the text.

There was issue in SuperScript and SubScript elements in Word document. API was not processing such characters. But this issue is now resolved.

StyleSettings is not working for HTML

Let us first give you an overview of StyleSettings. Using this you can set following properties:

  • BeginSeparatorString
  • Bold
  • EndSeparatorString
  • Fontcolor
  • HighlightColor
  • Italic
  • StrikeThrough
  • Underline

Previously, there was no impact of such properties in the output HTML.
Can we now strikeout or change color of deleted component?
Of course, we are pleased to inform you that you can now successfully set such properties during HTML comparison and see their impact in the resultant file.

EndNote Comparison

When we want to add reference information about a quoted material, we use Endnote. Previously, API was not considering Endnotes and there was no Endnote comparison at all. However, its fixed now. In the image below, we have source, target and resultant files. And if you see resultant file, it clearly shows a Endnote comparison.

Further Reading

Get started with GroupDocs.Comparison for .NET Developer Guide.
Go through the release notes in order to get more insights. Articulate your concerns or feedback on Forum.

We’d now recommend you to integrate latest release of the API in your project and enhance your document comparison experience.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Comparison Product Family | Tagged | Leave a comment

Embed Inline Syntax Error Messages in Generated Reports using GroupDocs.Assembly for Java 19.3

In the latest version of GroupDocs.Assembly for Java we have introduced an exciting feature of Inline Syntax Error Messages. Are you thinking about what does make this feature so exciting? Well, I am going to answer it in this post.

First, let’s have a brief overview of how does GroupDocs.Assembly generate the reports. GroupDocs.Assembly uses pre-defined document templates that contain the LINQ statements. These templates are evaluated, processed and then populated by API’s engine during the run-time. An exception is thrown in case something is wrong with the syntax of the LINQ statements. The exception contains the reason and the tag/expression where the error has happened.

This is not a big deal to find and locate the incorrect syntax in a small template with a few LINQ statements. But, how would you find the exact place of error when you are dealing with a complex template containing a number of tags and expressions?

Here comes the usefulness of Inline Syntax Error Messages. With this feature, the API embeds the error message within the generated report at the same place where the error has occurred, as shown in the following screenshot:

Now you may wonder how to achieve this. Well, it’s just as easy as a pie and you only need to set the options using DocumentAssembler.setOptions(
DocumentAssemblyOptions.InlineErrorMessages) as shown in the following code snippet:.

For working examples, you may consult our documentation article on how to use inline error messages.

Alright! Now you would have got the real picture of how this new feature may help you in your report generation process. So, let’s try out the API features by downloading the latest version as well as cloning and exploring the examples project from GitHub repository.

Do you have any questions or queries? We welcome you to have a conversation with us on our forum.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Assembly Product Family | Tagged , , , , , , | Leave a comment

Support for Diagrams in GroupDocs.Merger

GroupDocs Editor for .NET

GroupDocs.Merger now supports diagram formats such as VSDFX, VSDM, VSSX, VSSM and VTX . It allows you to swap, rotate or trim pages in diagrams. Apart for that, you can also set or remove password protection of diagrams. This API comes in both Java and .NET platforms and could be integrated in any your .NET or Java application without any dependency.

Features for Diagrams Format

Swap Pages:

This feature allows you to exchange the position of two pages in the document. Following are the lines of code which can be used to swap pages in the diagram:

Above lines of code are used to swap pages of following VSDX file:

Finally, after performing swap operation on VSDX, the output looks as follows:

Move Page:

This feature allows you to change position of the pages within the document. Following are the lines of code which can be used to change order of the pages in the diagram:

Remove Page:

Using this feature you can remove single or collection of pages from the document. Following example demonstrates how to remove pages in the diagram:

Split Document:

You can split document into several resulting documents using this feature. Following is the example to split diagram:

Trim Document:

This feature allows you to cut the specific pages of the document. Following are the lines of code which can be used to trim the diagram:

Change Pages Orientation:

This feature allows you to change pages orientation. Following code sample shows how to change orientation of the pages in the diagram:

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Merger Product Family | Tagged , | Leave a comment