PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 11:07 pm

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
PostPosted: Tue Jul 28, 2009 1:49 pm 
Offline

Joined: Tue Jul 21, 2009 6:37 pm
Posts: 12
I am encountering quite a few occurrences where a GIF image does not get read into the resulting pdf. They are not very large.

The pdf displays a gray box with a the following text in red: Image could not be read.


As far as I can tell there is no difference between the gif files that get displayed correctly and those that do not.


completeFilename = "W:\\Images\\21800-0042.GIF";
document.LastSection.AddPageBreak();
document.LastSection.AddImage(completeFilename);

I've attached one of the offending gif images.


Any ideas would be appreciated. Thank you.
Attachment:
21800-0042.gif
21800-0042.gif [ 11.91 KiB | Viewed 4604 times ]


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 28, 2009 2:19 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Thanks for the sample file. I'll check it.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 28, 2009 2:26 pm 
Offline

Joined: Tue Jul 21, 2009 6:37 pm
Posts: 12
Thanks, in that particular series of 46 images, only 11 were displayed correctly in the pdf while the other 35 got the message: Image could not be read.


I can send more samples of good and bad if needed ... they are all very similar, same type content, same dimensions from 10K to 75K and they get displayed fine in an ASP.net web page.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 28, 2009 2:33 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
I saved that file to disk - and it work fine with both builds (GDI+ and WPF).
I have no idea what could go wrong.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 28, 2009 2:45 pm 
Offline

Joined: Tue Jul 21, 2009 6:37 pm
Posts: 12
I am using MigraDoc.

I have references to MigraDoc.DocumentObjectMode_WPF, MigraDoc.Rendering-WPF and PDFSharp-WPF.

Should I be using something different?


using System;
using MigraDoc.DocumentObjectModel;
using MigraDoc.DocumentObjectModel.Tables;
using MigraDoc.DocumentObjectModel.Shapes;
using System.Collections;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;


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 329 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