找回密码
 立即注册

QQ登录

只需一步,快速开始

deny2016

中级会员

61

主题

386

帖子

693

积分

中级会员

积分
693

微信认证勋章

deny2016
中级会员   /  发表于:2016-8-25 10:45  /   查看:6081  /  回复:13
我按照您给我路径,拷贝打开例程,缺少很多的文件。
pdf好象有两种格式,一个是纯图片,另一种两层(一层图片,一层文字)。您说的直接读取,是不是针对的是第二种情形?
我这边只有纯图片形式的pdf文件
另外,现在手头的项目比较急,给答案的时候,能不能给一些确切的解决答 案的链接和路径。

15 个回复

倒序浏览
deny2016
中级会员   /  发表于:2016-8-25 10:47:56
沙发
这是个有关ocr识别的问题
回复 使用道具 举报
deny2016
中级会员   /  发表于:2016-8-25 11:22:07
板凳
我现在做的是按选择区域ocr识别标题的功能,这个功能里涉及到的图片有jpg  tif  pdf
回复 使用道具 举报
gw0506
超级版主   /  发表于:2016-8-25 16:05:11
地板
你直接跑随机安装的例子就可以了,刚好是满足你的需求的。
C:\LEADTOOLS 19\Shortcuts\PDF\.NET Class Libraries\Document Converter

你之前看的那个demo是批量处理一个文件夹下所有的pdf的。

你打开报错是你工程的问题,你去核对一下文件路径看为啥报错。我这边都是正常的。

点评

发表于 2016-8-27 08:56
回复 使用道具 举报
deny2016
中级会员   /  发表于:2016-8-26 17:49:00
5#
嗯,谢谢您的回复,今天电脑不能用,得明天试一下看看
回复 使用道具 举报
gw0506
超级版主   /  发表于:2016-8-26 17:52:21
6#
今天你不能用电脑,还解决了那个图片翻转的问题?!高手啊!

点评

发表于 2016-9-2 16:56
回复 使用道具 举报
deny2016
中级会员   /  发表于:2016-8-27 08:51:32
7#
,是我开发的电脑不能用了,解决问题用的是几天前的程序
回复 使用道具 举报
deny2016
中级会员   /  发表于:2016-8-27 10:03:45
8#

我打开您给的例子,运行后提示出错,这个是哪里的原因?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
deny2016
中级会员   /  发表于:2016-8-27 10:04:40
9#
namespace Leadtools.Demos
{
   internal static class Support
   {
      public const string MedicalServerKey = "";

#if LEADTOOLS_V19_OR_LATER
      public static bool SetLicense(bool silent)
      {
         try
         {
            // TODO: Change this to use your license file and developer key */
             string licenseFilePath = "E:\\eval-license-files_811c4e6a-f343-48ab-a359-7db7b1052916\\eval-license-files.lic";
            string developerKey = "08xPXshT2ZbKbQbDRNFsk4CRW8AQLmUIvN383qJp5TProMTYamPE13uYl3r/CmFEOZzDcuiaOCSDpO9GouHLlx4jSaEsn03u";
            RasterSupport.SetLicense(licenseFilePath, developerKey);
         }
         catch (Exception ex)
         {
            System.Diagnostics.Debug.Write(ex.Message);
         }

         if (RasterSupport.KernelExpired)
         {
            string dir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            /* Try the common LIC directory */
            string licenseFileRelativePath = System.IO.Path.Combine(dir, "E:\\eval-license-files_811c4e6a-f343-48ab-a359-7db7b1052916\\eval-license-files.lic");
            string keyFileRelativePath = System.IO.Path.Combine(dir, "E:\\eval-license-files_811c4e6a-f343-48ab-a359-7db7b1052916\\eval-license-files.lic.key");

            if (System.IO.File.Exists(licenseFileRelativePath) && System.IO.File.Exists(keyFileRelativePath))
            {
               string developerKey = System.IO.File.ReadAllText(keyFileRelativePath);
               try
               {
                  RasterSupport.SetLicense(licenseFileRelativePath, developerKey);
               }
               catch (Exception ex)
               {
                  System.Diagnostics.Debug.Write(ex.Message);
               }
            }
         }

         if (RasterSupport.KernelExpired)
         {
            if (silent == false)
            {
               string msg = "Your license file is missing, invalid or expired. LEADTOOLS will not function. Please contact LEAD Sales for information on obtaining a valid license.";
               string logmsg = string.Format("*** NOTE: {0} ***{1}", msg, Environment.NewLine);
               System.Diagnostics.Debugger.Log(0, null, "*******************************************************************************" + Environment.NewLine);
               System.Diagnostics.Debugger.Log(0, null, logmsg);
               System.Diagnostics.Debugger.Log(0, null, "*******************************************************************************" + Environment.NewLine);

               MessageBox.Show(null, msg, "No LEADTOOLS License", MessageBoxButtons.OK, MessageBoxIcon.Stop);
               System.Diagnostics.Process.Start("https://www.leadtools.com/downloads/evaluation-form.asp?evallicenseonly=true");
            }

            return false;
         }
         return true;
      }

      public static bool SetLicense()
      {
         return SetLicense(false);
      }

#elif LTV18_CONFIG
      public static void SetLicense()
      {
         try
         {
            RasterSupport.SetLicense("", "Nag");
            /* Uncomment this and add your license file and developer key
            string licenseFilePath = "Replace this with the path to the LEADTOOLS license file";
            string developerKey = "Replace this with your developer key";
            RasterSupport.SetLicense(licenseFilePath, developerKey);
            */
         }
         catch (Exception ex)
         {
            System.Diagnostics.Debug.Write(ex.Message);
         }
      }
#endif  //LEADTOOLS_V19_OR_LATER

   }
}
回复 使用道具 举报
deny2016
中级会员   /  发表于:2016-8-27 10:05:04
10#
这是我修改之后的代码,不知道哪里有问题
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部