PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Adding EPS image to a PDF (using Migradoc and PDFsharp)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
okv



Joined: 02 Oct 2008
Posts: 3

PostPosted: Thu Oct 02, 2008 9:39 am    Post subject: Adding EPS image to a PDF (using Migradoc and PDFsharp) Reply with quote

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.
Back to top
View user's profile Send private message
roryok



Joined: 10 Oct 2008
Posts: 4

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

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.
Back to top
View user's profile Send private message
okv



Joined: 02 Oct 2008
Posts: 3

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

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?
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Oct 16, 2008 3:57 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com