PDFsharp & MigraDoc Foundation

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

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
PostPosted: Sun Dec 05, 2010 4:24 pm 
Offline

Joined: Sun Dec 05, 2010 4:11 pm
Posts: 1
Hi
I know that newly created document using MigraDoc can be easily rendered to DrawingVisual:

document = DdlReader.DocumentFromString(this.ddl);
renderer = new DocumentRenderer(document);

DrawingVisual dv = new DrawingVisual();
DrawingContext dc = dv.RenderOpen();
XGraphics gfx = XGraphics.FromDrawingContext(dc, new XSize(pageWidth.Point, pageHeight.Presentation), XGraphicsUnit.Point);
renderer.RenderPage(gfx, pageNumber, PageRenderOptions.All);
dc.Close();

How can I achieve same result with existing PDF file? E.g. load existing file and render a few pages to DrawingVisuals?
Thanks


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 06, 2010 11:21 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Igor wrote:
How can I achieve same result with existing PDF file?

Not yet implemented.
http://www.pdfsharp.net/wiki/PDFsharpFA ... DF_files_3

_________________
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: Bing [Bot], Google [Bot] and 47 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