PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jul 15, 2024 2:20 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PreviewForm - pdfsharp
PostPosted: Sun Jul 27, 2014 10:52 am 
Offline

Joined: Sun Jul 27, 2014 10:29 am
Posts: 1
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 04, 2014 9:16 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group