Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/290.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 替换Acrobat方法AFormAutLib.setButtonIcon_C#_Pdf - Fatal编程技术网

C# 替换Acrobat方法AFormAutLib.setButtonIcon

C# 替换Acrobat方法AFormAutLib.setButtonIcon,c#,pdf,C#,Pdf,现有进程使用Adobe Acrobat COM对象AFormAutLib打开和填写表单项。有500多个表单,它们的顶部都有一个Button类型的表单字段。方法AFormAutLib.setButtonIcon用于设置另一个PDF文件的路径,以用作按钮上的图像 我正在寻找另一种选择。我已经查看了iTextSharp、activePDF Tookit和其他工具,但找不到任何可以替代此功能的工具 提前感谢。解决方案是以不同的方式使用activePDF工具包 APToolkitNET.FieldInfo

现有进程使用Adobe Acrobat COM对象AFormAutLib打开和填写表单项。有500多个表单,它们的顶部都有一个Button类型的表单字段。方法AFormAutLib.setButtonIcon用于设置另一个PDF文件的路径,以用作按钮上的图像

我正在寻找另一种选择。我已经查看了iTextSharp、activePDF Tookit和其他工具,但找不到任何可以替代此功能的工具


提前感谢。

解决方案是以不同的方式使用activePDF工具包

APToolkitNET.FieldInfo myFI = aTK.FieldInfo(x.Key.ToString(),1);
aTK.PrintImage(logoPath, myFI.Left, myFI.Bottom, myFI.Width, myFI.Height, true, 1);
aTK.DeleteFormField(x.Key.ToString());
按钮具有正确的位置和尺寸,因此FieldInfo类用于获取这些值。然后,在删除按钮之前,调用PrintImage,其中包含图像的路径和位置