Last active
September 27, 2018 13:59
-
-
Save groupdocscloud/e1e1480f327b6a0982bc1ecc3768718f to your computer and use it in GitHub Desktop.
This Gist contains .NET examples of GroupDocs.Signature Cloud
This file contains 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-CSharp |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var request = new GetDocumentInfoRequest | |
{ | |
FileName = "one-page.docx", | |
Password = null, | |
Folder = null, | |
Storage = null, | |
}; | |
var response = apiInstance.GetDocumentInfo(request); | |
Debug.Print("FleName: " + response.Name); | |
Debug.Print("Total pages: " + response.Pages.TotalCount); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when getting Document Info: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var request = new GetDocumentInfoFromUrlRequest | |
{ | |
Url = @"https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=0", | |
Password = null, | |
Storage = null, | |
}; | |
var response = apiInstance.GetDocumentInfoFromUrl(request); | |
Debug.Print("Total pages: " + response.Pages.TotalCount); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when getting Document Info from provided URL: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
SearchOptionsCollectionData collection = new SearchOptionsCollectionData(); | |
var searchOptionsBarCodeData = new PdfSearchBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code39Standard", | |
MatchType = SearchBarcodeOptionsData.MatchTypeEnum.Contains, | |
Text = "123456789012", | |
SearchAllPages = true | |
}; | |
collection.Items = new List<SearchOptionsData>(); | |
collection.Items.Add(searchOptionsBarCodeData); | |
var searchOptionsQRCodeData = new PdfSearchQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "Aztec", | |
MatchType = SearchQRCodeOptionsData.MatchTypeEnum.Contains, | |
Text = "John Smith", | |
SearchAllPages = true | |
}; | |
collection.Items.Add(searchOptionsQRCodeData); | |
var request = new PostSearchCollectionRequest | |
{ | |
Name = "sample2.pdf", | |
Password = null, | |
Folder = null, | |
SearchOptionsCollectionData = collection | |
}; | |
var response = apiInstance.PostSearchCollection(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching collection: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
SearchOptionsCollectionData collection = new SearchOptionsCollectionData(); | |
PdfSearchBarcodeOptionsData searchOptionsBarCodeData = new PdfSearchBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code39Standard", | |
MatchType = SearchBarcodeOptionsData.MatchTypeEnum.Contains, | |
Text = "123456789012", | |
SearchAllPages = true | |
}; | |
collection.Items = new List<SearchOptionsData>(); | |
collection.Items.Add(searchOptionsBarCodeData); | |
var searchOptionsQRCodeData = new PdfSearchQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "Aztec", | |
MatchType = SearchQRCodeOptionsData.MatchTypeEnum.Contains, | |
Text = "John Smith", | |
SearchAllPages = true | |
}; | |
collection.Items.Add(searchOptionsQRCodeData); | |
var request = new PostSearchCollectionFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/hodevye8grewfup/one-page.pdf?dl=0", | |
Password = null, | |
SearchOptionsCollectionData = collection | |
}; | |
var response = apiInstance.PostSearchCollectionFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching collection from url: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var searchOptionsData = new CellsSearchBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code39Standard", | |
MatchType = SearchBarcodeOptionsData.MatchTypeEnum.Contains, | |
Text = "123456789012", | |
SearchAllPages = true | |
}; | |
var request = new PostSearchBarcodeRequest | |
{ | |
Name = "SignedForVerificationAll.xlsx", | |
SearchOptionsData = searchOptionsData, | |
Password = null, | |
Folder = "signed" | |
}; | |
var response = apiInstance.PostSearchBarcode(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var searchOptionsData = new CellsSearchBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code39Standard", | |
MatchType = SearchBarcodeOptionsData.MatchTypeEnum.Contains, | |
Text = "123456789012", | |
SearchAllPages = true | |
}; | |
var request = new PostSearchBarcodeFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/o9k7gweapq8k15l/SignedForVerificationAll.xlsx?dl=1", | |
Password = null, | |
SearchOptionsData = searchOptionsData | |
}; | |
var response = apiInstance.PostSearchBarcodeFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var searchOptionsData = new CellsSearchDigitalOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
SearchAllPages = true | |
}; | |
var request = new PostSearchDigitalRequest | |
{ | |
Name = "SignedForVerificationAll.xlsx", | |
SearchOptionsData = searchOptionsData, | |
Password = null, | |
Folder = "signed" | |
}; | |
var response = apiInstance.PostSearchDigital(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching Digital signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var searchOptionsData = new CellsSearchDigitalOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
SearchAllPages = true | |
}; | |
var request = new PostSearchDigitalFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/o9k7gweapq8k15l/SignedForVerificationAll.xlsx?dl=1", | |
Password = null, | |
SearchOptionsData = searchOptionsData | |
}; | |
var response = apiInstance.PostSearchDigitalFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching Digital signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var searchOptionsData = new CellsSearchQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "Aztec", | |
MatchType = SearchQRCodeOptionsData.MatchTypeEnum.Contains, | |
Text = "John Smith", | |
SearchAllPages = true | |
}; | |
var request = new PostSearchQRCodeRequest | |
{ | |
Name = "SignedForVerificationAll.xlsx", | |
SearchOptionsData = searchOptionsData, | |
Password = null, | |
Folder = "signed" | |
}; | |
var response = apiInstance.PostSearchQRCode(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching QRCode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var searchOptionsData = new CellsSearchQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "Aztec", | |
MatchType = SearchQRCodeOptionsData.MatchTypeEnum.Contains, | |
Text = "John Smith", | |
SearchAllPages = true | |
}; | |
var request = new PostSearchQRCodeFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/o9k7gweapq8k15l/SignedForVerificationAll.xlsx?dl=1", | |
Password = null, | |
SearchOptionsData = searchOptionsData | |
}; | |
var response = apiInstance.PostSearchQRCodeFromUrl(request); | |
Debug.Print("FleName: " + response.Signatures.ToString()); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching QRCode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignBarcodeOptionsData() | |
{ | |
BarcodeTypeName = "Code128", | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostBarcodeRequest | |
{ | |
Name = "02_pages.pdf", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null | |
}; | |
var response = apiInstance.PostBarcode(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with barcode: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignBarcodeOptionsData() | |
{ | |
BarcodeTypeName = "Code128", | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignBarcodeOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostBarcodeFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Storage = null, | |
}; | |
var response = apiInstance.PostBarcodeFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Folder Name: " + response.Folder); | |
Debug.Print("Status: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document at provided URL with barcode: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
SignOptionsCollectionData collection = new SignOptionsCollectionData(); | |
var signImageOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignImageOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
ImageGuid = "signature.jpg", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
collection.Items = new List<SignOptionsData>(); | |
collection.Items.Add(signImageOptionsData); | |
var signTextOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignTextOptionsData() | |
{ | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
collection.Items.Add(signTextOptionsData); | |
var request = new PostCollectionRequest | |
{ | |
Name = "sample2.pdf", | |
SignOptionsCollectionData = collection, | |
Password = null, | |
Folder = null, | |
}; | |
var response = apiInstance.PostCollection(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with collection: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
SignOptionsCollectionData collection = new SignOptionsCollectionData(); | |
var signImageOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignImageOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
ImageGuid = "signature.jpg", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
collection.Items = new List<SignOptionsData>(); | |
collection.Items.Add(signImageOptionsData); | |
var signTextOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignTextOptionsData() | |
{ | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
collection.Items.Add(signTextOptionsData); | |
var request = new PostCollectionFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
SignOptionsCollectionData = collection, | |
Password = null | |
}; | |
var response = apiInstance.PostCollectionFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with collection from url: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
VerifyOptionsCollectionData collection = new VerifyOptionsCollectionData(); | |
var verifyhOptionsBarCodeData = new PdfVerifyBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code39Standard", | |
MatchType = VerifyBarcodeOptionsData.MatchTypeEnum.Contains, | |
Text = "123456789012", | |
VerifyAllPages = true | |
}; | |
collection.Items = new List<VerifyOptionsData>(); | |
collection.Items.Add(verifyhOptionsBarCodeData); | |
var verifyhOptionsQRCodeData = new PdfVerifyQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "Aztec", | |
MatchType = VerifyQRCodeOptionsData.MatchTypeEnum.Contains, | |
Text = "John Smith", | |
VerifyAllPages = true | |
}; | |
collection.Items.Add(verifyhOptionsQRCodeData); | |
var request = new PostVerificationCollectionRequest | |
{ | |
Name = "sample2.pdf", | |
Password = null, | |
Folder = null, | |
VerifyOptionsCollectionData = collection | |
}; | |
var response = apiInstance.PostVerificationCollection(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verify collection: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
VerifyOptionsCollectionData collection = new VerifyOptionsCollectionData(); | |
var verifyhOptionsBarCodeData = new PdfVerifyBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code39Standard", | |
MatchType = VerifyBarcodeOptionsData.MatchTypeEnum.Contains, | |
Text = "123456789012", | |
VerifyAllPages = true | |
}; | |
collection.Items = new List<VerifyOptionsData>(); | |
collection.Items.Add(verifyhOptionsBarCodeData); | |
var verifyhOptionsQRCodeData = new PdfVerifyQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "Aztec", | |
MatchType = VerifyQRCodeOptionsData.MatchTypeEnum.Contains, | |
Text = "John Smith", | |
VerifyAllPages = true | |
}; | |
collection.Items.Add(verifyhOptionsQRCodeData); | |
var request = new PostVerificationCollectionFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/hodevye8grewfup/one-page.pdf?dl=0", | |
Password = null, | |
VerifyOptionsCollectionData = collection | |
}; | |
var response = apiInstance.PostVerificationCollectionFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verify collection from url: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignDigitalOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
CertificateGuid = "temp.pfx", | |
Password="password", | |
ImageGuid="signature.jpg", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostDigitalRequest | |
{ | |
Name = "02_pages.pdf", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
}; | |
var response = apiInstance.PostDigital(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with digital signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignDigitalOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
CertificateGuid = "temp.pfx", | |
Password = "password", | |
ImageGuid = "signature.jpg", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignDigitalOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostDigitalFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Storage = null, | |
}; | |
var response = apiInstance.PostDigitalFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document at provided URL with digital signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignImageOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
ImageGuid = "signature.jpg", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostImageRequest | |
{ | |
Name = "02_pages.pdf", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
}; | |
var response = apiInstance.PostImage(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with Image: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignImageOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
ImageGuid = "signature.jpg", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignImageOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostImageFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostImageFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document at provided URL with Image: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignQRCodeOptionsData() | |
{ | |
QRCodeTypeName = "QR", | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostQRCodeRequest | |
{ | |
Name = "02_pages.pdf", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
}; | |
var response = apiInstance.PostQRCode(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with QRCode: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignQRCodeOptionsData() | |
{ | |
QRCodeTypeName = "Aztec", | |
BorderVisiblity = true, | |
BorderDashStyle = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.BorderDashStyleEnum.Solid, | |
BorderWeight = 1, | |
Opacity = 0.8, | |
LogoGuid = "signature.jpg", | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.MarginMeasureTypeEnum.Pixels, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100, | |
OptionsType = "SignQRCodeOptionsData" | |
}; | |
var request = new PostQRCodeRequest | |
{ | |
Name = "sample2.pdf", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
Storage = "MyStorage" | |
}; | |
var response = apiInstance.PostQRCode(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with QRCode: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignQRCodeOptionsData() | |
{ | |
QRCodeTypeName = "QR", | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.MarginMeasureTypeEnum.Pixels, | |
Opacity = 0.5, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignQRCodeOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostQRCodeFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostQRCodeFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document at provided URL with QRCode: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
//var file = TestFiles.CellsDocs.FirstOrDefault(); | |
var signOptionsData = new CellsSignStampOptionsData | |
{ | |
ImageGuid = @"signed\JohnSmithSign.png", | |
SheetNumber = 1, | |
SignAllPages = false, | |
PagesSetup = new PagesSetupData() | |
{ | |
EvenPages = false, | |
FirstPage = true, | |
LastPage = false, | |
OddPages = false, | |
PageNumbers = new List<int?>() { 1 } | |
}, | |
// Size properties | |
Width = 200, | |
Height = 150, | |
SizeMeasureType = CellsSignStampOptionsData.SizeMeasureTypeEnum.Pixels, | |
// Location properties | |
RowNumber = 2, | |
ColumnNumber = 2, | |
LocationMeasureType = CellsSignStampOptionsData.LocationMeasureTypeEnum.Pixels, | |
// Alignment properties | |
HorizontalAlignment = SignStampOptionsData.HorizontalAlignmentEnum.Left, | |
VerticalAlignment = SignStampOptionsData.VerticalAlignmentEnum.Center, | |
Margin = new PaddingData { All = 5 }, | |
MarginMeasureType = CellsSignStampOptionsData.MarginMeasureTypeEnum.Pixels, | |
//Appearance properties | |
RotationAngle = 45, | |
Opacity = 0.9, | |
BackgroundColor = new Color(Color.CornflowerBlue.Web), | |
BackgroundColorCropType = SignStampOptionsData.BackgroundColorCropTypeEnum.InnerArea, | |
BackgroundImageCropType = SignStampOptionsData.BackgroundImageCropTypeEnum.MiddleArea | |
}; | |
signOptionsData.OuterLines = new List<StampLineData>(); | |
signOptionsData.OuterLines.Add( | |
new StampLineData() | |
{ | |
Text = "John Smith", | |
Font = new SignatureFontData() { FontFamily = "Arial", FontSize = 12, Bold = true, Italic = true, Underline = true }, | |
TextBottomIntent = 5, | |
TextColor = new Color(Color.Gold.Web), | |
TextRepeatType = StampLineData.TextRepeatTypeEnum.FullTextRepeat, | |
BackgroundColor = new Color(Color.BlueViolet.Web), | |
Height = 20, | |
InnerBorder = new BorderLineData() { Color = new Color(Color.DarkOrange.Web), Style = BorderLineData.StyleEnum.LongDash, Transparency = 0.5, Weight = 1.2 }, | |
OuterBorder = new BorderLineData() { Color = new Color(Color.DarkOrange.Web), Style = BorderLineData.StyleEnum.LongDashDot, Transparency = 0.7, Weight = 1.4 }, | |
Visible = true | |
}); | |
signOptionsData.InnerLines = new List<StampLineData>(); | |
signOptionsData.InnerLines.Add( | |
new StampLineData() | |
{ | |
Text = "John Smith", | |
Font = new SignatureFontData() { FontFamily = "Times New Roman", FontSize = 20, Bold = true, Italic = true, Underline = true }, | |
TextBottomIntent = 3, | |
TextColor = new Color(Color.Gold.Web), | |
TextRepeatType = StampLineData.TextRepeatTypeEnum.None, | |
BackgroundColor = new Color(Color.CornflowerBlue.Web), | |
Height = 30, | |
InnerBorder = new BorderLineData() { Color = new Color(Color.OliveDrab.Web), Style = BorderLineData.StyleEnum.LongDash, Transparency = 0.5, Weight = 1.2 }, | |
OuterBorder = new BorderLineData() { Color = new Color(Color.GhostWhite.Web), Style = BorderLineData.StyleEnum.Dot, Transparency = 0.4, Weight = 1.4 }, | |
Visible = true | |
}); | |
var request = new PostStampRequest | |
{ | |
Name = "SignedForVerificationAll.xlsx", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = "signed" | |
}; | |
var response = apiInstance.PostStamp(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignStampOptionsData(); | |
var lstStampLine = new List<Model.StampLineData>(); | |
lstStampLine.Add(new Model.StampLineData() { BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, Text = "* John Smith *", TextColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#224E6F" }, Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, Height = 20, Visible = true, TextBottomIntent = 5, TextRepeatType = GroupDocs.Signature.Cloud.Sdk.Model.StampLineData.TextRepeatTypeEnum.FullTextRepeat, OuterBorder = new GroupDocs.Signature.Cloud.Sdk.Model.BorderLineData() { Color = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, Style = GroupDocs.Signature.Cloud.Sdk.Model.BorderLineData.StyleEnum.Default, Transparency = 0.7, Weight = 2.0 }, InnerBorder = new GroupDocs.Signature.Cloud.Sdk.Model.BorderLineData() { Color = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, Style = GroupDocs.Signature.Cloud.Sdk.Model.BorderLineData.StyleEnum.Default, Transparency = 0.5, Weight = 2.0 } }); | |
signOptionsData.OuterLines = lstStampLine; | |
signOptionsData.BackgroundBrush = new GroupDocs.Signature.Cloud.Sdk.Model.LinearGradientBrushData() { StartColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color(GroupDocs.Signature.Cloud.Sdk.Model.Color.CornflowerBlue.Web), EndColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color(GroupDocs.Signature.Cloud.Sdk.Model.Color.DarkBlue.Web), Angle = 0.0, BrushType = "LinearGradientBrush" }; | |
signOptionsData.Left = 10; | |
signOptionsData.Top = 100; | |
signOptionsData.Width = 100; | |
signOptionsData.Height = 80; | |
signOptionsData.LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignStampOptionsData.LocationMeasureTypeEnum.Pixels; | |
signOptionsData.SizeMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignStampOptionsData.SizeMeasureTypeEnum.Pixels; | |
signOptionsData.RotationAngle = 0; | |
signOptionsData.HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignStampOptionsData.HorizontalAlignmentEnum.Left; | |
signOptionsData.VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignStampOptionsData.VerticalAlignmentEnum.Top; | |
signOptionsData.Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { All = 10, Left = 10, Right = 10, Bottom = 10, Top = 10 }; | |
signOptionsData.MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignStampOptionsData.MarginMeasureTypeEnum.Pixels; | |
signOptionsData.SignAllPages = false; | |
signOptionsData.BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }; | |
signOptionsData.DocumentPageNumber = 1; | |
signOptionsData.PagesSetup = new GroupDocs.Signature.Cloud.Sdk.Model.PagesSetupData() { FirstPage = true, LastPage = false, OddPages = false, EvenPages = false }; | |
signOptionsData.OptionsType = "SlidesSignStampOptionsData"; | |
var request = new PostStampRequest | |
{ | |
Name = "one-page.pptx", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
Storage = "MyStorage" | |
}; | |
var response = apiInstance.PostStamp(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with stamp: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
//var file = TestFiles.CellsDocs.FirstOrDefault(); | |
var signOptionsData = new CellsSignStampOptionsData | |
{ | |
ImageGuid = @"signed\JohnSmithSign.png", | |
SheetNumber = 1, | |
SignAllPages = false, | |
PagesSetup = new PagesSetupData() | |
{ | |
EvenPages = false, | |
FirstPage = true, | |
LastPage = false, | |
OddPages = false, | |
PageNumbers = new List<int?>() { 1 } | |
}, | |
// Size properties | |
Width = 200, | |
Height = 150, | |
SizeMeasureType = CellsSignStampOptionsData.SizeMeasureTypeEnum.Pixels, | |
// Location properties | |
RowNumber = 2, | |
ColumnNumber = 2, | |
LocationMeasureType = CellsSignStampOptionsData.LocationMeasureTypeEnum.Pixels, | |
// Alignment properties | |
HorizontalAlignment = SignStampOptionsData.HorizontalAlignmentEnum.Left, | |
VerticalAlignment = SignStampOptionsData.VerticalAlignmentEnum.Center, | |
Margin = new PaddingData { All = 5 }, | |
MarginMeasureType = CellsSignStampOptionsData.MarginMeasureTypeEnum.Pixels, | |
//Appearance properties | |
RotationAngle = 45, | |
Opacity = 0.9, | |
BackgroundColor = new Color(Color.CornflowerBlue.Web), | |
BackgroundColorCropType = SignStampOptionsData.BackgroundColorCropTypeEnum.InnerArea, | |
BackgroundImageCropType = SignStampOptionsData.BackgroundImageCropTypeEnum.MiddleArea | |
}; | |
signOptionsData.OuterLines = new List<StampLineData>(); | |
signOptionsData.OuterLines.Add( | |
new StampLineData() | |
{ | |
Text = "John Smith", | |
Font = new SignatureFontData() { FontFamily = "Arial", FontSize = 12, Bold = true, Italic = true, Underline = true }, | |
TextBottomIntent = 5, | |
TextColor = new Color(Color.Gold.Web), | |
TextRepeatType = StampLineData.TextRepeatTypeEnum.FullTextRepeat, | |
BackgroundColor = new Color(Color.BlueViolet.Web), | |
Height = 20, | |
InnerBorder = new BorderLineData() { Color = new Color(Color.DarkOrange.Web), Style = BorderLineData.StyleEnum.LongDash, Transparency = 0.5, Weight = 1.2 }, | |
OuterBorder = new BorderLineData() { Color = new Color(Color.DarkOrange.Web), Style = BorderLineData.StyleEnum.LongDashDot, Transparency = 0.7, Weight = 1.4 }, | |
Visible = true | |
}); | |
signOptionsData.InnerLines = new List<StampLineData>(); | |
signOptionsData.InnerLines.Add( | |
new StampLineData() | |
{ | |
Text = "John Smith", | |
Font = new SignatureFontData() { FontFamily = "Times New Roman", FontSize = 20, Bold = true, Italic = true, Underline = true }, | |
TextBottomIntent = 3, | |
TextColor = new Color(Color.Gold.Web), | |
TextRepeatType = StampLineData.TextRepeatTypeEnum.None, | |
BackgroundColor = new Color(Color.CornflowerBlue.Web), | |
Height = 30, | |
InnerBorder = new BorderLineData() { Color = new Color(Color.OliveDrab.Web), Style = BorderLineData.StyleEnum.LongDash, Transparency = 0.5, Weight = 1.2 }, | |
OuterBorder = new BorderLineData() { Color = new Color(Color.GhostWhite.Web), Style = BorderLineData.StyleEnum.Dot, Transparency = 0.4, Weight = 1.4 }, | |
Visible = true | |
}); | |
var request = new PostStampFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/enuoff7umakf6es/test.xlsx?dl=1", | |
Password = null, | |
SignOptionsData = signOptionsData | |
}; | |
var response = apiInstance.PostStampFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Status); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when searching barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfSignTextOptionsData() | |
{ | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostTextRequest | |
{ | |
Name = "02_pages.pdf", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
}; | |
var response = apiInstance.PostText(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with Text: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignTextOptionsData(); | |
signOptionsData.BorderTransparency = 0.0; | |
signOptionsData.BorderWeight = 1; | |
signOptionsData.BackgroundTransparency = 0; | |
signOptionsData.SignatureImplementation = GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignTextOptionsData.SignatureImplementationEnum.TextStamp; | |
signOptionsData.TextHorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignTextOptionsData.TextHorizontalAlignmentEnum.Left; | |
signOptionsData.TextVerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignTextOptionsData.TextVerticalAlignmentEnum.Top; | |
signOptionsData.Left = 10; | |
signOptionsData.Top = 100; | |
signOptionsData.Width = 100; | |
signOptionsData.Height = 80; | |
signOptionsData.LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels; | |
signOptionsData.SizeMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.SizeMeasureTypeEnum.Pixels; | |
signOptionsData.Stretch = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.StretchEnum.None; | |
signOptionsData.RotationAngle = 0; | |
signOptionsData.HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Left; | |
signOptionsData.VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Top; | |
signOptionsData.Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { All = 10, Left = 10, Right = 10, Bottom = 10, Top = 10 }; | |
signOptionsData.MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels; | |
signOptionsData.Text = "John Smith"; | |
signOptionsData.SignAllPages = false; | |
signOptionsData.Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }; | |
signOptionsData.BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }; | |
signOptionsData.BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }; | |
signOptionsData.ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }; | |
signOptionsData.DocumentPageNumber = 1; | |
signOptionsData.PagesSetup = new GroupDocs.Signature.Cloud.Sdk.Model.PagesSetupData() { FirstPage = true, LastPage = false, OddPages = false, EvenPages = false }; | |
signOptionsData.OptionsType = "SlidesSignTextOptionsData"; | |
var request = new PostTextRequest | |
{ | |
Name = "one-page.pptx", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
Storage = "MyStorage" | |
}; | |
var response = apiInstance.PostText(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with Text: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignTextOptionsData(); | |
signOptionsData.BorderTransparency = 0.0; | |
signOptionsData.BorderWeight = 1; | |
signOptionsData.BackgroundTransparency = 0; | |
signOptionsData.SignatureImplementation = GroupDocs.Signature.Cloud.Sdk.Model.SlidesSignTextOptionsData.SignatureImplementationEnum.TextStamp; | |
signOptionsData.BackgroundBrush = new GroupDocs.Signature.Cloud.Sdk.Model.LinearGradientBrushData() { StartColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color(GroupDocs.Signature.Cloud.Sdk.Model.Color.CornflowerBlue.Web), EndColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color(GroupDocs.Signature.Cloud.Sdk.Model.Color.DarkBlue.Web), Angle = 0.0, BrushType = "LinearGradientBrush" }; | |
signOptionsData.Left = 10; | |
signOptionsData.Top = 100; | |
signOptionsData.Width = 100; | |
signOptionsData.Height = 80; | |
signOptionsData.LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels; | |
signOptionsData.SizeMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.SizeMeasureTypeEnum.Pixels; | |
signOptionsData.Stretch = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.StretchEnum.None; | |
signOptionsData.RotationAngle = 0; | |
signOptionsData.HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Left; | |
signOptionsData.VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Top; | |
signOptionsData.Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { All = 10, Left = 10, Right = 10, Bottom = 10, Top = 10 }; | |
signOptionsData.MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels; | |
signOptionsData.Text = "John Smith"; | |
signOptionsData.SignAllPages = false; | |
signOptionsData.Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }; | |
signOptionsData.BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }; | |
signOptionsData.BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }; | |
signOptionsData.ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }; | |
signOptionsData.DocumentPageNumber = 1; | |
signOptionsData.PagesSetup = new GroupDocs.Signature.Cloud.Sdk.Model.PagesSetupData() { FirstPage = true, LastPage = false, OddPages = false, EvenPages = false }; | |
signOptionsData.OptionsType = "SlidesSignTextOptionsData"; | |
var request = new PostTextRequest | |
{ | |
Name = "one-page.pptx", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
Storage = "MyStorage" | |
}; | |
var response = apiInstance.PostText(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with Text: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.ImagesSignTextOptionsData(); | |
signOptionsData.BorderTransparency = 0.0; | |
signOptionsData.BorderWeight = 1; | |
signOptionsData.BackgroundTransparency = 0; | |
signOptionsData.SignatureImplementation = GroupDocs.Signature.Cloud.Sdk.Model.ImagesSignTextOptionsData.SignatureImplementationEnum.TextAsImage; | |
signOptionsData.TextHorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.ImagesSignTextOptionsData.TextHorizontalAlignmentEnum.Left; | |
signOptionsData.TextVerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.ImagesSignTextOptionsData.TextVerticalAlignmentEnum.Top; | |
signOptionsData.Left = 10; | |
signOptionsData.Top = 100; | |
signOptionsData.Width = 100; | |
signOptionsData.Height = 80; | |
signOptionsData.LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels; | |
signOptionsData.SizeMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.SizeMeasureTypeEnum.Pixels; | |
signOptionsData.Stretch = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.StretchEnum.None; | |
signOptionsData.RotationAngle = 0; | |
signOptionsData.HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Left; | |
signOptionsData.VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Top; | |
signOptionsData.Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { All = 10, Left = 10, Right = 10, Bottom = 10, Top = 10 }; | |
signOptionsData.MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels; | |
signOptionsData.Text = "John Smith"; | |
signOptionsData.SignAllPages = false; | |
signOptionsData.Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }; | |
signOptionsData.BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }; | |
signOptionsData.BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }; | |
signOptionsData.ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }; | |
signOptionsData.DocumentPageNumber = 1; | |
signOptionsData.PagesSetup = new GroupDocs.Signature.Cloud.Sdk.Model.PagesSetupData() { FirstPage = true, LastPage = false, OddPages = false, EvenPages = false }; | |
signOptionsData.OptionsType = "ImagesSignTextOptionsData"; | |
var request = new PostTextRequest | |
{ | |
Name = "One-Page.jpg", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
Folder = null, | |
Storage = "MyStorage" | |
}; | |
var response = apiInstance.PostText(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document with Text: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var signOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsSignTextOptionsData() | |
{ | |
BackgroundColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#fcfcfc" }, | |
BorderColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
DocumentPageNumber = 1, | |
Font = new GroupDocs.Signature.Cloud.Sdk.Model.SignatureFontData() { Bold = true, FontFamily = "Arial", FontSize = 12, Italic = true, Underline = false }, | |
ForeColor = new GroupDocs.Signature.Cloud.Sdk.Model.Color() { Web = "#364E6F" }, | |
Height = 80, | |
HorizontalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.HorizontalAlignmentEnum.Right, | |
Left = 10, | |
LocationMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.LocationMeasureTypeEnum.Pixels, | |
Margin = new GroupDocs.Signature.Cloud.Sdk.Model.PaddingData() { Left = 10, Right = 10, Bottom = 10, Top = 10 }, | |
MarginMeasureType = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.MarginMeasureTypeEnum.Pixels, | |
SignAllPages = false, | |
Text = "1234567890", | |
Top = 100, | |
VerticalAlignment = GroupDocs.Signature.Cloud.Sdk.Model.SignTextOptionsData.VerticalAlignmentEnum.Center, | |
Width = 100 | |
}; | |
var request = new PostTextFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
SignOptionsData = signOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostTextFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when signing document at provided URL with Text: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var request = new GetBarcodesRequest(); | |
var response = apiInstance.GetBarcodes(request); | |
Debug.Print("Count: "+response.BarcodeTypes.Count); | |
foreach (var entry in response.BarcodeTypes) | |
Debug.Print(entry.Name); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when getting Barcodes list: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var request = new GetSupportedFormatsRequest(); | |
// Get supported file formats | |
var response = apiInstance.GetSupportedFormats(request); | |
foreach (var format in response.Formats) | |
{ | |
Debug.Print(format.ToString()); | |
} | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when calling SignatureApi GetSupportedFileFormats: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var request = new GetQRCodesRequest(); | |
var response = apiInstance.GetQRCodes(request); | |
Debug.Print("Count: " + response.QRCodeTypes.Count); | |
foreach (var entry in response.QRCodeTypes) | |
Debug.Print("QRCode: "+entry.Name); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when getting SupportedQRcodes list: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfVerifyDigitalOptionsData() | |
{ | |
DocumentPageNumber= 1, | |
Password = "password", | |
CertificateGuid = "temp.pfx", | |
}; | |
var request = new PostVerificationDigitalRequest | |
{ | |
Name = "Signed_Digital.pdf", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
Folder = "signed" | |
}; | |
var response = apiInstance.PostVerificationDigital(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifying Digital signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfVerifyBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code128", | |
Text = "1234567890", | |
VerifyAllPages = false | |
}; | |
var request = new PostVerificationBarcodeRequest | |
{ | |
Name = "02_pages.pdf", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
Folder = "Output" | |
}; | |
var response = apiInstance.PostVerificationBarcode(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifying barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsVerifyBarcodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
BarcodeTypeName = "Code128", | |
Text = "1234567890", | |
VerifyAllPages = false | |
}; | |
var request = new PostVerificationBarcodeFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostVerificationBarcodeFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifying barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsVerifyDigitalOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
CertificateGuid="temp.pfx", | |
Password="password" | |
}; | |
var request = new PostVerificationDigitalFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostVerificationDigitalFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifying barcode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfVerifyQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName="QR", | |
Text = "1234567890", | |
VerifyAllPages = false | |
}; | |
var request = new PostVerificationQRCodeRequest | |
{ | |
Name = "02_pages.pdf", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
Folder = "Output" | |
}; | |
var response = apiInstance.PostVerificationQRCode(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifiying QRCode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsVerifyQRCodeOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
QRCodeTypeName = "QR", | |
Text = "1234567890", | |
VerifyAllPages = false | |
}; | |
var request = new PostVerificationQRCodeFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostVerificationQRCodeFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifiying QRCode signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.PdfVerifyTextOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Text = "1234567890", | |
VerifyAllPages = false | |
}; | |
var request = new PostVerificationTextRequest | |
{ | |
Name = "02_pages.pdf", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
Folder = "Output" | |
}; | |
var response = apiInstance.PostVerificationText(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifying Text signature: " + e.Message); | |
} |
This file contains 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
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). | |
var configuration = new Configuration | |
{ | |
AppSid = Sid, | |
AppKey = Key | |
}; | |
var apiInstance = new SignatureApi(configuration); | |
try | |
{ | |
var verifyOptionsData = new GroupDocs.Signature.Cloud.Sdk.Model.WordsVerifyTextOptionsData() | |
{ | |
DocumentPageNumber = 1, | |
Text = "1234567890", | |
VerifyAllPages = false | |
}; | |
var request = new PostVerificationTextFromUrlRequest | |
{ | |
Url = "https://www.dropbox.com/s/bzx1xm68zd0c910/PieChart.docx?dl=1", | |
VerifyOptionsData = verifyOptionsData, | |
Password = null, | |
}; | |
var response = apiInstance.PostVerificationTextFromUrl(request); | |
Debug.Print("FleName: " + response.FileName); | |
Debug.Print("Result: " + response.Result); | |
} | |
catch (Exception e) | |
{ | |
Debug.Print("Exception when verifying Text signature: " + e.Message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment