PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 04, 2024 2:04 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Convert PDF to EMF
PostPosted: Thu Jun 18, 2015 6:54 am 
Offline

Joined: Thu Jun 18, 2015 6:43 am
Posts: 2
Using PDFSharp can we convert PDF to EMF?
I see there is an XGraphics class, but not sure if/how it can be used to do that.
PdfDocument document = PdfReader.Open(filename, PdfDocumentOpenMode.Import);
XGraphics gfx = XGraphics.FromPdfPage(document.Pages[0]);


Top
 Profile  
Reply with quote  
 Post subject: Re: Convert PDF to EMF
PostPosted: Thu Jun 18, 2015 7:48 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
George wrote:
Using PDFSharp can we convert PDF to EMF?
Not with the XGraphics class.
PDFsharp does not parse the drawing instructions from PDF files - this is left as an exercise for the reader (and not an easy one).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Convert PDF to EMF
PostPosted: Thu Jun 18, 2015 9:16 am 
Offline

Joined: Thu Jun 18, 2015 6:43 am
Posts: 2
Is there some guidance on how to do that?
Any sample code to use as a base?
Or any other ideas on how to achieve this with PDFSharp and/or MigraDoc?


Top
 Profile  
Reply with quote  
 Post subject: Re: Convert PDF to EMF
PostPosted: Thu Jun 18, 2015 9:22 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
On this forum you can find some posts on extracting text from PDF using PDFsharp. That would be the best start I can think of.

But before trying that, I would google for implementations that convert PDF to EMF.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Convert PDF to EMF
PostPosted: Wed Jul 29, 2015 5:59 am 
Offline

Joined: Fri Dec 19, 2014 1:46 am
Posts: 8
I also see XGraphics class, but don't know how to use it.
And for converting PDF to EMF, free resource can be easy found on google:
http://download.cnet.com/Free-PDF-to-EM ... 68847.html
But I also looking forward PDFSharp can supports it one day.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 94 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group