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

Free Support Forum - aspose.com

Adding markups for text

while converting pdf to html, it gives div for every line. Does aspose for java support creating any input or p tags for searchable text in the pdf?

@sahithya

I request you to share current and expected output files and the source code.

okay @mudassir.fayyaz
sample.pdf (41.3 KB)

output should be a HTML file with all font formatting and markups for searchable text with input tag(type=text) or with p tag

Source Code:
I didn’t use any options except Document.save with HTML as format.

@sahithya

We have logged a feature request as PDFJAVA-40628 for adding markups for text. We have linked your post with the ticket ID as well, so that you will receive notification once the feature is available.

1 Like