If you became a customer of the Syncfusion Reporting Platform or the Report Viewer, Report Designer, or Report Writer components before October 2019 and have questions related to those products, you can request support through our forum system. However, please note that this support system is only for existing customers who are still using the Syncfusion Reporting Platform or its components and not for new customers looking for reporting products from Syncfusion.
For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion for its reporting solutions. Our team will be happy to assist you with any questions you may have.
Thank you for choosing Syncfusion for your reporting needs.
I'm trying to incorporate drawn annotations to a page. To do that, I'm putting a canvas object, letting the user do the drawing on the canvas, and then transfering the drawing contents on to the PDF file. The action I describe above works fine. However, when I try to transfer the drawings to the PDF that is being viewed on-screen, I'm having trouble putting them in the visually correct location, especially if the PDF is zoomed in.
For instance, at regular zoom, I can compute an X-offset value, and then compute the correct Y-value and then put the annotation in the expected place. However, when the PDF viewer is zoomed in, the drawing annotation appears off to the side and to the bottom. I tried incorporating zoom factors into the calculations, and could not get it right under zooming conditions. It looks like if I could get a reference to the top/bottom/any location on the zoomed view, I'd be able to derive the offset from there but I could not figure it out.
On a separate note, I could not get ZoomTo() method to work programmatically for a PDF loaded into the viewer.
I have a function that does the drawing, and it is pasted below. Can you please let me know whether I'm on the correct path, and if there's something that I'm missing re: zoomed PDF object? If nothing obvious, I can package the contents in a separate project and send over.
private void DrawLineOnPDF()
//draw the line on the PDF loaded in the memory, based on the lines drawn on the canvas
PdfPen redPen = new PdfPen(PdfBrushes.Red, m_CurrentDrawingSize);
//get the scaling factor to convert position on page to position on the PDF page