Appending Date and Time with author name in annotation yellow text popup
ashishkanojiay999 opened this issue · 0 comments
ashishkanojiay999 commented
Hi Team,
We have the feature to show yellow text annotation popup in ng2 Pdf Viewer. I want to append Date and Time also with text in annotation text yellow popup, I am trying to implement like below code but getting issue when saving the annotation in DB.
pdfDocFactory.createTextAnnotation({
page: annot.PageNumber - 1,
rect: [annot.XCoordinate, annot.YCoordinate, annot.XCoordinate, annot.YCoordinate],
//author: userName,//${annot.AuthorName}, ${new DatePipe('en-GB').transform(annot.CreatedDate, 'MMM d, y, h:mm:ss a')}
,
icon: AnnotationIcon.Help
});
Can you pls help me out to use correct way to append date and time with author.