Skip to content

Instantly share code, notes, and snippets.

GroupDocs GroupDocsGists

Block or report user

Report or block GroupDocsGists

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View StampWithRoundedCorners.java
//For complete examples and data files, please go to https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java
// setup signature configuration
SignatureConfig signConfig = new SignatureConfig();
signConfig.setStoragePath("\\Storage");
signConfig.setOutputPath("\\Output");
// instantiate the signature handler
SignatureHandler<String> handler = new SignatureHandler<String>(signConfig);
// setup options
View getconsumptioncredit.cs
// For complete examples and data files, please go to https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET
/// <summary>
/// Retrieves amount of used credits
/// </summary>
/// <returns>Number of already used credits</returns>
public static decimal GetConsumptionCredit()
View enablepaginationinsaveoptions.cs
// For complete examples and data files, please go to https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET
/// <summary>
/// Allows to enable or disable pagination which will be used for saving the document.
/// If the original document was opened and edited in pagination mode, this option also should be enabled. By default is disabled.
/// </summary>
public bool EnablePagination { get; set; }
View enablepagination.cs
// For complete examples and data files, please go to https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET
/// <summary>
/// Allows to enable or disable pagination in the resultant HTML document. By default is disabled (false).
/// </summary>
public bool EnablePagination { get; set; }
View Examples-src-main-java-com-groupdocs-parser-examples-TextExtractors-PDFDocuments-detectTableInRectangularAreaUsingColumnSeparators.java
// For complete examples and data files, please go to https://github.com/groupdocs-parser/GroupDocs.Parser-for-Java
// Create a text extractor for PDF documents
try (PdfTextExtractor extractor = new PdfTextExtractor(Common.mapSourceFilePath(FILE_PATH))) {
// Create table detector parameters
TableAreaDetectorParameters parameters = new TableAreaDetectorParameters();
// Set vertical separators
parameters.setVerticalSeparators(new ArrayList());
parameters.getVerticalSeparators().add(185.0);
parameters.getVerticalSeparators().add(370.0);
View Examples-src-main-java-com-groupdocs-parser-examples-TextExtractors-PDFDocuments-moveTableLayout.java
// For complete examples and data files, please go to https://github.com/groupdocs-parser/GroupDocs.Parser-for-Java
// Create a table layout
TableAreaLayout templateLayout = new TableAreaLayout();
// with 4 columns:
templateLayout.getVerticalSeparators().add(0.0);
templateLayout.getVerticalSeparators().add(25.0);
templateLayout.getVerticalSeparators().add(150.0);
templateLayout.getVerticalSeparators().add(180.0);
templateLayout.getVerticalSeparators().add(230.0);
View Examples-src-main-java-com-groupdocs-parser-examples-TextExtractors-PDFDocuments-extractDataTableFromDocument.java
// For complete examples and data files, please go to https://github.com/groupdocs-parser/GroupDocs.Parser-for-Java
// Create a collection of template fields
TemplateField[] templateFields = new TemplateField[]
{
new TemplateField("FromCompany", TemplateFieldPosition.createFixed(new Rectangle(35, 135, 100, 10))),
new TemplateField("FromAddress", TemplateFieldPosition.createFixed(new Rectangle(35, 150, 100, 35))),
new TemplateField("FromEmail", TemplateFieldPosition.createFixed(new Rectangle(35, 190, 150, 2))),
new TemplateField("ToCompany", TemplateFieldPosition.createFixed(new Rectangle(35, 250, 100, 2))),
new TemplateField("ToAddress", TemplateFieldPosition.createFixed(new Rectangle(35, 260, 100, 15))),
new TemplateField("ToEmail", TemplateFieldPosition.createFixed(new Rectangle(35, 290, 150, 2))),
View Examples-src-main-java-com-groupdocs-parser-examples-TextExtractors-PDFDocuments-extractDataFromDocumentByFieldName.java
// For complete examples and data files, please go to https://github.com/groupdocs-parser/GroupDocs.Parser-for-Java
// Create a collection of template fields
TemplateField[] templateFields = new TemplateField[]
{
new TemplateField("FromCompany", TemplateFieldPosition.createFixed(new Rectangle(35, 135, 100, 10))),
new TemplateField("FromAddress", TemplateFieldPosition.createFixed(new Rectangle(35, 150, 100, 35))),
new TemplateField("FromEmail", TemplateFieldPosition.createFixed(new Rectangle(35, 190, 150, 2))),
new TemplateField("ToCompany", TemplateFieldPosition.createFixed(new Rectangle(35, 250, 100, 2))),
new TemplateField("ToAddress", TemplateFieldPosition.createFixed(new Rectangle(35, 260, 100, 15))),
new TemplateField("ToEmail", TemplateFieldPosition.createFixed(new Rectangle(35, 290, 150, 2))),
View GetCreditConsumption.cs
// For complete examples and data files, please go to https://github.com/groupdocs-redaction/GroupDocs.Redaction-for-.NET
GroupDocs.Redaction.Metered metered = new GroupDocs.Redaction.Metered();
metered.SetMeteredKey(publicKey, privateKey);
// get credit consumption
decimal creditsConsumed = metered.GetConsumptionCredit();
View defaultsynonym.cs
https://github.com/groupdocs-search/GroupDocs.Search-for-.NET
//Enabling synonym search in search parameters
SearchParameters parameters = new SearchParameters();
parameters.UseSynonymSearch = true;
You can’t perform that action at this time.