

/ Load an existing document (*.docx, *.rtf, *.pdf, *.html, *.txt, *.pdf) and save it in a PDF document with the digital signature. = signaturePict Īs the result, you will get the digitally signed Visual representation of digital signature. = Placeholder where signature should be visualized. Additional information about the certificate. The reason is to prevent unauthorized the using of the certificate. Each certificate is protected by a password. PdfSaveOptions options = new PdfSaveOptions() New Size(20, 10, LengthUnit.Millimeter)) Īnd the last step is to point of a certificate (*.pfx) and its characteristics: Password of the certificate, New VerticalPosition(14.5, LengthUnit.Centimeter, VerticalPositionAnchor.Page),

New HorizontalPosition(4.5, LengthUnit.Centimeter, HorizontalPositionAnchor.Page), Picture signaturePict = new Picture(dc, Signature picture will be positioned: Picture which symbolizes a handwritten signature. Paragraph firstPar = dc.GetChildElements(true).OfType().FirstOrDefault() Īdd a handwritten picture for our digital signature and specify the position on the page: Find a first paragraph and insert our Shape inside it. ((FloatingLayout)signatureShape.Layout).WrappingStyle = WrappingStyle.InFrontOfText New VerticalPosition(0f, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin), new Size(1, 1))) Shape signatureShape = new Shape(dc, Layout.Floating(new HorizontalPosition(0f, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin),

Place the Shape into top-left corner (0 mm, 0 mm) of String loadPath = a new invisible Shape for the digital signature. First of all, you need to point an existing document (*.docx, *.rtf, *.pdf, *.html, *.txt, etc) which you
