LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write String to a PDF Form Field

Solved!
Go to solution

Hi folks,

 

I urgently need your help. I want to insert a string into a specific PDF form field in LabVIEW. I’ve already searched the internet, but couldn’t really find much. In the past, this worked quite well with Word in the Report Generation Tool Kit, but one of the requirements is that we can’t use MS Office. Has anyone here done this in LabVIEW before, or is there a way to create something using Python and integrate it into LabVIEW?

Thanks for your “quick” help

 

Cheers

 

0 Kudos
Message 1 of 5
(189 Views)
Solution
Accepted by Froesi

Ask AI to use python to do it for you and call into LabVIEW with the python node!  Speaking from (good) experience:) works great!

 

Easy way: enter text by coordinates

 

Harder: render the entire document.

Message 2 of 5
(137 Views)

I'm not certain I understand what you are trying to do.  Here is my "guess" at "what you start with" and "what you hope to end with":

  • You have a PDF "form" that you can open in Acrobat. 
  • Somewhere inside this form, there is a "fillable entry" where you can enter (via the keyboard) your name, or some other text parameter, and once you do that, you can close the form, possibly under a different name.
  • You now have a PDF document with a "signed" line, ready to be printed out (with the included "entry") for printing or further processing.

I'm not aware of an easy way to get LabVIEW to open and view a PDF document other than using Microsoft Word to go PDF -> Word, use LabVIEW Report Generation Toolkit to edit Word, then "Save as PDF" in Word.  I see that MichaelS78 suggested using AI + Python to do this -- if this is a "homework" problem, it seems like a pointless exercise, while if it is a "work requirement", the restriction to "not use MS Office" makes no sense to me.

 

Bob Schor

0 Kudos
Message 3 of 5
(106 Views)

A bunch of years ago i did some ActiveX connection to Acrobat. It was messy and sensitive, but i got it to work, for a while. Updating Acrobat broke it so i needed to recompile, but still.

Asking ChatGPT about it, it mentions that you can use ActiveX but that calling a Python script is easier, so i'd recommend that route.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(98 Views)

hi Folks,

 

I finally decided to use the Python solution. Thanks for your posts and your help.

 

cheers

0 Kudos
Message 5 of 5
(56 Views)