
Without Annotations, the signature tool will be included directly in the main toolbar by default. If your license includes Annotations, then the signature tool can be found with the other annotation tools. Without a signature form field, users can add signatures by selecting the signature tool button.


If you’re using PSPDFKit with Forms, users can show the signature creation modal view by tapping a signature form field in the document. GetPdfFragment().addAnnotationToPage(annotation, false) Using the PSPDFKit User Interface Mark this image annotation as a signature. final StampAnnotation annotation = new StampAnnotation( 0, tIsSignature( true)įinal Bitmap bitmap = codeFile( "my-signature.png") val annotation = StampAnnotation( 0, RectF( 50f, 440.0f, 500f, 0.0f), bitmap) Val bitmap = codeFile( "my-signature.png")

GetPdfFragment().addAnnotationToPage(annotation, false) įor example, to create an image signature: Mark this ink annotation as a signature. final List line = Arrays.asList(ĪtLines(Collections.singletonList(line)) This example code is just hardcoding a stroke with three points. For example, this would be loaded from user input on another device. final InkAnnotation annotation = new InkAnnotation( 0) PdfFragment?.addAnnotationToPage( annotation, false) final PdfFragment pdfFragment =.

lor = Color.REDĪnnotation.lineWidth = 3f // Set the stroke data. If your license includes Electronic Signatures but not Annotations, then signatures are the only type of annotation that can be modified: Modifications to ink or image annotations where isSignature is false, or to annotations of any other type, will be disallowed. Signature annotations can be created, updated, and deleted if your license includes either the Annotations component or the Electronic Signatures component. Thus, to programmatically create signatures, you can create instances of InkAnnotation or StampAnnotation, call setIsSignature(true) on them, and add them to the document via PdfFragment#addAnnotationToPage(). Signatures can be ink or image annotations with the isSignature property set to true. Adding a Signature ProgrammaticallyĮlectronic signatures are modeled using annotations, so they may sometimes be referred to as signature annotations. This guide covers how to add an electronic signature (eSignature) to a document, both using the PSPDFKit user interface and programmatically. Adding Electronic Signatures to PDFs on Android
