Set PageOrientation using GroupDocs.Conversion for Java 18.6

GroupDocs.Conversion

This month’s release of GroupDocs.Conversion for Java 18.6 comes with some bug fixes, improvements and new features. Issue such as printing complete spreadsheet instead of just printable area is fixed. A new property PageOrientation is introduced in DocumentInfo class. Please take a look over the release notes to get an idea about the new features, improvements and bug fixes.

Features Introduced

  • Implement conversion from DWF
  • Convert specific range when converting cells document
  • Conversion from PostScript
  • specific options for converting CSV documents
  • Setting default zoom when converting to Cells
  • Default zoom when converting to Words
  • Set default zoom when converting to Slides
  • Configurable option for setting a watermark as background

Improvements

  • Caching with provided LocalCacheDataHandler
  • Implement configuration option for selecting if blank rows and columns should be skipped when converting Cells document
  • Set zoom when converting to Pdf document
  • Update API for getting document info to detect page orientation for the supported formats
  • Set default font to replace all missing fonts when converting Words document
  • Default font to replace all missing fonts when converting Cells document
  • Conversion improvement when converting Psd and Odg to Pdf

Issues Resolved

  • Unable to set watermark text
  • Converting specific docx document fails with Value cannot be null, parameter trueTypeFont
  • Fix failing conversion from Odg
  • Failing conversion from Ifc
  • Just print area is getting converted, not the entire spreadsheet
  • XPS to PDF conversion failed
  • LoadOptions doesn’t possess setDefaultFont method
  • Problem in converting large excel files. Is there a way to paginate the excel sheet?

Available Channels and Resources

Here are a few channels and resources for you to download, learn, try and get technical support on GroupDocs.Conversion:

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Conversion Product Family | Tagged | Leave a comment

Cleanup Temporary Files using GroupDocs.Viewer for Java 17.5.1 Hotfix

Logo ImageWe are pleased to announce the release of GroupDocs.Viewer for Java 17.5.1. This is a hotfix release that contains 2 bug fixes and a new feature. The latest version allows you to manually cleanup the temporary files that are created during document rendering. Please continue to read the details about the new feature and the bug fixes.

Cleanup Temporary Files

While rendering documents, GroupDocs.Viewer creates temporary files which were removed automatically after each operation. As removing temporary files is a time-consuming operation, therefore, a new method clearTempFiles is introduced. This method is thread-safe and can be called any time so it won’t affect documents’ rendering. GroupDocs.Viewer uses default system’s temporary folder to store temp files and it can be changed by setting temporary directory in process properties e.g. System.setProperty(“java.io.tmpdir”, “c:/my_temp_files/”). The following code sample shows how to cleanup temporary files.

// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.setStoragePath(STORAGE_PATH);
   
// Create image or html handler
ViewerImageHandler handler = new ViewerImageHandler(config);
  
// Cleanup temporary files
handler.clearTempFiles();

Bug Fixes

Following bugs have been fixed in this hotfix release:

  • NullPointerException when rendering PDF as HTML
  • Performance degradation during consequent iterations through the same documents

Related Links and Resources

Following resources will help you to download, learn, try and get technical support.

Feedback

As always, you are welcome to share your feedback to improve this product. We will be happy to know your thoughts. Just create a forum thread and our dedicated support team will be there to respond.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Viewer Product Family | Tagged , , , , , | Leave a comment

Break Indexing Operation Manually using GroupDocs.Search for .NET 18.6

GroupDocs.Search for .NETGroupDocs team is pleased to announce the monthly release of GroupDocs.Search for .NET 18.6. Using the latest version, you can now break indexing operation manually. Furthermore, obsolete Relevance property is removed from the DetailResultInfo method and ImportDictionary and ExportDictonary methods are added to index dictionaries. We would recommend you to install and use the latest version of API.

Break Indexing Operation Manually

Using GroupDocs.Search API you can break indexing operation manually. The break is not instantaneous and in cases of indexing large documents, the breaking can take about a second. Following is the code snippet to break indexing operation manually:

string folderForIndex = "c:\\MyIndex\\";
string folderWithDocuments = "c:\\MyDocuments\\";

//Creating index
Index index = new Index(folderForIndex);

//Subscribing on Operation Finished event
index.OperationFinished += index_OperationFinished;

//Indexing selected folder asynchronously
index.AddToIndexAsync(folderWithDocuments);

//Breaking indexing
index.Break();

Added ImportDictionary and ExportDictionary methods to index dictionaries

In the latest version of API, Import and Export methods’ names are updated to ImportDictonaires and ExportDictionaries.

Removed obsolete Relevance property from DetailedResultInfo

Obsolete property GroupDocs.Search.DetailedResultInfo.Relevance is removed from DetailResultInfo in version 18.6 of GroupDocs.Search for .NET API.

Available Channels and Resources

Here are a few channels and resources for you to download, try, learn and get technical support on GroupDocs.Search:

Feedback

If you have any suggestions, questions, or queries related to the .NET Search API, we will be happy to hear from you. Just create a forum thread to share your thoughts.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Search Product Family | Tagged , , | Leave a comment

GroupDocs Newsletter July 2018 – Professional Document Manipulation APIs for .NET and Java

LinkedIn Google+ Twitter Facebook
Share this issue:

Monthly Newsletter

July 2018

Merge Word, PDF, Excel & PowerPoint Documents in .NET
Join Multiple Documents of Same File Format into One
Securely Sign Official Documents with Stamp Signatures

GroupDocs.Merger for .NET – A native document manipulation API allowing to split, append, join, remove, reorder and combine pages of popular business documents formats into one. You can also manage document protection by setting up or removing passwords.

Explore NOWDownload FREE 30-Days Trial

Company News

Product News

Product News

Product News

Product News

Product News

From the Library

From the Library

From the Library

Feedback

Feedback

Feedback
GroupDocs for .NETGroupDocs for JavaGroupDocs for Cloud APIs
Product Releases and Updates

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in Customer Newsletters | Leave a comment

Lock Watermark in Word Documents using GroupDocs.Watermark for .NET 18.6

GroupDocs Watermark for .NETGroupDocs.Watermark for .NET 18.6 has been released and it is available for download. The latest version has come with the feature of locking watermarks in Word documents. Furthermore, it also provides the ability to protect/unprotect the Word documents. Please continue to read more about the features added in version 18.6.

Locking Watermark in Word Documents

There might be the case when you need to lock the watermarks in a Word document to restrict the editing. To deal with such cases, GroupDocs.Watermark provides 5 variants of locking Word document after adding watermark.

  • AllowOnlyRevisions: user can only add revision marks to the document.
  • AllowOnlyComments: user can only modify comments in the document.
  • AllowOnlyFormFields: the document is split into one-page sections and locked section with watermark is added between each two adjacent document sections.
  • ReadOnly: the entire document is read-only.
  • ReadOnlyWithEditableContent: the document is read-only, but all the content except the watermark is marked as editable.

The following code sample shows how to lock watermark in a Word document.

string inputFileName = @"d:\input.docx";
string outputFileName = @"d:\output.docx";
 
using (WordsDocument doc = Document.Load(inputFileName))
{
    TextWatermark watermark = new TextWatermark("Watermark text", new Font("Arial", 19));
    watermark.ForegroundColor = Color.Red;
 
    WordsShapeSettings settings = new WordsShapeSettings();
    settings.IsLocked = true;
    settings.LockType = WordsLockType.AllowOnlyFormFields;
    settings.Password = "7654321";
 
    doc.AddWatermark(watermark, settings);
 
    doc.Save(outputFileName);
}

For more details on this feature, please visit this documentation article.

Protecting/Unprotecting Word Documents

GroupDocs.Watermark provides a simplified way of protecting the Word documents with the password. You can protect as well as unprotect the Word documents. The following protection types are supported:

  • AllowOnlyRevisions: user can only add revision marks to the document.
  • AllowOnlyComments: user can only modify comments in the document.
  • AllowOnlyFormFields: user can only enter data in the form fields in the document.
  • ReadOnly: no changes are allowed to the document.

Protecting Document

The following code sample shows how to protect a Word Document.

using (WordsDocument doc = Document.Load(@"D:\test.doc"))
{
    doc.Protect(WordsProtectionType.ReadOnly, "7654321");
    doc.Save();
}

Unprotecting Document

The following code sample shows how to unprotect a Word Document.

using (WordsDocument doc = Document.Load(@"D:\test.doc"))
{
    doc.Unprotect();
    doc.Save();
}

For more details on this feature, please visit this documentation article.

Available Channels and Resources

Here are a few channels and resources for you to download, learn, try and get technical support on GroupDocs.Watermark:

Feedback

As always, we would love to hear your queries and suggestions at our forum.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Watermark Product Family | Tagged , , , , , , , | Leave a comment

Protect/Unprotect Word Documents using GroupDocs.Watermark for Java 18.6

GroupDocs Watermark for .NETAnother monthly release of GroupDocs.Watermark for Java is onboard. GroupDocs.Watermark for Java 18.6 supports locking of watermarks in Word documents. Furthermore, it also provides the ability to protect/unprotect the Word documents. Following are the details about the new features added in version 18.6.

Locking Watermark in Word Documents

There might be the case when you need to lock the watermarks in a Word document to restrict the editing. To deal with such cases, GroupDocs.Watermark provides 5 variants of locking Word document after adding watermark.

  • AllowOnlyRevisions: user can only add revision marks to the document.
  • AllowOnlyComments: user can only modify comments in the document.
  • AllowOnlyFormFields: the document is split into one-page sections and locked section with watermark is added between each two adjacent document sections.
  • ReadOnly: the entire document is read-only.
  • ReadOnlyWithEditableContent: the document is read-only, but all the content except the watermark is marked as editable.

The following code sample shows how to lock watermark in a Word document.

String inputFileName = "d:\\input.docx";
String outputFileName = "d:\\output.docx";
 
WordsDocument doc = Document.load(WordsDocument.class, inputFileName);
 
TextWatermark watermark = new TextWatermark("Watermark text", new Font("Arial", 19));
watermark.setForegroundColor(Color.getRed());
 
WordsShapeSettings settings = new WordsShapeSettings();
settings.setLocked(true);
settings.setLockType(WordsLockType.AllowOnlyFormFields);
settings.setPassword("7654321");
 
doc.addWatermark(watermark, settings);
 
doc.save(outputFileName);
doc.close();

For more details on this feature, please visit this documentation article.

Protecting/Unprotecting Word Documents

GroupDocs.Watermark provides a simplified way of protecting the Word documents with the password. You can protect as well as unprotect the Word documents. The following protection types are supported:

  • AllowOnlyRevisions: user can only add revision marks to the document.
  • AllowOnlyComments: user can only modify comments in the document.
  • AllowOnlyFormFields: user can only enter data in the form fields in the document.
  • ReadOnly: no changes are allowed to the document.

Protecting Document

The following code sample shows how to protect a Word Document.

WordsDocument doc = Document.load(WordsDocument.class, "D:\\test.doc");
doc.protect(WordsProtectionType.ReadOnly, "7654321");
doc.save("D:\\test.doc");
doc.close();

Unprotecting Document

The following code sample shows how to unprotect a Word Document.

WordsDocument doc = Document.load(WordsDocument.class, "D:\\test.doc");
doc.unprotect();
doc.save("D:\\test.doc");
doc.close();

For more details on this feature, please visit this documentation article.

Available Channels and Resources

Feedback

As always, if you have any questions or suggestions, feel free to write on our forum.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Watermark Product Family | Tagged , , , , , | Leave a comment

Set Signature Position in Cells using GroupDocs.Signature for .NET 18.6

GroupDocs.Signature

Like every month, the team GroupDocs has released another version 18.6 of the API and implements a number of new features and improvements in this monthly release. This latest version includes features like verification of encrypted QR-Code Text and alignment of text in Text Signatures. Furthermore, now users of this API can also verify QR-Code and Barcode Signatures without specifying the EncodeType. We therefore, would like our customers to download the latest version and evaluate the exciting features to enhance document e-signing experience.

Features

Verify Encrypted QR-Code Text

Now users of this API can verify encrypted QR-Code text in documents using property DataEncryption
Following example demonstrates how to verify text of encrypted QR-Code Signature in PDF:

// setup key and pasphrase
string key = "1234567890";
string salt = "1234567890";
// create data encryption
IDataEncryption encrypter = new SymmetricEncryption(SymmetricAlgorithmType.Rijndael, key, salt);
// setup verification options
PDFVerifyQRCodeOptions verifyOptions = new PDFVerifyQRCodeOptions(@"This is private text to be secured.");
// specify text encryption
signOptions.DataEncryption = encrypter;
//verify document
VerificationResult result = handler.Verify("Sample.pdf", verifyOptions);

Align Text in Text Signature

Users can align text in Text Signature for Words, Slides, Images and PDF.
Following code sample shows how to align text in Text Signature for Words:

// setup text signature options
WordsSignTextOptions signOptions = new WordsSignTextOptions("John Smith");
signOptions.Width = 100;
signOptions.Height = 100;
// type of implementation
signOptions.SignatureImplementation = WordsTextSignatureImplementation.TextAsImage;
// set text alignment inside signature (This feature support is starting from version 18.06)
signOptions.TextHorizontalAlignment = TextHorizontalAlignment.Center;
signOptions.TextVerticalAlignment = TextVerticalAlignment.Center;

Set Signature Position in Cells with Pixels

This version of the API allow users to set position of signatures in Cells with pixels.
Following code shows how to set position of Text Signature in Cells file formats:

// Specify Signature Options 
CellsSignTextOptions signOptions = new CellsSignTextOptions("John Smith");
signOptions.Width = 100;
signOptions.Height = 100;
signOptions.Top = 15;
signOptions.Left = 22;

Improvements

  • Verify QR-Code and Barcode Signatures without specifying EncodeType
  • Global Exception handler to catch all un-handled exceptions
  • Setting color of QR-code and Barcode text with fore color value

Bug Fixes

  • Fix exception on QR-Code Signature Verification when options has no Encode Type specified
  • Wrong text alignment in Text Signature shape for Words
  • QR-Code rendering for various settings

Available Channels and Resources

Here are a few channels and resources for you to learn, try and get technical support on GroupDocs.Signature API for .NET:

Feedback

As always, you are welcome to share your feedback to improve this product. We will be happy to know your thoughts. Just create a forum thread and our dedicated support team will be there to respond.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Signature Product Family | Tagged | Leave a comment

ITempDataHandler is Introduced in GroupDocs.Conversion for .NET 18.6

GroupDocs.Conversion

A new release of GroupDocs.Conversion for .NET 18.6 is on-board. This release covers few improvements. Such as ConversionHandler constructors are reduced to one. Please visit the release notes. We’d recommend you to integrate latest version of the API in your application and share your feedback.

Improvements

  • Reducing ConversionHandler constructors to one
  • ITempDataHandler for handling temp operations stream
  • Introducing new properties in ConversionConfig for different handler types

API Resources

Here are a few channels and resources for you to download, learn, try and get technical support on GroupDocs.Conversion:

Feedback

We always welcome you to share your feedback to improve this product. We will be happy to know your thoughts. Just create a forum thread and our dedicated support team will be there to respond.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Posted in GroupDocs.Conversion Product Family | Tagged | Leave a comment