-
Notifications
You must be signed in to change notification settings - Fork 5
Added sample for E signing in PDF document using WPF PDFViewer #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signature/Add_ESign/Data/ESign.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need this file ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need this file ? Can you remove it
} | ||
|
||
} | ||
private void ResizeImage(string inputPath, string outputPath, int width, int height) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this method
} | ||
} | ||
string inputPath = "../../../Data/John.png"; // Replace with your image path | ||
string outputPath1 = "../../../Data/Out.png"; // Desired output path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide proper name for the image
int pageIndex = PDFViewer.CurrentPageIndex - 1; | ||
if (addSignature && pageIndex >= 0) | ||
{ | ||
int width = 200; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move the code for creating images to separate folder.
|
||
private void CreateSignatureImage() | ||
{ | ||
int pageIndex = PDFViewer.CurrentPageIndex - 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even split "CreateSignatureImage" method , as text image creation as one and combining two images as another.
Added sample for E signing in PDF document using WPF PDFViewer