• Hello and welcome to our new forums. We upgraded our forum sites to a more robust and modern system which we hope you will enjoy. Be sure to check out your profile by clicking the button on the top right and configure your preferences, signature, time zone, avatar, etc. as you wish. If you need help with using this new forum'ware try the help link on the bottom right.

    Click here to review your account now.

GroupDocs ads

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Add form field esignatures to your PDF documents with C# .NET API

Most recent monthly release of the .NET esigning API comes with a number of new features and enhancements. You can now include and search checkbox, text or digital form field e-signatures in your PDF document pages on .NET platform. Version 18.11 of GroupDocs.Signature for .NET API lets you electronically add or find metadata signatures in Microsoft PowerPoint slides together with the capability of verifying digital signatures in Microsoft Word DOCX documents.

Sign PDF Document with a Form-Field Signature

Following example demonstrates how to add Checkbox in a PDF document:
Code:
// 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" });
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:
Code:
// 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

Following example demonstrates how to compose Metadata Signature options for Slides document:
Code:
// 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" });
You can search for Metadata Signatures within the Slides document.

Following example demonstrates how to search Metadata Signatures in Slides document:
Code:
// 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);
This latest version of the API provides few additional properties to verify Digital Signatures of Words document.
Code:
// 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);
Download a free trial and start digitally signing your documents today – https://bit.ly/2NNGmIl

Watch YouTube video tutorials of the GroupDocs API – https://bit.ly/2F6yONN
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Native .NET and Java APIs to Perform Document Search and Indexing

Perform advanced document search operations by with the help of cross platform .NET and Java text search APIs in GroupDocs.Search Product Family suite. It also equips application developers with the ability to create, update or merge multiple indices as well as smart index search functionality to use simple, Boolean, Fuzzy and Regular Expression (regex) search queries across a range of popular document formats. Build different types of feature rich search and indexing apps to fetch and manipulate data according to your specific business requirements.


Download your free trial today – http://bit.ly/2QNC05G


Watch video tutorials about GroupDocs APIs on YouTube – http://bit.ly/2PwqUNK
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Compare charts, detect styles in PowerPoint Slides using C# .NET API

New monthly release of the document comparison .NET API includes some key enhancements and an important bug fix. With the latest release, application developers can compare charts and detect styles while working with Microsoft PowerPoint presentations within their .NET apps. A bug related to the use of auto shapes has been fixed for Slides files thus offering a refined usage experience. Comparison tester feature improvement in Microsoft Word documents is another highlight of version 18.11 of GroupDocs.Comparison for .NET – http://bit.ly/2SRtb8s


YouTube video tutorials of the GroupDocs API – http://bit.ly/2RZOfcG

improved-style-detection-and-charts-comparison-in-powerpoint-slides-using-groupdocs-comparison-f.png
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Export Annotations with Additional Options using C# .NET Annotator API

Most recent monthly release of the .NET document annotator API includes some key feature additions, enhancements and bug fixes. With the help of the latest release, applications developers can redeem document pages with or without the annotations, export specific annotation type and range of pages while annotating documents or images on .NET platform. Other highlights from version 18.12 of GroupDocs.Annotation for .NET are important enhancements such as adding text replacement for grouped shapes and a number of fixed issues – http://bit.ly/2BIcJAa

Following code sample illustrates how you can obtain annotations from a JSON file and export them to a PDF document:
Code:
// Create instance of annotator. 
AnnotationConfig cfg = CommonUtilities.GetConfiguration();
                
AnnotationImageHandler annotator = new AnnotationImageHandler(cfg);
 
// Get file stream
Stream manifestResourceStream = new FileStream(CommonUtilities.MapSourceFilePath(filePath), FileMode.Open, FileAccess.ReadWrite);
List<AnnotationInfo> annotations = new List<AnnotationInfo>();
                
Stream stream = annotator.ExportAnnotationsToDocument(manifestResourceStream,annotations, DocumentType.Pdf);


// Save result stream to file.
using (FileStream fileStream = new FileStream(CommonUtilities.MapDestinationFilePath("Annotated.pdf"), FileMode.Create))
{
    byte[] buffer = new byte[stream.Length];
    stream.Seek(0, SeekOrigin.Begin);
    stream.Read(buffer, 0, buffer.Length);
    fileStream.Write(buffer, 0, buffer.Length);
    fileStream.Close();
}

YouTube video tutorials of the .NET API – http://bit.ly/2Sod3vn
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Retrieve Folders Contained in Outlook Data Files using C# .NET API

Get the list of folders and sub-folders from your OST and PST Outlook data files; render the messages from these folders to PDF, HTML and Image formats with the help of the latest release of the .NET document rendering API. Ignore empty columns while rendering Microsoft Excel worksheets within your .NET apps to reduce processing time and optimize memory usage when working with large files using GroupDocs.Viewer for .NET – http://bit.ly/2UNFCDL

Following code snippet shows how you can retrieve the list of folders:
Code:
// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();


// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = DocumentName;


// Get Outlook document info
OutlookDocumentInfoContainer documentInfoContainer = imageHandler.GetDocumentInfo(guid) as OutlookDocumentInfoContainer;


foreach (string folderName in documentInfoContainer.Folders)
    Console.WriteLine("Folder name: {0}", folderName);
Here's how you can retrieve sub-folders list:
Code:
// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();


// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = DocumentName;


// Create option object with specified folder name
DocumentInfoOptions options = new DocumentInfoOptions();
options.OutlookOptions.FolderName = "Inbox";
// Get outlook document info
OutlookDocumentInfoContainer documentInfoContainer = imageHandler.GetDocumentInfo(guid, options) as OutlookDocumentInfoContainer;


foreach (string folderName in documentInfoContainer.Folders)
    Console.WriteLine("Folder name: {0}", folderName);
Below code snippet demonstrates how an email message from any of the retrieved folders can be rendered as an image:
Code:
// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();


// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = DocumentName;


// Create image options with specified folder name (use HtmlOptions to render into HTML)
ImageOptions options = new ImageOptions();
options.OutlookOptions.FolderName = "Inbox\\Sub Folder 1";


// Render document into image (List<PageHtml> is returned when rendering into HTML)
List<PageImage> pages = imageHandler.GetPages(guid, options);


foreach (PageImage page in pages)
{
    // Save each image at disk
    Utilities.SaveAsImage(page.PageNumber + "_" + DocumentName, page.Stream);
}
To render a message as PDF, refer to following code example:
Code:
// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();


// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = DocumentName;


// Create pdf options with specified folder name
PdfFileOptions options = new PdfFileOptions();
options.OutlookOptions.FolderName = "Inbox";


// Get pdf document
FileContainer fileContainer = imageHandler.GetPdfFile(guid, options);


//Save file
Utilities.SaveFile(guid, fileContainer.Stream);


YouTube video tutorials of the GroupDocs API – http://bit.ly/2UKFx3L
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Extract Metadata from Presentation Templates using .NET Parsing API

Develop applications for extracting text and metadata from many different text and presentation templates on .NET platform with the help of the latest version of the document text extraction API. Another important feature is the ability to programmatically fetch tables from PDF documents within your .NET apps. While working with this functionality, you can create table bounds manually or let the API identify the layout in automatic mode.


In addition to this, you have access to the features of detecting media type of your password-protected Office OpenXML documents and batch document processing in GroupDocs.Parser for .NET API – http://bit.ly/2QuFPsr

Following code samples show how to extract text and metadata from templates:
Code:
// Extracting Text
void ExtractText(string fileName)
{
    // Extract a text from the file
    var text = Extractor.Default.ExtractText(fileName);
    // Print an extracted text
    Console.WriteLine(text);
}
// Extracting Metadata 
void ExtractMetadata(string fileName)
{
    // Extract metadata from the file
    var metadata = Extractor.Default.ExtractMetadata(fileName);
    // Print extracted metadata
    foreach (var m in metadata)
    {
        // Print a metadata key
        Console.Write(m.Key);
        Console.Write(": ");
        // Print a metadata value
        Console.WriteLine(m.Value);
    }
}
Below code sample shows how to detect media type in password-protected Office OpenXML documents:
Code:
// Create load options
LoadOptions loadOptions = new LoadOptions();
// Set a password
loadOptions.Password = "password";
// Get a default composite media type detector
var detector = CompositeMediaTypeDetector.Default;
// Create a stream to detect media type by content (not file extension)                
using (var stream = File.OpenRead(Common.GetFilePath(fileName)))
{
    // Detect a media type
    var mediaType = detector.Detect(stream, loadOptions);
    // Print a detected media type
    Console.WriteLine(mediaType);
}
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Work with secure PDF, Words, Excel, PowerPoint Documents using C# .NET Metadata API

Manipulate metadata in password-protected Microsoft Word and PDF documents, Excel worksheets and PowerPoint presentations on .NET platform using the latest version of the .NET document metadata API. Application developers can better utilize memory when loading or saving word processing and slides documents within their apps together with the ability to update metadata keys in DOC and DOCX file formats using GroupDocs.Metadata for .NET API – http://bit.ly/2QESWr1

Following code snippet shows how to work with metadata of a password protected PDF document:
Code:
LoadOptions loadOptions = new LoadOptions("password");
using (PdfFormat format = new PdfFormat(Common.MapSourceFilePath(protectedFilePath), loadOptions))
{
    // Working with the password-protected document
    format.CleanMetadata();
    format.Save(Common.MapDestinationFilePath(protectedFilePath));
}

This .NET API supports working with Word formats with less memory consumption. Please note that the DocFormat class implements the IDisposable interface and it's necessary to call the Dispose() method when you're done working with its instance.


Check following code snippets to use less memory while working with Word documents.
Code:
using (DocFormat format = new DocFormat(@"d:\input.docx"))
{
    // Working with metadata
}

If you are loading a Word document from a stream, it's up to you to close the stream when the file is not needed anymore.


Code:
using (Stream stream = File.Open(@"d:\input.doc", FileMode.Open, FileAccess.ReadWrite))
{
    using (DocFormat format = new DocFormat(stream))
    {
        // Working with metadata
    }
    // The stream is still open here
}

Similarly, when saving the output file to a stream:
Code:
using (Stream stream = File.Open(@"d:\output.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite))
{
    using (DocFormat format = new DocFormat(@"d:\input.docx"))
    {
        // Working with metadata
  
        format.Save(stream);
    }
    // The stream is still open here
}

Watch YouTube video tutorials of the GroupDocs API – http://bit.ly/2skUjRO
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Utilize blended characters and wildcard search in your apps using .NET API

If you are looking for a text search API offering you a diverse set of features to build search and indexing applications on .NET platform proficiently while working with Microsoft Office, OpenOffice, PDF, ZIP archives and different other types of documents, look no further than GroupDocs.Search for .NET.


One of the notable features of this .NET API is the use of blended characters within your apps. These characters help you reduce search terms and when indexed, blended characters get simultaneously interpreted as valid letters as well as separators.


Another prominent feature is that of searching words containing wildcards; supporting two forms, a single wildcard arbitrary character, or a range of characters - http://bit.ly/2AT9qXi
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Dynamically Assemble External Documents using C# .NET API

If you are a software developer, and you are looking to programmatically incorporate document automation functionality into your applications on .NET platform, there are not many APIs which offer you the convenience of use bundled with a proven feature set and seamless processing. Of the few APIs you could trust, GroupDocs.Assembly for .NET is surely one to consider.


It envelops a range of very useful functions giving you the edge when assembling various types of commonly used documents formats, from different data sources such as database, JSON, XML, OData and Custom .NET Objects. An important feature of this automation API is the ability to dynamically assemble external documents. This feature is currently available for Microsoft Word and Email formats.


You can work with doc tags, which are placeholders within templates, allowing you to absorb documents at run-time. Using these doc tags, programmers can insert documents dynamically into their reports with the .NET API. Learn more – http://bit.ly/automate-external-documents

Following code snippet shows how to insert external document in Word Processing format:
Code:
//Setting up source open document template
const String strDocumentTemplate = "Word Templates/Nested External Document.docx";
//Setting up destination open document report 
const String strDocumentReport = "Word Reports/Nested External Document.docx";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();
    //Call AssembleDocument to generate  Report in open document format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate),
                               CommonUtilities.SetDestinationDocument(strDocumentReport),
                               new DataSourceInfo(DataLayer.GetCustomerData(), "customer"));
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}

Similarly, here's how to insert an external document in Email format:
Code:
//Setting up source open document template
const String strDocumentTemplate = "Email Templates/Nested External Document.msg";
//Setting up destination open document report 
const String strDocumentReport = "Email Reports/Nested External Document.msg";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();
    //Call AssembleDocument to generate  Report in open document format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate),
                               CommonUtilities.SetDestinationDocument(strDocumentReport),
                               new DataSourceInfo(DataLayer.GetCustomerData(), "customer"));
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
Edit your Documents in Multi-threaded Environment using C# .NET API

Editing different types of documents programmatically on different development platforms is almost a given when talking about document manipulation in general. Most basic requirement is to modify file contents, then re-convert the file to original or even a different format too. Add to it some other perks like multiple sources for loading documents, securing the resultant documents and so on.


So, an API offering document editing features plus the document we wish to edit is all we need to get started. If .NET platform is your forte, you can try GroupDocs.Editor for .NET API, which is a feature rich file editor helping you in developing simple, scalable C# and ASP.NET apps which integrate with different HTML based editors to modify your Microsoft Word, Excel, OpenDocument, Text, HTML and other types of documents.


Latest release of this .NET API supports a refined set of lists and paragraphs to use in HTML editors. Additionally, you have access to a more stable multi-threading environment thus allowing you to further enhance your document editing experience. Try free today – http://bit.ly/2DZY99S


Follow GroupDocs on YouTube – http://bit.ly/2UPmVPr

build-document-editing-apps-on-dotnet-platform-in-multi-threading-environment-using-groupdocs-ed.png
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
C# .NET API to Redact and Hide Classified Information in Documents

Do you frequently send or receive documents electronically? If so, you will be familiar with the importance of protecting sensitive information contained within digitally processed documents. Text encryption, hiding or even removing specific types of information from the documents are few different ways of securing your files.


A question, why would you need to protect this type of information anyways? What’s the big deal? Well, everyone may have his own reasons, depending upon the kind of documents and data in question, key principle stays the same; to be sure that the information being transferred electronically is safe, it isn’t manipulated in any wrong or harmful way.


So, in conclusion, we want to transfer documents over the internet, but we want to be able to protect document contents by any means feasible. Considering it could be cumbersome processing a bunch of files manually, we can use an API which lets us develop apps for hiding or removing sensitive document data and automate the whole process. If you are working on .NET platform, you can leverage the newly launched GroupDocs.Redaction for .NET API. It is a feature rich document redaction API which helps you obscure classified text, metadata or tabular data from document contents, comments and annotations inside your PDF, Microsoft Word, Excel and PowerPoint files. Learn more – http://bit.ly/redact-documents


Follow GroupDocs on YouTube – http://bit.ly/2PwqUNK
 

groupdocs

Active member
Joined
Mar 8, 2016
Messages
33
Location
Aspose Pty Ltd, Suite 163, 79 Longueville Road, NS
Programming Experience
10+
How to Find Metadata Signatures in Image Files using C# .NET API

Electronic signing or e-signing is the procedure of signing your legal, contractual or any other type of documents digitally, without the need to scan or print them. e-Signing helps in reducing the hassle of obtaining hard copies, processing and storing them, together with providing an avenue towards a paper-less environment.

Let’s talk about at which levels is eSigning process required. Is it exclusive to certain departments, businesses or individuals? No, this process has a very broad scope; one might implement it at a personal or enterprise level too.

We can now look at how you can actually eSign your documents. Whether it is a manual or automated procedure? There are no hard and fast rules, individuals can add e-Signatures into their files manually or, there could be an automated approach for batch processing. If you are a programmer and would like to code an app on .NET platform which lets you digitally sign numerous types of files, you can consider using GroupDocs.Signature for .NET API. It supports adding text, image, digital, barcode, QR-code and metadata type signatures into PDF, Microsoft Word, Excel, PowerPoint, Text, JPEG and TIFF files proficiently.

Latest release of this .NET API comes with an interesting feature of searching for metadata signatures inside your .NET based image file formats. Feel free to checkout available features yourself – C# .NET API to Apply & Manage your eSignatures in Text or Image

Follow GroupDocs on YouTube – GroupDocs
 
Top Bottom