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

Render existing PDF file to visual (WPF)
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1461
Page 1 of 1

Author:  Igor [ Sun Dec 05, 2010 4:24 pm ]
Post subject:  Render existing PDF file to visual (WPF)

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

Author:  Thomas Hoevel [ Mon Dec 06, 2010 11:21 am ]
Post subject:  Re: Render existing PDF file to visual (WPF)

Igor wrote:
How can I achieve same result with existing PDF file?

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

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