LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read text from pdf

Hi,

I am trying to extract some text form a pdf file. Attached is a file and a library. in Labwiew 2012, it works a bit until a get error 1172 (below). How do I solve this?

in labview 2014, I get the error 1386 (just at the beginning). How do I solve both cases?

Thank you,

Error 1172

 

Error calling method org.pdfbox.util.PDFTextStripper.getText, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.) <append><b>System.NullReferenceException</b> in pdfExtract.vi

 

0 Kudos
Message 1 of 4
(4,231 Views)

Your assembly targets an old version of the CLR

2018-01-09 10_33_44-Win7x64 NI2016 - VMware Workstation.png

You actually have two different problems:

  • Your issue in LabVIEW 2012 is something inside the assembly, perhaps the way it is being used or an internal defect. I haven't investigated the assembly yet but perhaps you can try looking through the providers manual / or request help from them.
  • Your issue in LabVIEW 2014 is different - basically the assembly is too old to be loaded in 2014 without forcing LabVIEW to use the old CLR (via config file). The same sort of issue is described here and you can try working through the solutions proposed. If you do get it working it is likely you will then hit your first problem above.
0 Kudos
Message 2 of 4
(4,209 Views)

Hi,

 

I couldn't find real help. Any help?

 

Thank you,

0 Kudos
Message 3 of 4
(4,148 Views)

Update PDFTextStripper is what I would try.

0 Kudos
Message 4 of 4
(4,137 Views)