PDFsharp & MigraDoc Foundation

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

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: Fri Sep 05, 2014 8:52 am 
Offline

Joined: Fri Sep 05, 2014 8:46 am
Posts: 1
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.)


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 08, 2014 7:47 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hi!

Have you tried the GDI+ build?

_________________
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: Google [Bot] and 60 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