Support for Text and Presentation Templates in GroupDocs.Parser for Java 18.12

GroupDocs.Parser for Java

We are delighted to announce the release of GroupDocs.Parser for Java 18.12. The latest version allows you to extract the tables from PDF documents. Furthermore, we have added the support of extracting text and metadata from text and presentation templates. For more details, please have a look at the release notes of version 18.12.

Features Introduced

Extracting Tables from PDF Documents

This feature is very useful when you want to extract only the tables form a PDF document. For extracting tables, TableAreaParser class is used. The instance of TableAreaParser class is available via property with the same name in PdfTextExtractor class. You can create the table bounds manually or let the API detect the layout in automatic mode using TableAreaDetector class.

For working example of this feature, please refer to this documentation article.

Extracting Text and Metadata from Text and Presentation Templates

GroupDocs.Parser now supports extracting text and metadata from the following text and presentation template formats:

  • dotx (Template)
  • dotm (Macro-enabled template)
  • ott (OpenDocument Text Template)
  • potx (Template)
  • potm (Macro-enabled template)
  • ppsm (Macro-enabled slideshow)
  • pptm (Macro-enabled presentation)

The following code samples show how to extract text and metadata from templates.

// Extracting Text
void extractText(String fileName) {
    // Extract a text from the file
    String text = Extractor.DEFAULT.extractText(fileName);
    // Print an extracted text
    System.out.println(text);
}
// Extracting Metadata 
void extractMetadata(String fileName) {
    // Extract metadata from the file
    MetadataCollection metadata = Extractor.DEFAULT.extractMetadata(fileName);
    // Print extracted metadata
    for (String key : metadata.getKeys()) {
        // Print a metadata key
        System.out.print(key);
        System.out.print(": ");
        // Print a metadata value
        System.out.println(metadata.get_Item(key));
    }
}

Enhancements

Detecting Type of Password-protected Office Open XML Documents

This feature allows detecting media type of the password-protected Office Open XML documents. To detect media type of encrypted Office Open XML document, detect(InputStream, LoadOptions) method is used. You can also use IPasswordProvider interface for batch document processing.

For working examples of this feature, please refer to 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.Parser:

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.Parser Product Family | Tagged , , , , , , | Leave a comment

Working with Folders Contained in Outlook Data Files using GroupDocs.Viewer for .NET 18.12

Document Viewer API

We are pleased to announce the monthly release of GroupDocs.Viewer for .NET 18.12. This release includes three new features, two bug fixes, and four improvements. By upgrading to the latest version, you’ll be able to get the list of folders and render messages from a specific folder contained in Outlook Data Files (OST/PST). Furthermore, it also allows you to ignore empty columns when rendering Excel documents. Below is the list of new features, fixes, and the improvements added in version 18.12.

Features Introduced

Working with Folders Contained in OST/PST Formats

GroupDocs.Viewer now also allows you to deal with the folders and the sub-folders in Outlook Data File documents (OST/PST). You can retrieve the list of the folders contained by a document and render the messages from a specific folder or the sub-folder such as Inbox, Sent Items, Deleted, Inbox\Sub_Folder_1 etc. This feature is available for rendering the document into HTML, image, and PDF. For working examples, please visit the following documentation articles:

Ignoring Empty Columns in Excel Documents

Sometimes Excel worksheet contains the empty columns along with the columns populated with data. In this case, if the number of empty columns is considerably huge, the rendering time increases and hence, it affects the performance. For such cases, we have introduced a new feature that ignores the empty columns using CellsOptions.IgnoreEmptyColumns property. For a working example, please visit this documentation article.

Improvements

We have included the following improvements in version 18.12:

  • Ignore empty string when it is passed as path to directory with fonts
  • Improve rendering into HTML for Outlook Data Files with subfolders and empty folders
  • Set exception localization feature as obsolete
  • Prevent rendering frozen and invisible CAD layers by default

Bug Fixes

Following issues are fixed in version 18.12 of GroupDocs.Viewer for .NET.

  • PDF contains blank page when rendering XPS to PDF
  • Issue with the image source when rendering Excel to HTML with embedded resources

Related Links and Resources

We have a few channels and resources for you to download, learn, try and get technical support on GroupDocs.Viewer.

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.Viewer Product Family | Tagged , , , , , , | Leave a comment

Export Annotations with Additional Options using GroupDocs.Annotation for .NET 18.12

GroupDocs.Annotation for .NET

We are excitedly announcing another monthly release of GroupDocs.Annotation for .NET. This latest release 18.12 allows you to export annotations with some additional options, like the ability to export specific annotation type, range of pages and few more. Apart from that, a few fixes and improvements are also introduced in this version, therefore, we recommend you to download the new version of the API to enhance your document annotation experience.

Features

  • Export documents with specific annotation type and range of pages
  • Possibility to retrieve pages with or without annotations

Improvements

  • Ensured and updated GroupDocs.Annotation code is thread-safe
  • Add text replacement for grouped shapes

Bug Fixes

  • AnnotationImageHandler.GetDocumentInfo method in trial mode throws exception
  • Bug during apply annotation to empty document in Cells
  • NotSupportedException exception when pass password parameter for Images

Available Channels and Resources

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

Feedback

We always appreciate and welcome to our valuable users to share their feedback to improve this product. We will be happy to know your thoughts and suggestions. 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.Annotation Product Family | Tagged | Leave a comment

Introducing Metadata Signatures for PDF in GroupDocs.Signature for Java 18.11

GroupDocs.Signature

We are delighted to announce another monthly release of GroupDocs.Signature for Java. This latest version 18.11 comes up with multitudinous features along with numerous improvements and fixes. The main feature introduced in this release is ability to add and search Metadata Signatures in a PDF document. Therefore, we would recommend you to download the new version of the API to evaluate the exciting new features and enhance your document e-signing experience.

Features

Verify Encrypted QR-Code Text

Users of this API can verify the encrypted QR-Code text in a document using property setDataEncryption

Following example demonstrates how to verify text of encrypted QR-Code Signature in a PDF document:

// 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 as true to verify all pages of a document
verifyOptions.setVerifyAllPages(true);
// setup encrypter to retrieve original text
verifyOptions.setDataEncryption(encrypter);
//verify document
VerificationResult result = handler.verify(fileName, verifyOptions);

Align Text in Text Signature

Users can align text in Text Signature for a Words, Slides, Images and PDF documents.

Following code sample shows how to align the text in Text Signature for a Cells document:

// setup options with text of signature
CellsSignTextOptions signOptions = new CellsSignTextOptions("John Smith");
// text rectangle size
signOptions.setHeight(100);
signOptions.setWidth(100);
// set text alignment inside signature (This feature is supported starting from version 18.11)
signOptions.setTextHorizontalAlignment(TextHorizontalAlignment.Center);
signOptions.setTextVerticalAlignment(TextVerticalAlignment.Center);

Set Signature Position in Cells Document with Pixels

This version of the API allow users to set position of signatures in a Cells document with pixels.

Following code shows how to set position of a Text Signature in the Cells document:

// Specify Signature Options 
CellsSignTextOptions signOptions = new CellsSignTextOptions ("John Smith");
signOptions.setWidth(100);
signOptions.setHeight(100);
signOptions.setTop(15);
signOptions.setLeft(22);

Ability for Cancellation

The API provides ability for cancellation of following processes:

  • Search
  • Verification
  • Signing

Following example demonstrates how to cancel signing process:

// setup signature option
PdfSignTextOptions signOptions = new PdfSignTextOptions("John Smith",10,10,100,100);
signOptions.setSignAllPages(true);

handler.SignatureStarted.add(new ProcessStartEventHandler() {
public void invoke(Object sender, ProcessStartEventArgs args) {
		System.out.println("Processing of "+args.getTotalSignatures()+" signatures for "+args.getGuid()+" started at " + args.getStarted().toString());
	}
});
handler.SignatureProgress.add(new ProcessProgressEventHandler(){
   public void invoke(Object sender, ProcessProgressEventArgs args) {
	   System.out.println("Singing of "+args.getGuid()+" progress: "+args.getProgress()+" %. Processed "+args.getProcessedSignatures()+" signatures. Since start process spent "+args.getTicks()+" mlsec");
	   if(args.getProgress() > 10){
		   args.setCancel(true);
		   System.out.println("Cancellation of process");
	   }
   }
});
handler.SignatureCompleted.add(new ProcessCompleteEventHandler() {
   public void invoke(Object sender, ProcessCompleteEventArgs args) {
	   if (args.getCanceled()){
		   System.out.println("Singing process was canceled");
	   }else{
		   System.out.println("Singing of "+args.getGuid()+" completed at "+args.getCompleted().toString()+". Processing of "+args.getTotalSignatures()+" signatures took "+args.getTicks()+" mlsec");
	   }
   }
});

Support of Measure Type Units for Cells Positioning

Users can set position of Signatures in a Cells document with some predefined measure units for following signature types:

  • Text Signatures
  • Image Signatures
  • Digital Signatures
  • QR-Code Signatures
  • Barcode Signatures
  • Stamp Signatures

Following example demonstrates using Measure Type properties to set position of a Image Signature in the Cells document:

CellsSignImageOptions signOptions = new CellsSignImageOptions (CommonUtilities.getImagesPath("sign.png"));
// specify Size
signOptions.setSizeMeasureType(MeasureType.Percents);
signOptions.setHeight(25);
signOptions.setWidth(25);
// specify size in percents of page size
signOptions.setMarginMeasureType(MeasureType.Percents);
signOptions.getMargin().setTop(25);
// specify Intents
signOptions.setTop(15);
signOptions.setLeft(20);

Metadata Signatures for PDF Document

The Metadata Signature is the additional document property that contains special attributes/tags to keep non visual information inside the document.

Following example demonstrates how to compose Metadata Signature options for a PDF document:

// setup options with text of signature
PdfMetadataSignOptions signMetadataOptions = new PdfMetadataSignOptions();
// Specify different Metadata Signatures and add them to options sigature collection
// setup Author property
PdfMetadataSignature mdSign_Author = new PdfMetadataSignature("Author", "Mr.Scherlock Holmes");
signMetadataOptions.getMetadataSignatures().add(mdSign_Author);
// setup data of document id
PdfMetadataSignature mdSign_DocId = new PdfMetadataSignature("DocumentId", java.util.UUID.randomUUID().toString());
signMetadataOptions.getMetadataSignatures().add(mdSign_DocId);
// setup data of sign date
PdfMetadataSignature mdSign_Date = new PdfMetadataSignature("SignDate", new Date(), "pdf");
signMetadataOptions.getMetadataSignatures().add(mdSign_Date);

Search Metadata Signature

Users of this API can search for Metadata Signatures within the document.

Following example demonstrates how to search Metadata Signatures in a PDF document:

// setup search options
PdfSearchMetadataOptions searchOptions = new PdfSearchMetadataOptions();  
// search document
SearchResult result = handler.search("SignedMetadata.pdf", searchOptions);

Save Image as PDF Document

Image files can be saved to PDF format using this latest release of the API.

MatchType for Text Verification Options

The API provides ability to verify Text Signatures with an extended option MatchType

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
  • Global Exception handler to catch all unhandled exceptions
  • Support of several Words Digital Search Options and Cells Digital Search Options

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
  • Wrong border appearance for PDF Text as Image signatures
  • QR-Code positioning when Signature area is more than generated QR-Code
  • Freezing of signature process on Images for QR-Code Signature
  • Incorrect signing image documents with .psd, .wmf and .svg format
  • Output PDF incorrectly signed with Digital Certificates
  • Unable to search Digital signature in Cells with extended options

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 Java:

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

Style Detection for Slides is Improved in GroupDocs.Comparison for .NET 18.11

GroupDocs.ComparisonGroupDocs.Comparison for .NET 18.11 comes with a bug fix and a few improvements. AutoShape issue in Slides is now fixed. Furthermore, Charts comparison in Slides is improved. Please follow the release notes here for further details. We would recommend you to try the latest version of the API and share your feedback.

Improvements

Following improvements are introduced:

  • Make Comparison thread-safe
  • Improve charts comparing on Slides
  • Style detection on Slides
  • Comparison tester for Words

Bug Fix

Following issues are resolved for Slides:

  • Fix issues with AutoShape in Slides

Available Channels and Resources

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

Feedback

You are always welcome to share your feedback and suggestions to improve this product, we take it very seriously and try to incorporate it as much as its possible for upcoming releases . 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.Comparison Product Family | Tagged | Leave a comment

Add Form-Field Signatures in PDF using GroupDocs.Signature for .NET 18.11

GroupDocs.Signature

We are pleased to announce another monthly release of GroupDocs.Signature for .NET. This latest release 18.11 of the API comes up with a multitude of new features like the ability to add form-field signatures in PDF documents and many more. We therefore recommend you to download the new version of the API to evaluate the exciting new features and enhance your document e-signing experience.

Features

Sign PDF Document with a Form-Field Signature

The Form-Field Signatures are the input control which are placed in a document page.

Following example demonstrates how to add Checkbox in a PDF document:

// instantiate check-box form field signature
FormFieldSignature checkboxSignature = new PdfCheckboxFormFieldSignature("FieldCheckbox", true);
// instantiate options based on check-box form field signature
PdfFormFieldSignOptions checkboxOptions = new PdfFormFieldSignOptions(checkboxSignature)
{
    HorizontalAlignment = HorizontalAlignment.Left,
    VerticalAlignment = VerticalAlignment.Top,
    Margin = new Padding(120, 20, 0, 0),
    Height = 10,
    Width = 10
};
// sign document
string signedPath = handler.Sign("02_pages.pdf", checkboxOptions,
    new SaveOptions { OutputType = OutputType.String, OutputFileName = "Pdf_FormFields" });

Search Form-Field Signatures in a PDF Document

API allows you to search for Form-Field Signatures like Text, Checkbox or Digital within the document.

Following example demonstrates how to search Form-Field Signature in PDF document:

// setup search options
PdfSearchFormFieldOptions searchOptions = new PdfSearchFormFieldOptions();
searchOptions.SearchAllPages = true;
searchOptions.NamePattern = @"Field";
searchOptions.Value = @"Value1";
// search document
SearchResult result = handler.Search("Pdf_FormFields_Signed.pdf", searchOptions);

Metadata Signatures for Slides document

The Metadata Signature is the additional document property that contains special attributes/tags to keep non visual information inside the document.

Following example demonstrates how to compose Metadata Signature options for Slides document:

// setup options with text of signature
SlidesMetadataSignOptions signOptions = new SlidesMetadataSignOptions();
// Specify different Metadata Signatures and add them to options sigature collection
// setup Author property
SlidesMetadataSignature mdSign_Author = new SlidesMetadataSignature("Author", "Mr.Scherlock Holmes");
signOptions.MetadataSignatures.Add(mdSign_Author);
// setup data of document id
SlidesMetadataSignature mdSign_DocId = new SlidesMetadataSignature("DocumentId", Guid.NewGuid().ToString());
signOptions.MetadataSignatures.Add(mdSign_DocId);
// setup data of sign date
SlidesMetadataSignature mdSign_Date = new SlidesMetadataSignature("SignDate", DateTime.Now);
signOptions.MetadataSignatures.Add(mdSign_Date);
// setup some integer value
SlidesMetadataSignature mdSign_Days = new SlidesMetadataSignature("DocDays", 12345);
signOptions.MetadataSignatures.Add(mdSign_Days);
// setup data of sign date
SlidesMetadataSignature mdSign_Koeff = new SlidesMetadataSignature("SignKoeff", 2.345M);
signOptions.MetadataSignatures.Add(mdSign_Koeff);
// sign document
string signedPath = handler.Sign("test.pptx", signOptions,
    new SaveOptions { OutputType = OutputType.String, OutputFileName = "Slides_Documents_Metadata" });

Search Metadata Signature in a Slides document

You can search for Metadata Signatures within the Slides document.
Following example demonstrates how to search Metadata Signatures in Slides document:

// setup search options
SlidesSearchMetadataOptions searchOptions = new SlidesSearchMetadataOptions();
// set if we need built-in signatures
searchOptions.IncludeBuiltinProperties = true;
// search document
SearchResult result = handler.Search("SignedMetadata.pptx", searchOptions);

Additional Verification Criteria

This latest version of the API provides few additional properties to verify Digital Signatures of Words document.

// setup digital verification options
WordsVerifyDigitalOptions verifyOptions = new WordsVerifyDigitalOptions("SherlockHolmes.cer");
verifyOptions.Comments = "Test1";
verifyOptions.SubjectName = "Signature";
verifyOptions.IssuerName = "GroupDocs";
verifyOptions.SignDateTimeFrom = new DateTime(2017, 1, 26, 14, 55, 57);
verifyOptions.SignDateTimeTo = new DateTime(2017, 1, 26, 14, 55, 59);        
//verify document
VerificationResult result = handler.Verify("digital signatures.docx", verifyOptions);

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

Measure Document Conversion Time using GroupDocs.Conversion for .NET 18.11

GroupDocs.Conversion

GroupDocs.Conversion for .NET 18.11 comes with a lot of new features and some improvements. Conversion from EPS, TSV and PCL formats is introduced. Furthermore, API provides an option for page rotation when converting to PDF. Please check GroupDocs.Conversion for .NET 18.11 release notes for further reference.

Improvements

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

Features

Setting Default Font and Font Substitution Options

When Converting OneNote Document

const string source = "source.one";
var loadOptions = new OneLoadOptions
{
    DefaultFont = "Helvetica",
};
loadOptions.FontSubstitutes.Add(new KeyValuePair("Arial", "Helvetica"));
loadOptions.FontSubstitutes.Add(new KeyValuePair("Harriet", "Transcript"));

Set default font when converting from Diagram

const string source = "source.vsd";
var loadOptions = new DiagramLoadOptions
{
    DefaultFont = "Helvetica",
};

Measure Conversion Time

Measure conversion time and return it as a property of ConvertedDocument class

var convertedDocument = conversionHandler.Convert(source, saveOptions);
Console.WriteLine("Elapsed time: {0}ms", convertedDocument.Elapsed);

Rotation Feature

When Converting to PDF Format

Implement rotation feature when converting to PDF

var saveOptions = new PdfSaveOptions {
    Rotate = PdfSaveOptions.Rotation.On90
};

When Converting to Image

var saveOptions = new ImageSaveOptions {
    RotateAngle = 45
};

Flatten all Form Fields

Option to flatten all form fields when converting PDF documents

var loadOptions = new PdfLoadOptions
{
    FlattenAllFields = true
};

Include Hidden Slides in Converted Document

Include hidden Slides in converted document when converting from Slides

var loadOptions = new SlidesLoadOptions
{
    ShowHiddenSlides = true
};

New Document Formats Introduced

GroupDocs.Conversion for .NET 18.11 implements conversion from EPS, PCL and TSV. You can also convert documents to TSV format.

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

GroupDocs Holidays Offer – Get 25% off GroupDocs.Total or a 24 Bottle Case of Award Winning Pirathon Total Shiraz

LinkedIn Google+ Twitter Facebook
Share this issue:

Monthly Newsletter

December 2018

25% off GroupDocs.Total OR 24 bottles of Award-Winning Pirathon Total Shiraz

Securely Sign Official Documents with Stamp Signatures

Get 25% off GroupDocs.Total OR 24 Bottles of Award-Winning Pirathon Total Shiraz (worth over $1500).

Quote HOLOFF2018 or PIRATH2018 when placing your order.

Buy Now

This offer is only available on new GroupDocs.Total purchases and cannot be used in conjunction with other offers, renewals or upgrades. Only available directly from GroupDocs.com, not through third parties or resellers. Ts&Cs Apply

Product News

Product News

Product News

From the Library

From the Library

From the Library

Feedback

Feedback

Feedback
Product Releases and Updates

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