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

Free Support Forum - aspose.com

Aspose PDF to .TXT and radio buttons

Hi,

A PDF with radio buttons doens’t always give a correct result when converting to text.

In some cases the radio button (bullet) shows up in the line above (in the text file) ?

This way you can’t know which of the radio buttons has been selected.

How can I preven this from happening ?

Kind Regards

@IT_bestellingen

Thanks for contacting support.

Would you please share your sample PDF file along with complete sample code snippet, which you are using to convert PDF into .txt file. We will test the scenario in our environment and address it accordingly.

POD test.pdf (135.8 KB)

@IT_bestellingen

Thanks for sharing a sample PDF document.

As requested earlier, would you please also share the code snippet, you are trying at your end. This would help us testing the scenario accordingly.

Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(inputfile);
Aspose.Pdf.Text.TextAbsorber textAbsorber = new Aspose.Pdf.Text.TextAbsorber();
pdfDocument.Flatten();
pdfDocument.Pages.Accept(textAbsorber);
returnValue = textAbsorber.Text.Split(new string[] { System.Environment.NewLine }, StringSplitOptions.None);

@IT_bestellingen

Thanks for sharing all requested details.

We have tested the scenario in our environment and were able to notice the issue in output text. Therefore, we have generated an investigation ticket as PDFNET-44932 in our issue tracking system, for this issue. We will investigate this scenario in details and keep you posted in case of further updates in this regard. Please be patient and spare us little time.

We are sorry for the inconvenience.