PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 3:42 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Oct 02, 2008 9:39 am 
Offline

Joined: Thu Oct 02, 2008 9:30 am
Posts: 3
I have an image that is in EPS format, which I should add in a PDF-document which I'm creating with Migradoc/PDFsharp.

I've only tried using myparagraph.AddImage("image.eps") -method, which seems to work perfectly on other image types, but with EPS files I keep getting out of memory exception when I render the PDF.

The file sizes of the EPS files that I've tried to add are 300-500kB.

Should EPS-images be added in a different way?

I've been trying to google it, search forums, etc but I can't find any solution to this problem.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 10, 2008 12:02 pm 
Offline

Joined: Fri Oct 10, 2008 11:58 am
Posts: 4
Eps images are vector images, they probably can't be added the same way that bitmap images can. For example, when you open an EPS in photoshop it asks you for dimensions, because it can be scaled to any dimension.

the code below isn't specifying a scale so its probably blowing it up to some massive dimensions and eating up all the memory.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 16, 2008 11:06 am 
Offline

Joined: Thu Oct 02, 2008 9:30 am
Posts: 3
Thanks for the reply.

I've been trying to edit the image's properties like height and width but it hasn't helped yet.

Does MigraDoc support vector images at all?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 16, 2008 3:57 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3110
Location: Cologne, Germany
I don't know if EPS can be used.

MigraDoc can use pages from PDF files like images.
Convert your EPS to PDF and it'll work.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 92 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