groupdocs-signature / GroupDocs.Signature-for-Java-Spring

Moved to https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java/tree/master/Demos/Spring
https://products.groupdocs.com/signature/java
MIT License
2 stars 2 forks source link

Create digital signature with GroupDocs.Signature

GroupDocs.Signature for Java Spring Example

version 1.7.27

Build Status Maintainability GitHub license

:warning: This repository has moved to https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java/tree/master/Demos/Spring

System Requirements

Digitally Sign documents with Java API

GroupDocs.Signature for Java allows you to add a digital signature to PDF, DOCX, PPT, XLS and over 90 formats with no external dependencies. Using powerful and flexible API you can easily add handwritten, barcode, QR code, Image and stamp signatures to a document.

This web application demonstrates all GroupDocs.Signature features with simple modern UI which can be used as standalone or be integrated into your project.

Note: without a license application will run in trial mode, purchase GroupDocs.Signature for Java license or request GroupDocs.Signature for Java temporary license.

Demo Video

Features




Responsive

Unique experience on the mobile device. Draw signature with your finger in landscape mode.








Digital certificate

Add digital signature to securely sign documents.







Barcode generator

Embedded barcode generator can generate over 50 barcode symbologies including linear, 2D and postal barcodes.








QR code generator

Embeded QR generator can generate PDF417, MacroPDF417, DataMatrix, Aztec, QR, Italian Post 25, GS1DataMatrix 2D barcodes.







More features

How to run

You can run this sample by one of following methods

Build from source

Download source code from github or clone this repository.

git clone https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Spring
cd GroupDocs.Signature-for-Java-Spring
mvn clean spring-boot:run
## Open http://localhost:8080/signature/ in your favorite browser.

Build war from source

Download source code from github or clone this repository.

git clone https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Spring
cd GroupDocs.Signature-for-Java-Spring
mvn package -P war
## Deploy this war on any server

Binary release (with all dependencies)

Download latest release from releases page.

Note: This method is recommended for running this sample behind firewall.

curl -J -L -o release.tar.gz https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Spring/releases/download/1.7.27/release.tar.gz
tar -xvzf release.tar.gz
cd release
java -jar signature-spring-1.7.27.jar configuration.yml
## Open http://localhost:8080/signature/ in your favorite browser.

Docker image

Use docker image.

mkdir DocumentSamples
mkdir Licenses
docker run -p 8080:8080 --env application.hostAddress=localhost -v `pwd`/DocumentSamples:/home/groupdocs/app/DocumentSamples -v `pwd`/Licenses:/home/groupdocs/app/Licenses groupdocs/signature
## Open http://localhost:8080/signature/ in your favorite browser.

Configuration

For all methods above you can adjust settings in configuration.yml. By default in this sample will lookup for license file in ./Licenses folder, so you can simply put your license file in that folder or specify relative/absolute path by setting licensePath value in configuration.yml.

Signature configuration options

Option Type Default value Description
filesDirectory String DocumentSamples Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path
fontsDirectory String Path to custom fonts directory.
defaultDocument String Absolute path to default document that will be loaded automaticaly.
preloadPageCount Integer 0 Indicate how many pages from a document should be loaded, remaining pages will be loaded on page scrolling.Set 0 to load all pages at once
textSignature Boolean true Enable/disable text signature
imageSignature Boolean true Enable/disable image signature
digitalSignature Boolean true Enable/disable digital signature
qrCodeSignature Boolean true Enable/disable QR-Code signature
barCodeSignature Boolean true Enable/disable Barcode signature
stampSignature Boolean true Enable/disable Stamp signature
handSignature Boolean true Enable/disable Hand signature
downloadOriginal Boolean true Enable/disable original document downloading
downloadSigned Boolean true Enable/disable signed document downloading

License

The MIT License (MIT).

Please have a look at the LICENSE.md for more details

GroupDocs Signature on other platforms & frameworks

Home | Product Page | Documentation | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License