Link checkbox to pre-written text and delete text not selected
Copy link to clipboard
Copied
Hi all - some assistance on the below. GPT is getting me almost there, but throwing me off in the step of how to actually *link* a checkbox to pre-written text. In this examle a Word document has been converted to a PDF - with the text as below. What I would like to do is assign each sentence here (marked by Scenario) to a checkbox. The user can pick an associated checkbox, click a button, and it will delete all sentence content not associated to a checkbox.
As a box it would then re-format the entire PDF so everything appears together but this feels like a whole other task, baby steps 🙂
Copy link to clipboard
Copied
You can't really do that. You can't re-flow an entire PDF's contents, unless the entire file is composed out of fields, and even then it will be very tricky to implement it. You can hide the texts, but then you will have an empty space where they were located.
Copy link to clipboard
Copied
What do you mean by "GPT is getting me almost there"? Because it doesn not seem that you are not even remotely close. There are ways to setup text so that it can be hidden or shown. But that means doing something special to setup the text for this process. What have you done? What did GPT do?
Use the Acrobat JavaScript Reference early and often

