Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, February 16, 2017 5:06:15 AM(UTC)
Minh Lee

Groups: Registered
Posts: 2


Hi Experts.

We are using LeadTool version 16.0.0.0 to convert pdf files to tiffs. Believe that it supports by LeadTool library.
After convert pdf file to tiff images, some signatures are become black ( not all). Anyone has encountered this issue before can advise

Thanks,

back_signatures.JPG

Edited by moderator Thursday, February 16, 2017 11:30:35 AM(UTC)  | Reason: Moved image attachment below text

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, February 17, 2017 9:13:11 AM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 197

Was thanked: 9 time(s) in 9 post(s)

Hello,

Thank you for posting on the LEADTOOLS Technical Support Forums. Unfortunately the image you uploaded is too small to see the issue you are referring to. Can you please upload a new image and provide some more details as to what the issue is that you are experiencing? Can you also post the code you are using to convert the PDFs to TIFF as well as the programming interface that you are using (.NET/ COM/ CDLL)?

Thank you
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Wednesday, March 8, 2017 3:49:16 AM(UTC)
Minh Lee

Groups: Registered
Posts: 2


  • Please see attached for the source PDF and converted Tif file

  • We are using .Net and framework version is 4.5

  • Here is code snippet for your ref.


Code:
RasterImage image;
RasterSupport.Unlock(RasterSupportType.PdfRead, ""); 
RasterCodecs.Startup();
RasterCodecs codecs = new RasterCodecs();
CodecsImageInfo info;

info = codecs.GetInformation(strSrcFile, true);
if (info.Format != RasterImageFormat.RasPdf){	return false;}
if (!codecs.Options.Pdf.IsEngineInstalled){	return false;}

saveFullName = strDestPath + fileName + ".tif";
if (fileType.ToUpper() == ".PDF")
{
	//V16
	codecs.Options.Pdf.Load.XResolution = info.XResolution > dpi ? info.XResolution : dpi;
	codecs.Options.Pdf.Load.YResolution = info.YResolution > dpi ? info.YResolution : dpi;
	codecs.Options.Tiff.Save.UsePhotometricInterpretation = true;
	codecs.Options.Tiff.Save.PhotometricInterpretation = CodecsTiffPhotometricInterpretation.MinimumIsWhite;

	for (int i = 1; i <= info.TotalPages; i++)
	{
		image = codecs.Load(strSrcFile, info.BitsPerPixel, CodecsLoadByteOrder.BgrOrGrayOrRomm, i, i);
		saveFullName = strDestPath + "\\" + fileName + "!" + i.ToString().PadLeft(4, '0') + ".tif";
		codecs.Save(image, saveFullName, RasterImageFormat.CcittGroup4, 1); 
		image.Dispose();
	}
codecs.Dispose();
}


File Attachment(s):
softpro_sales_contract_en.pdf (876kb) downloaded 151 time(s).

File Attachment(s):
split!0001.tif (90kb) downloaded 150 time(s).

File Attachment(s):
split!0002.tif (103kb) downloaded 151 time(s).


Thanks in advance.

Edited by moderator Wednesday, March 8, 2017 5:14:45 PM(UTC)  | Reason: removed unlock code

 
#4 Posted : Friday, March 10, 2017 11:26:52 AM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 197

Was thanked: 9 time(s) in 9 post(s)

Hello,

I tested this out and am not getting the same output as you are. Since you are using an older version of the SDK it's possible that you are using outdated DLLs.

In order to resolve this I will send you information on how to patch your v16 SDK to the latest version.

I will send an email from support@leadtools.com to the email address that you registered on the forum. If that email address is not correct, please update it and let me know so I can resend the email.

Thanks,
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.148 seconds.