Skip to main content
August 29, 2022
Question

Extracting Text from a pdf paragraph wise

  • August 29, 2022
  • 2 replies
  • 0 views

Hi, 
I want to extract text from a pdf page by page, paragraph wise, which includes different headings and related contents.
Then I want to store them in DB which includes two columns one is heading column and other is content column.
I used getpdftext function initially, then extract function to extract the desire contents, but did not get the expected result as the heading words are also present inside contents.
Anybody please help me out?

2 replies

gabriele.camilli
September 6, 2022

Hi,

This method is very specific on the document format

First thing is to ask, can you use IDP? probably easier than working using the PDF plugin

Second thing, if it's all the heading that appears, you can just remove the heading with substitute(local!text, localHeading, "")

Third, if formers for some reason are not applicable, i think i will need to see a sample of the text that the getpdftext returns, it's that possible?

September 17, 2022

Hi,

First of all thank you for your response.

I think appian reccomend not to use IDP for paragraph type contents.

Actually I can't send you samples.
Basically headings are like Article 1,2,3 etc. And contents are in paragraph form. Some big articles are present in multiple pages containing multiple paragraphs.
And some contents also contain  article 1,2,3.... inside it.

I hope, you get my point.