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

Split PDF into Pages and convert whole page to an image
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2919
Page 1 of 1

Author:  bradsymons [ Fri Sep 05, 2014 8:52 am ]
Post subject:  Split PDF into Pages and convert whole page to an image

Hi Guys

I am having trouble trying to get this right, If it is even possible.
I've looked at the samples, but it seems the samples and the current version's API is different.

From what I've seen when other's have asked simliar questions the simplement implementation is as below.. but the XGraphics object doesn't seem to have a .Graphics function anymore.

XGraphics gfx = XGraphics.FromPdfPage(pdfsharpdocument.Pages[0]);
System.Drawing.Image image = new Bitmap(dx, dy,XGraphics.Graphics);


Here is what I am trying to do...
User Uploads a pdf document, I then post that to the server where the pdf is split into separate pages and returned to the web front end as an array of images which can be displayed to the user so they can select which pages they actually want to upload.
They select the pages, then submit and I re-create the pdf based on the user's selected pages.

(Limitations I have on the front end design is that it has to be a simple HTML5 webpage with no server side code - the posting of the original pdf is to a web service which runs the pdfsharp code.)

Author:  Thomas Hoevel [ Mon Sep 08, 2014 7:47 am ]
Post subject:  Re: Split PDF into Pages and convert whole page to an image

Hi!

Have you tried the GDI+ build?

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