#1
Posted
:
Thursday, February 16, 2017 5:01:15 AM(UTC)
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,
Edited by moderator Thursday, February 16, 2017 11:25:35 AM(UTC)
| Reason: Moved image attachment below text
#2
Posted
:
Friday, February 17, 2017 9:08:11 AM(UTC)
Groups: Manager, Tech Support, Administrators
Posts: 218
Was thanked: 12 time(s) in 12 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.
#3
Posted
:
Wednesday, March 8, 2017 3:44:16 AM(UTC)
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();
}
Thanks in advance.
Edited by moderator Wednesday, March 8, 2017 5:09:45 PM(UTC)
| Reason: removed unlock code
#4
Posted
:
Friday, March 10, 2017 11:21:52 AM(UTC)
Groups: Manager, Tech Support, Administrators
Posts: 218
Was thanked: 12 time(s) in 12 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.
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.