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

Free Support Forum - aspose.com

PDF Text color issue

Hi
In our product, we are trying to get link text color for the attached PDF. Even though link text is blue in color, Aspose library finding it as black, causing error. below is the code fragments used for the same.
string TextColor = “”;
Aspose.Pdf.Rectangle newRect = {}// here we are getting Link rectagle value.
Aspose.Pdf.Text.TextFragmentAbsorber textFragmentAbsorbernew = new Aspose.Pdf.Text.TextFragmentAbsorber();
textFragmentAbsorbernew.TextSearchOptions = new Aspose.Pdf.Text.TextSearchOptions(newRect);
textFragmentAbsorbernew.Visit(PDFPage);
int FragmentTextlength = 0;

        foreach (Aspose.Pdf.Text.TextFragment TextFrag in textFragmentAbsorbernew.TextFragments)
        {
	TextColor = TextFrag.TextState.ForegroundColor.ToString();
        }

Test PDF_2.pdf (642.9 KB)Test PDF_2.pdf (647.1 KB)
Please consider the second PDF file in attachment

@IqviaPal

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. Thanks for your cooperation.

thank you,
I have attached the sample code to test the scenario, I have also placed the test file(PDF) in the same project folder.
Just copy this folder to your ‘C’ drive and you can open the project in VS 2019. debug the code and you can find that, even though the text color of the linked text is in ‘Blue’, Aspose finding it as black. please let me know any fix for the above issue.

Note: I have not added the ‘Aspose.pdf.dll’ and license file('Aspose.Pdf.Net.licSampleProject.zip (653.3 KB)
') along with this, as it require more space, request you to include those 2 files under the folder “C:\SampleProject\SampleProject”.

@IqviaPal

We have logged this problem in our issue tracking system as PDFNET-52001. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Any updates on this issue?

@IqviaPal

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

Any progress on this issue

@IqviaPal

Unfortunately, there is no update available on this issue at the moment. We will be sure to inform you once there is an update available on it.

Any updates on this issue?

@IqviaPal

We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. We work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

We will inform you via this forum thread once there is an update available on it.

Any progress on this issue?

@IqviaPal

Unfortunately, there is no update available on this issue at the moment. We will be sure to inform you via this forum thread once there is an update available on it.

Any progress on this issue?

@IqviaPal

Your issue is still pending for analysis. You will be informed once there is an update available on it.

You reported this issue in free support forum and it will be treated with normal priority. To speed up the progress of issue’s resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies