File tree Expand file tree Collapse file tree 1 file changed +26
-25
lines changed
apps/OpenSignServer/cloud/parsefunction/pdf Expand file tree Collapse file tree 1 file changed +26
-25
lines changed Original file line number Diff line number Diff line change @@ -458,17 +458,17 @@ export default async function GenerateCertificate(docDetails) {
458
458
} ) ;
459
459
460
460
currentPage . drawText ( 'Viewed on :' , {
461
- x : half ,
461
+ x : half + 55 ,
462
462
y : yPosition2 ,
463
- size : text ,
463
+ size : timeText ,
464
464
font : timesRomanFont ,
465
465
color : textKeyColor ,
466
466
} ) ;
467
467
468
468
currentPage . drawText ( `${ new Date ( x . ViewedOn ) . toUTCString ( ) } ` , {
469
- x : half + 75 ,
469
+ x : half + 112 ,
470
470
y : yPosition2 ,
471
- size : text ,
471
+ size : timeText ,
472
472
font : timesRomanFont ,
473
473
color : textValueColor ,
474
474
} ) ;
@@ -490,17 +490,17 @@ export default async function GenerateCertificate(docDetails) {
490
490
} ) ;
491
491
492
492
currentPage . drawText ( 'Signed on :' , {
493
- x : half ,
494
- y : yPosition3 ,
495
- size : text ,
493
+ x : half + 55 ,
494
+ y : yPosition3 + 5 ,
495
+ size : timeText ,
496
496
font : timesRomanFont ,
497
497
color : textKeyColor ,
498
498
} ) ;
499
499
500
500
currentPage . drawText ( `${ new Date ( x . SignedOn ) . toUTCString ( ) } ` , {
501
- x : half + 70 ,
502
- y : yPosition3 ,
503
- size : text ,
501
+ x : half + 108 ,
502
+ y : yPosition3 + 5 ,
503
+ size : timeText ,
504
504
font : timesRomanFont ,
505
505
color : textValueColor ,
506
506
} ) ;
@@ -520,22 +520,23 @@ export default async function GenerateCertificate(docDetails) {
520
520
font : timesRomanFont ,
521
521
color : textValueColor ,
522
522
} ) ;
523
- currentPage . drawText ( 'Security level :' , {
524
- x : half ,
525
- y : yPosition4 ,
526
- size : text ,
527
- font : timesRomanFont ,
528
- color : textKeyColor ,
529
- } ) ;
530
-
531
- currentPage . drawText ( `Email, OTP Auth` , {
532
- x : half + 90 ,
533
- y : yPosition4 ,
534
- size : text ,
535
- font : timesRomanFont ,
536
- color : textValueColor ,
537
- } ) ;
538
523
524
+ if ( IsEnableOTP ) {
525
+ currentPage . drawText ( 'Security level :' , {
526
+ x : half + 55 ,
527
+ y : yPosition4 + 10 ,
528
+ size : timeText ,
529
+ font : timesRomanFont ,
530
+ color : textKeyColor ,
531
+ } ) ;
532
+ currentPage . drawText ( `Email, OTP Auth` , {
533
+ x : half + 125 ,
534
+ y : yPosition4 + 10 ,
535
+ size : timeText ,
536
+ font : timesRomanFont ,
537
+ color : textValueColor ,
538
+ } ) ;
539
+ }
539
540
currentPage . drawText ( 'Signature :' , {
540
541
x : 30 ,
541
542
y : yPosition5 ,
You can’t perform that action at this time.
0 commit comments