Error on SetAdvanced.getColor() - The method or operation is not implemented

Aspose.Pdf 18.4

Hello,

As you can see in the introduction, there is an error:

The method or operation is not implemented.
at Aspose.Pdf.Operator.SetAdvancedColor.getColor()

in the method [SetAdvanced.getColor()](https://reference.aspose.com/net/pdf/aspose.pdf.operator/setadvancedcolor/methods/getcolor).

Are you able to reconstruct this in this version?

Thank you in advance,
Thomas Eszterwitsch

@ThomasEsz

Thank you for contacting support.

Please clarify if you were using the same method in previous versions and now facing the problem after upgrading to Aspose.PDF for .NET 18.4. If that is the case then please specify the version that works fine, along with the code snippet and other necessary resources, if any, to reproduce this issue in our environment. So that we may proceed to help you out. Moreover, before sharing requested information, please ensure using Aspose.PDF for .NET 18.5 in your environment.

Hi, is it possible that the framework is to blame? :slight_smile:

On my development computer it works, only with the customer with framework 4 not.

Unfortunately did not find the framework prerequisites, except that it is possible even starting from V2.

@ThomasEsz

Aspose.PDF for .NET API supports almost all .NET frameworks. Supported .NET frameworks are specifically listed in Feature List of the API. Please ensure the application is correctly referenced to Aspose.PDF for .NET 18.5. In case the issue persists, please share a narrowed down sample application along with environment details so that we may try to reproduce and investigate it in our environment.

Hi, is there in the direction of a known problem with version 18.4?

Here the code snippet:

    public static bool HasOnlyWhiteColor(Aspose.Pdf.Page page)
    {
        bool foundTextOp = false;
        foreach (Aspose.Pdf.Operator op in page.Contents)
        {
            Aspose.Pdf.Operator.TextOperator opTX = op as Aspose.Pdf.Operator.TextOperator;
            if (opTX != null) foundTextOp = true;

            try
            {
                Aspose.Pdf.Operator.SetColorOperator opSC = op as Aspose.Pdf.Operator.SetColorOperator;
                if (opSC == null) continue;
                System.Drawing.Color color = opSC.getColor();
                if (color.R != 255 || color.G != 255 || color.B != 255) return false;
            }
            catch { return false; }
        }
        return !foundTextOp;
    }

Unfortunately we do not have that much time again to take a version change in before the next release.

Here the enviroment informations:
Windows Server 2012 R2 Standard 64-bit (6.3, Build 9600)
German (Regional Setting: German)
Virtual Machine
Hyper-V UEFI Release v1.0
.NET Framework 4.0.30319

Display device:
RDPUDD Chained DD
Microsoft
Driver File Version: 6.03.9600.18619 (English)
Driver Version: 6.3.9600.18907

If you still need certain information, please notify, thank you

@ThomasEsz

Thank you for sharing requested data.

We have worked with the data shared by you but have not been able to reproduce the issue in Windows Server 2012 R2 Standard Edition, 64 Bit. Would you please upgrade to Aspose.PDF for .NET 18.5 in your environment and then share your kind feedback with us. Moreover, you can also use below code snippet to find out if a specific page is a blank page or not.

Document pdfDocument = new Document(inputFileName);
bool isBlank = pdfDocument.Pages[1].IsBlank(0.01d);

We hope this will be helpful. Please feel free to contact us if you need any further assistance.