We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdfextractor ExtractText throws "Invalid font name"

        using (var pdfExtractor = new PdfExtractor())
        {
            pdfExtractor.BindPdf(filePath);

            pdfExtractor.ExtractText(Encoding.ASCII);

Unexpected Error: Invalid font name
Details:
System.ArgumentException: Invalid font name
at Aspose.Pdf.Text.FontCollection.get_Item(String name)
at #=zyEnMnypX06BBL63w_ujJZoMuXf_XDqm6OSXS3pTAINliTNBAqeKj20E=.#=zGM$_b7M=(Operator #=z1PpB6IM=)
at #=zyEnMnypX06BBL63w_ujJZoMuXf_XDqm6OSXS3pTAINliTNBAqeKj20E=.#=z_t2GyPg=()
at #=zyEnMnypX06BBL63w_ujJZoMuXf_XDqm6OSXS3pTAINliTNBAqeKj20E=.#=z_t2GyPg=()
at #=zyEnMnypX06BBL63w_ujJZoMuXf_XDqm6OSXS3pTAINliTNBAqeKj20E=.#=z_t2GyPg=()
at #=zLlnBg5ePulKGl4$kf$7ZvCA1nSes$a6tWfXaFRJif2Gahm03lLV1KvTFuBWS.#=zEsfXY5jzXODK(BaseOperatorCollection #=zIqVfR9Q=, Resources #=zwaXgzNE=, Page #=ztTOrXy0=)
at #=zLlnBg5ePulKGl4$kf$7ZvCA1nSes$a6tWfXaFRJif2Gahm03lLV1KvTFuBWS.#=zEsfXY5jzXODK(BaseOperatorCollection #=zIqVfR9Q=, Resources #=zwaXgzNE=)
at #=zLlnBg5ePulKGl4$kf$7ZvCA1nSes$a6tWfXaFRJif2Gahm03lLV1KvTFuBWS.#=zvZstLFo=()
at #=zLlnBg5ePulKGl4$kf$7ZvCA1nSes$a6tWfXaFRJif2Gahm03lLV1KvTFuBWS…ctor(Page #=ztTOrXy0=, TextSearchOptions #=z79Ge5CJiOs7E, Boolean #=z99Hjjc5e1PdC)
at Aspose.Pdf.Text.TextAbsorber.Visit(Page page)
at Aspose.Pdf.Facades.PdfExtractor.ExtractText(Encoding encoding)

Aspose.Pdf v22.8.0

On this file.

1392971-FLM-1218FL-MZ M IUL II Pro Illustration.pdf (1.9 MB)

@johnwnowlin

We were able to reproduce the issue in our environment. Therefore, it has been logged as PDFNET-52351 in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.