# Locating signature on page with different measure units  This article explains using measure units to locate signature and its size on document page with GroupDocs.Signature API. [**GroupDocs.Signature**](https://products.groupdocs.com/signature/net) supports locating signature on document page with different measure units. Enumeration [MeasureType](https://reference.groupdocs.com/signature/net/groupdocs.signature.domain/measuretype) handles following types * [MeasureType.Pixels](https://reference.groupdocs.com/signature/net/groupdocs.signature.domain/measuretype) allows to locate signature position and size with pixels (default value) * [MeasureType.Millimeters](https://reference.groupdocs.com/signature/net/groupdocs.signature.domain/measuretype) allows to locate signature on page and setup size by setting millimeters * [MeasureType.Percents](https://reference.groupdocs.com/signature/net/groupdocs.signature.domain/measuretype) allows to locate signature position, size with percentage of page size    Here are the steps to locate and size signature area with different measure unit types: * Set property [LocationMeasureType](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/locationmeasuretype) with of one values above to specify how to implement values in properties [Left](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/left), [Top](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/top) * Set property [SizeMeasureType](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/sizemeasuretype) with of one values above to specify how to implement size of signature values in properties [Width](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/width), [Height](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/height) * Set property [MarginMeasureType](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/marginmeasuretype) with of one values above to specify how to implement values in property [Margin](https://reference.groupdocs.com/signature/net/groupdocs.signature.options/imagesignoptions/margin) ## Set signature positioning in millimeters This example shows how to specify positioning in millimeters. ```csharp using (Signature signature = new Signature("sample.docx")) { // create barcode option with predefined barcode text BarcodeSignOptions options = new BarcodeSignOptions("12345678") { // setup Barcode encoding type EncodeType = BarcodeTypes.Code128, // set signature position in absolute position LocationMeasureType = MeasureType.Millimeters, Left = 40, Top = 50, // set signature area in millimeters SizeMeasureType = MeasureType.Millimeters, Width = 20, Height = 10, // set margin in millimeters MarginMeasureType = MeasureType.Millimeters, Margin = new Padding() { Left =5, Top = 5, Right = 5 }, }; // sign document to file signature.Sign("signedSample.docx", options); } ``` ## Set signature positioning in percents This example shows how to set different positioning properties in percentage. ```csharp using (Signature signature = new Signature("sample.pdf")) { // create barcode option with predefined barcode text BarcodeSignOptions options = new BarcodeSignOptions("12345678") { // setup Barcode encoding type EncodeType = BarcodeTypes.Code128, // set signature position in absolute position LocationMeasureType = MeasureType.Percents, Left = 5, Top = 5, // set signature area in millimeters SizeMeasureType = MeasureType.Percents, Width = 10, Height = 5, // set margin in millimeters MarginMeasureType = MeasureType.Percents, Margin = new Padding() { Left = 1, Top = 1, Right = 1 }, }; // sign document to file signature.Sign("signed.docx", options); } ``` ## More resources ### GitHub Examples You may easily run the code above and see the feature in action in our GitHub examples: * [GroupDocs.Signature for .NET examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET) * [GroupDocs.Signature for Java examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java) * [Document Signature for .NET MVC UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET-MVC) * [Document Signature for .NET App WebForms UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-.NET-WebForms) * [Document Signature for Java App Dropwizard UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Dropwizard) * [Document Signature for Java Spring UI Example](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Java-Spring) ### Free Online Apps Along with the full-featured .NET library, we provide simple but powerful free online apps. To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the **[GroupDocs.Signature App Product Family](https://products.groupdocs.app/signature/family)**.