Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

替换字体时数组越界 #257

Open
vvisi opened this issue Feb 18, 2025 · 0 comments
Open

替换字体时数组越界 #257

vvisi opened this issue Feb 18, 2025 · 0 comments
Labels
缺陷 Something isn't working

Comments

@vvisi
Copy link

vvisi commented Feb 18, 2025

PDF补丁丁的版本
1.1.0.4632

请简要描述你遇到的问题
替换字体时候,点击替换字体下拉菜单,报错数组越界,系统安装字体数量1000多种,删除部分字体后,运行正常,没有数据越界错误。

重现问题的步骤
步骤如下:

  1. 使用任意PDF文件
  2. 打开批量修改PDF功能,
  3. 依次点击添加文件,设置PDF文件的修改方式,替换字体,列出文档字体,添加选中项至替换列表,点击替换字体下拉菜单
  4. 出现如下报错日志:
    有关调用实时(JIT)调试而不是此对话框的详细信息,
    请参见此消息的结尾。

************** 异常文本 **************
System.IndexOutOfRangeException: 索引超出了数组界限。
在 PDFPatcher.Common.FontUtility.ListInstalledFonts()
在 PDFPatcher.Common.FontUtility.get_InstalledFonts()
在 PDFPatcher.Functions.FontSubstitutionsEditor.EditSubstitutionItem(CellEditEventArgs args)
在 PDFPatcher.Functions.FontSubstitutionsEditor.b__12_0(Object s, CellEditEventArgs args)
在 BrightIdeasSoftware.CellEditEventHandler.Invoke(Object sender, CellEditEventArgs e)
在 BrightIdeasSoftware.ObjectListView.OnCellEditStarting(CellEditEventArgs e)
在 BrightIdeasSoftware.ObjectListView.StartCellEdit(OLVListItem item, Int32 subItemIndex)
在 BrightIdeasSoftware.ObjectListView.EditSubItem(OLVListItem item, Int32 subItemIndex)
在 BrightIdeasSoftware.ObjectListView.OnMouseUp(MouseEventArgs e)
在 System.Windows.Forms.ListView.WmReflectNotify(Message& m)
在 System.Windows.Forms.ListView.WndProc(Message& m)
在 BrightIdeasSoftware.ObjectListView.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************
mscorlib
程序集版本:4.0.0.0
Win32 版本:4.8.9290.0 built by: NET481REL1LAST_C
基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

PDFPatcher
程序集版本:1.1.0.0
Win32 版本:1.1.0.4632
基本代码:file:///D:/%E6%B5%8B%E8%AF%95%E6%A0%B7%E4%BE%8B%E5%B1%95%E7%A4%BA/pdfpatcher/PDFPatcher.exe

System.Windows.Forms
程序集版本:4.0.0.0
Win32 版本:4.8.9251.0 built by: NET481REL1LAST_C
基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
程序集版本:4.0.0.0
Win32 版

@vvisi vvisi added the 缺陷 Something isn't working label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
缺陷 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant