PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

PreviewForm - pdfsharp
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2873
Page 1 of 1

Author:  milan [ Sun Jul 27, 2014 10:52 am ]
Post subject:  PreviewForm - pdfsharp

im using pdfsharp preview control trying to make a gdi+ form where a user can edit the preview untill he likes what he sees, and then create the pdf.

my idea on this was:

create pdfdocument doc
create pdfpage page
create xgraphics gfx from pdfpage
use methods like gfx.drawString
and then call the render method of the preview control: RenderEvent(gfx)

this is where i expect the preview to show me the current look of my page
then i want to draw another string the same way and call RenderEvent(gfx) to see the current look of my page again...

problem is that the preview is empty all the time.

how should my render method look like to make this possible?
right now, it is empty...

public void Render(XGraphics gfx)
{

}


perhaps someone could push me in the right direction. ty.

Author:  Thomas Hoevel [ Mon Aug 04, 2014 9:16 am ]
Post subject:  Re: PreviewForm - pdfsharp

milan wrote:
how should my render method look like to make this possible?
It should draw the items you want to see on your preview.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/