SetSignProcessAppearanceTemplate

ความปลอดภัยและลายเซ็น

คำอธิบาย

ตั้งค่าเทมเพลตรูปลักษณ์ข้อความที่มองเห็นได้ให้กระบวนการลงลายเซ็นดิจิทัล

เทมเพลตถูกคลี่หนึ่งครั้งตอนผลิตลายเซ็น, layout ชุดเดียวจึงใช้ซ้ำกับเมทาดาทาการลงลายเซ็นกับค่าแอปพลิเคชันต่างกันได้

ไวยากรณ์

Delphi

Function TPDFlib.SetSignProcessAppearanceTemplate(SignProcessID: Integer; Const TemplateText, SignerName, DateFormat: WideString; FontSize, FontRed, FontGreen, FontBlue: Double): Integer;

ActiveX

Function PDFlib::SetSignProcessAppearanceTemplate(SignProcessID As Long, TemplateText As String, SignerName As String, DateFormat As String, FontSize As Double, FontRed As Double, FontGreen As Double, FontBlue As Double) As Long

DLL

int DLSetSignProcessAppearanceTemplate(int InstanceID, int SignProcessID, const wchar_t * TemplateText, const wchar_t * SignerName, const wchar_t * DateFormat, double FontSize, double FontRed, double FontGreen, double FontBlue);

พารามิเตอร์

SignProcessIDValue returned by a NewSignProcessFrom* function
TemplateTextข้อความกับการขึ้นบรรทัดใหม่ซึ่งมี placeholder ในตัวอย่าง {signer}, {reason}, {location}, {contact}, {date}, {field} และ {page} บวกชื่อกำหนดเองที่ลงทะเบียนด้วย SetSignProcessAppearanceVariable
SignerNameValue substituted for {signer}
DateFormatDelphi date and time format used by {date}, or an empty string for yyyy-mm-dd hh:nn:ss
FontSizeขนาดฟอนต์หน่วยพอยต์ หรือ 0 เพื่อจัดบล็อกข้อความพอดีอัตโนมัติ
FontRed, FontGreen, FontBlueองค์ประกอบสีข้อความในช่วง 0..1

ค่าที่ส่งกลับ

1ยอมรับเทมเพลตแล้ว
0process id, ไวยากรณ์วงเล็บปีกกา, ชื่อ placeholder, ความยาวเทมเพลต, จำนวน placeholder หรือรูปแบบวันที่ ไม่ถูกต้อง

หมายเหตุ

Use {{ and }} to emit literal bracesA template can contain up to 32,768 characters and 256 placeholder occurrences

ตัวแปรกำหนดเองที่ขาดหายคลี่เป็นข้อความว่าง ขณะที่ตัวแปรในตัวสะท้อนกระบวนการ sign ปัจจุบันเสมอการเรียก SetSignProcessAppearanceText ภายหลังจะเลือกรูปลักษณ์แบบต่อบรรทัดยุคเก่ากลับมา

รูปฟิลด์ยังมีสิทธิ์เหนือกว่าอยู่ และกระบวนการ timestamp เอกสารไม่เรนเดอร์รูปลักษณ์ข้อความ

ดูเพิ่มเติม

SetSignProcessAppearanceVariable, SetSignProcessAppearanceText, SetSignProcessFieldBounds