@@ -30,13 +30,52 @@ message PdfiumSignRequestStreamP {
3030 optional string contact_information = 15 ;
3131 }
3232}
33+
34+ message GetDataToSignRequestStreamP {
35+ PdfDocumentP document = 1 ;
36+ optional int32 page_index = 2 ;
37+ PdfiumSignaturePermissionsP signature_permission = 3 ;
38+ string internal_name = 4 ;
39+ string signing_name = 5 ;
40+ string signing_contact = 6 ;
41+ string signing_location = 7 ;
42+ string filter = 8 ;
43+ string sub_filter = 9 ;
44+ int32 sign_placeholder_len = 10 ;
45+ bytes img_bytes = 11 ;
46+ bytes img_alpha = 12 ;
47+ int32 img_x = 13 ;
48+ int32 img_y = 14 ;
49+ int32 img_wight = 15 ;
50+ int32 img_height = 16 ;
51+ int32 img_d_width = 17 ;
52+ int32 img_d_height = 18 ;
53+ int32 bytes_per_pixel = 19 ;
54+ int32 is_jpeg = 20 ;
55+ }
56+
3357message PdfiumSignResultP {
3458 oneof result_or_exception {
3559 int32 result = 1 ;
3660 RemoteExceptionP exception = 2 ;
3761 }
3862}
3963
64+ message GetDataToSignResultP {
65+ oneof result_or_exception {
66+ DataToSignResultP result = 1 ;
67+ RemoteExceptionP exception = 2 ;
68+ }
69+ }
70+
71+ message DataToSignResultP {
72+ bytes data_to_sign = 1 ;
73+ bytes pdf_bytes = 2 ;
74+ int32 sign_start_in_bytes = 3 ;
75+ int32 sign_end_in_bytes = 4 ;
76+ int32 signature_index = 5 ;
77+ }
78+
4079message PdfiumRemoveSignaturesRequestP {
4180 PdfDocumentP document = 1 ;
4281}
0 commit comments