ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problems converting tiff to pdf
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

e1ioan

Romania
3 Posts

Posted - Jun 05 2025 :  14:32:37  Show Profile  Reply
I'm using ImageEn to convert tiff files into pdf and it works fine most of the time. Now some users were complaining that the PDF has black lines on them. The tiff file seem fine, but when converting it to pdf the lines appear.

Here is the code I'm using for the conversion.


    mio := TImageEnMIO.Create(nil);
    try
      mio.LoadFromFileTIFF(TiffFileName);
      mio.SaveToFilePDF(PDFFileName);
    finally
      mio.Free;
    end;


Also, the tiff file is attached.

attach/e1ioan/202565142747_bad-black-line.tiff

xequte

39027 Posts

Posted - Jun 06 2025 :  00:53:17  Show Profile  Reply
Hi

This TIFF file is either corrupted or an unsupported type. I cannot get any viewer to load it.

Are you having issues with other TIFF files or just this one?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

e1ioan

Romania
3 Posts

Posted - Jun 06 2025 :  10:23:48  Show Profile  Reply
Hi Nigel,

IrfanView opens the tiff fine. Also ImageEn can convert it into pdf, but the pdf has a black bar over some of the text. Maybe the one I sent got to you corrupted.

Majority of the tiff files convert fine to pdf, but some have this problem.

You can get the original tiff from here:
https://download.pangea-comm.com/ftp/temp/bad-black-line.tiff
and the pdf created
https://download.pangea-comm.com/ftp/temp/bad-black-line.pdf


This is how it looks like in IrfanView:



And this is the pdf:



Go to Top of Page

xequte

39027 Posts

Posted - Jun 06 2025 :  18:49:30  Show Profile  Reply
Hi

The issue is not with the conversion, it is with the loading as the same thing happens if you just use ImageEnView1.IO.LoadFromFile( 'bad-black-line.tiff' ).

It is a standard TIFF format (G3FAX2D) so it should load fine, but none of the viewers I have on this system can load it without error (I don't have IrfanView), so presumably it is just corrupted.

Are the other ones that fail from the same set?


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

e1ioan

Romania
3 Posts

Posted - Jun 07 2025 :  08:21:33  Show Profile  Reply
I get thousands of tiff images every hour, created by the same software. Majority are fine, some of them have this problem.
Go to Top of Page

xequte

39027 Posts

Posted - Jun 07 2025 :  16:26:41  Show Profile  Reply
Hi

I think that software is creating malformatted images.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: