tags:

views:

350

answers:

1

I am using PDFSharp to create PDF files in my C# application. It's working very good, but i did not find out how to create preview with more than one page. I have no trouble creating and saving document with multiple pages, also embedding PagePreview into my Form is working.

But how do i display (and draw on) more than one page in the Preview?

Is there a way to pass another XGraphics object to associated RenderEvent function (that would be created from second page in document (XGraphics.FromPdfPage(...)))?

A: 

The RenderEvent must know which page to render. Your application must know how many pages there are and which page is the current page.

We are using MigraDoc to create PDF files and the preview handles multiple pages automatically.

The best place to ask PDFsharp and MigraDoc Foundation related questions is the PDFsharp forum. The PDFsharp Team will not monitor stackoverflow.com on a regular basis.

PDFsharp Forum:
http://forum.pdfsharp.net/

PDFsharp Website:
http://www.pdfsharp.net/

PDFsharp Team