Unable to install Aspose.Words.Shaping.HarfBuzz

Screenshot (6).png (14.1 KB)
I am also facing the same issue but when I am trying to add harfbuzz dll (win-x86) this error is coming

@Shital_diwate

We suggest you please remove all old DLLs of Aspose.Words.Shaping.HarfBuzz from your application and install Aspose.Words.Shaping.HarfBuzz through NuGet . Hope this helps you.

System.Exception: Text shaper factory failed to return text shaper for ‘C:\WINDOWS\Fonts\timesbd.ttf’, face index ‘0’ —> System.DllNotFoundException: Unable to load DLL ‘harfbuzz’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at .(IntPtr , UInt32 , , IntPtr , IntPtr )
at .(Byte[] , Int32 )
at Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.GetTextShaper(String fontPath, Int32 faceIndex)
at Aspose.Words.Shaping.BasicTextShaperCache.uedky9tzt7pxzykqlqq44tu42twqvjcp? (String , Int32 )
at .(? , ITextShaperFactory )
— End of inner exception stack trace —
at .(? , ITextShaperFactory )
at .(? )
at .(? )
at . ? (? )
at .? ? ?()
at ? .? ? ?()
at ? .? ? ()
at .? ? ()
at ? .(Int32 )
at ? .(Boolean , Int32 )
at ? .(Boolean )
at ? .(? )
at ? .(? , Int32 )
at ? .(? )
at ? .(? , Int32 )
at .(? , Int32 , Boolean )
at .( , Int32 , Boolean )
at ? .()
at ? .(? , Int32 , Boolean , Boolean )
at .( )
at .(? )
at ? .(? )
at .( )
at .( )
at .( )
at .(? )
at ? .(? )
at .(? )
at . ()
at .()
at Aspose.Words.Document.UpdatePageLayout()
at ? .( ? , ? )
at ? . ? ( ? )
at ? . ? ? ( ? )
at Aspose.Words.Document.( ? )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName)

This exception is coming.
My application in 32 bits running

@Shital_diwate

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi Shital,
1- According to your Platform target, please copy DLLs from :

  • “Aspose.Words.Shaping.HarfBuzz.20.1.0\runtimes\win-x86” to your Debug folder.
  • “Aspose.Words.Shaping.HarfBuzz.20.1.0\runtimes\win-x64” to your Debug folder.
    In your case, these DLLs are missing.

2- If it does not work and your Platform target is AnyCPU, please check (Set) Prefer32 Bit.

Let me know if it works.

Mohamed.

N.B.:
It’s better to install the latest versions of Aspose.Words.

@mhamitouche

We always appreciate positive feedback from our customers.

@Shital_diwate

We suggest you please install Aspose.Words.Shaping.HarfBuzz through NuGet. However, if you are adding reference of Aspose.Words.Shaping.HarfBuzz manually, you need to put the correct DLL from Aspose.Words.Shaping.HarfBuzz.21.3.0\runtimes into Debug folder.

Moreover, please check my reply here:

1 Like