Created
December 2, 2019 12:46
-
-
Save usman-aziz/c8a0218cfd0bc4f8efc528e5f0d717af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (Metadata metadata = new Metadata("sample.jpeg")) | |
{ | |
var root = metadata.GetRootPackage<JpegRootPackage>(); | |
root.RemoveImageResourcePackage(); | |
metadata.Save("output.jpeg"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signature signature = new Signature("sample.pdf"); | |
TextSignOptions options = new TextSignOptions("John Smith"); | |
// set signature position | |
options.setLeft(100); | |
options.setTop(100); | |
// set signature rectangle | |
options.setWidth(100); | |
options.setHeight(30); | |
// set text color and Font | |
options.setForeColor(Color.RED); | |
SignatureFont signatureFont = new SignatureFont(); | |
signatureFont.setSize(12); | |
signatureFont.setFamilyName("Comic Sans MS"); | |
options.setFont(signatureFont); | |
// sign document to file | |
signature.sign("sample_signed.pdf", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment