public void AddPDFFieldsTest() { var list = new List <PDFField>(); list.Add(new PdfTextField() { text = "HELLOOOOOOOOO", x = 150, y = 100, width = 130, height = 200, fontSize = 25, color = "#FF00008B", showborder = true, page = 1 }); list.Add(new PdfTextField() { text = "Test2OOOO", x = 210, y = 150, width = 130, height = 200, fontSize = 15, color = "#FF00008B", showborder = true, page = 1 }); PDFUtility.AddPDFFields(@"D:\temp\testSignatureService\BG.pdf", @"D:\temp\testSignatureService\BG_Out.pdf", list); }
public object AddFields([FromBody] AddFieldsRequest request) { var fields = request.fields; if (!string.IsNullOrEmpty(request.template_id)) { fields = ContentManager.GetInstance().GetTemplate(request.template_id).fields; } if (request.bytes != null) { return(PDFUtility.AddPDFFields(request.bytes, fields)); } else { return(PDFUtility.AddPDFFields(request.path_in, request.path_out, fields)); } }
public void TextWithSignatureTest() { List <PDFField> list = GetTestList(); PDFUtility.AddPDFFields(@"D:\temp\testSignatureService\BG.pdf", @"D:\temp\testSignatureService\BG_Out_text_signature.pdf", list); }