View previous topic :: View next topic |
Author |
Message |
okv
Joined: 02 Oct 2008 Posts: 3
|
Posted: Thu Oct 02, 2008 9:39 am Post subject: Adding EPS image to a PDF (using Migradoc and PDFsharp) |
|
|
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 |
|
|
roryok
Joined: 10 Oct 2008 Posts: 4
|
Posted: Fri Oct 10, 2008 12:02 pm Post subject: |
|
|
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 |
|
|
okv
Joined: 02 Oct 2008 Posts: 3
|
Posted: Thu Oct 16, 2008 11:06 am Post subject: |
|
|
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 |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Oct 16, 2008 3:57 pm Post subject: |
|
|
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 |
|
|
|