Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
23

Link checkbox to pre-written text and delete text not selected

New Here ,
Feb 20, 2024 Feb 20, 2024

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 🙂

 

Example.pngexpand image

TOPICS
Create PDFs , General troubleshooting , How to , JavaScript , Modern Acrobat , PDF , PDF forms
321
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2024 Feb 20, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2024 Feb 21, 2024
LATEST

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?

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines