PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
How I draw on the PDFSharp PagePreview control https://forum.pdfsharp.net/viewtopic.php?f=2&t=2143 |
Page 1 of 1 |
Author: | gm1968 [ Tue Sep 18, 2012 1:13 pm ] |
Post subject: | How I draw on the PDFSharp PagePreview control |
Hello, I have a PagePreview control on my form.I would like to draw on this control, but have no idea how.(I have no problem to create a PDF with PDFSharp). Someone has a code example for me? ![]() |
Author: | Thomas Hoevel [ Tue Sep 18, 2012 1:31 pm ] |
Post subject: | Re: How I draw on the PDFSharp PagePreview control |
Hi! Look at the Preview sample: http://www.pdfsharp.net/wiki/Preview-sample.ashx Complete source code included in the PDFsharp source ZIP file. |
Author: | gm1968 [ Tue Sep 18, 2012 1:42 pm ] |
Post subject: | Re: How I draw on the PDFSharp PagePreview control |
Hello Thomas, I know this code.But I do not see here how I draw on the PagePreview control. Günter |
Author: | Thomas Hoevel [ Tue Sep 18, 2012 1:58 pm ] |
Post subject: | Re: How I draw on the PDFSharp PagePreview control |
You write a Render method. This method is called to draw on the Preview. Assign it to "form.RenderEvent" of the Preview form. |
Author: | gm1968 [ Thu Sep 20, 2012 7:34 am ] |
Post subject: | Re: How I draw on the PDFSharp PagePreview control |
Hi Thomas, I do not come on. You've probably got a small code example for the render method and call? Günter |
Author: | Thomas Hoevel [ Thu Sep 20, 2012 8:34 am ] |
Post subject: | Re: How I draw on the PDFSharp PagePreview control |
The Preview sample is included in the source code ZIP file. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |