Hi Matt,
Thank your for your response.
we have implemented the static text when printing the document & following code in the basereadercontrol.js,
doc.loadCanvasAsync(pageNumber - 1, zoom, rotation, function(canvas) {
var ctx = canvas.getContext('2d');
// transform the canvas context so that annotations are drawn in the correct location
var t = window.GetPageMatrix(zoom, annotationRotationOffset, pageInfo);
ctx.setTransform(t.m_a, t.m_b, t.m_c, t.m_d, t.m_h, t.m_v);
// me.docViewer.getAnnotationManager().drawAnnotations(2, canvas);
var xfdfString = me.docViewer.getAnnotationManager().exportAnnotations();
var annotManager = me.docViewer.getAnnotationManager();
var fieldManager = annotManager.getFieldManager();
var x = (canvas.width / 2) - 260;
var y = (canvas.height / 2) - 220;
var space = 0;
var lines = 'sample first name text';
ctx.font = '20px san-serif';
ctx.fillText(lines, x, y);
dataurl = canvas.toDataURL();
Currently I am getting the form data filled in webviewer but I want to print the filled data text.
i have attached the before printed document and after printed document for your reference.
Can you please tell me how to get the dynamic form fill data & control postion(x,y) based on the document?.
Please help me ASAP
Thanks