System.IO.IOException Cannot Locate Resource themesiconsxaml

UiPath.PDF.Activities ExportPDFPageAsImage is producing an image that does not match the source file. Output font is sans serif and larger than source font which causes overwrite from one field/column of data into the next - System.IO.IOException: Cannot locate resource 'themes/icons.xaml'.

Issue:

UiPath.PDF.Activities ExportPDFPageAsImage is producing an image that does not match the source file. Output font is sans serif and larger than source font which causes overwrite from one field/column of data into the next.

Error Message:

Font in source doc looks like Times New Roman output image is sans-serif

Adobe indicates fonts:

EX_CFF_Arial (Embedded)

EX_CFF_ArialBold (Embedded)

EX_CFF_ArialIta (Embedded)

EX_CFF_Symbol (Embedded)

EX_CFF_Times_New_Roman (Embedded)

Found the below in the log:

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

, HResult -2147024894

17:55:17.8536 => [WARN] [UiPath.Studio.Project.exe] [1] System.IO.IOException: Cannot locate resource 'themes/icons.xaml'.

at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)

at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)

at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()

at System.IO.Packaging.PackWebResponse.GetResponseStream()

at System.IO.Packaging.PackWebResponse.get_ContentType()

at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)

at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)

at System.Windows.ResourceDictionary.set_Source(Uri value)

at UiPath.Studio.Plugin.Workflow.Services.ActivityIconFinder.TryGetThemedActivitiesIconDictionary(String assemblyName)

Resolution:

The packages from the below OCR packages from the screen shot are not working.

By using the packages from this package list the intelligent OCR and PDF activity the text do not get overlapped. The Intelligent OCR seems to be the root cause.


Conclusion:

  • UiPath.PDF.Activities version: 3.14.1 (problem)
  • UiPath.PDF.Activities version: 3.11.0 does not exhibit the problem.

  • UiPath.IntelligentOCR.Activities version 6.5.2 (problem)
  • UiPath.IntelligentOCR.Activities version 4.13 (no problem)