LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read the PDF File and want to convert as text

Solved!
Go to solution

Hi,

 

In Labview, I want to read the PDF file and want to convert as text file. how to do with functions available in Labview?

0 Kudos
Message 1 of 7
(3,353 Views)

Other wise from PDF all the texts should be read in Labview String Indicator

0 Kudos
Message 2 of 7
(3,352 Views)

Hi prethiv,

 

look for 3rd party (external) tools! There surely will be such tools to extract text from a PDF file.

 

Otherwise: get the PDF specification from Adobe and create your own PDF parser…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(3,332 Views)

Hi,

 

Without External tool there is any other way to do this with the help of functions in Labview?

0 Kudos
Message 4 of 7
(3,327 Views)

Hi prethiv,

 

as said before: read the PDF specification and create your own parser.

Basically all you need is there: file and string functions… (Maybe you need some GZIP functionality and other stuff, too.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,324 Views)
Solution
Accepted by topic author prethiv

I made a program at one time that was able to get text from pdf files but I did have to use an external tool. (https://pdfbox.apache.org/)

 

If you really can't use an external tool I don't think there is a super easy way to do this in LabVIEW. PDF's are compressed using various methods, deflate being one of the common ones. But you need to know what compression algorithm is used and how to decompress the data. 

0 Kudos
Message 6 of 7
(3,305 Views)

It is working correctly

0 Kudos
Message 7 of 7
(3,279 Views)