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.)
|