PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jul 13, 2024 11:57 am

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: Thu Nov 25, 2010 12:34 pm 
Offline

Joined: Thu Nov 25, 2010 12:14 pm
Posts: 1
Hi,

I have to load an image in my PDF and I do this by

using PdfSharp.Drawing;
...
Image image = row.Cells[1].AddImage(string.Format("{0}\\myImage.gif", HttpContext.Current.Server.MapPath("~/img/")));
...

This works well on all systems but not on my Windows Server 2008. Changing the image to a png Format works. Has anyone an idea why gif doesn't work on windows server 2008? Did PDFsharp miss some settings on the server for the gif? I can open a gif-File without of problems from the file system.

Thanks
Hans


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 25, 2010 2:07 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
PDFsharp relies on the operating system to read the images.
Different OS routines are used for GDI+ and WPF builds.

If mspaint.exe can read the GIF files, then PDFsharp should also be able to use them. But you may have to switch from GDI+ to WPF or the other way round.

Was that image downloaded from the Internet? Unblock the image if it is blocked (see Properties for that file within Explorer).

_________________
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: No registered users and 112 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