1. Roland Smith
  2. PowerBuilder
  3. Friday, 26 January 2024 15:18 PM UTC

PB 2022 Build 1892. Probably moving to R3 in a couple months.

I haven't tried the new PDFBuilder object.

I'm wondering if it is possible to use it to populate PDF form fields.

My hope is that I can download the W-2 PDF from the IRS, loop through rows in a DataStore, place the person's information on the form PDF, and then save a copy named with their employee id. I would create an 'All Employees' PDF by combining the individual ones. Ideally I could delete the individual PDF after adding it to the 'All Employees' PDF so there would only be 1 or 2 files at any one time.

Currently we use image files on a DataWindow. The form part works okay but the instructions page isn't very readable.

Will this work?

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 26 January 2024 15:51 PM UTC
  2. PowerBuilder
  3. # 1

No, currently PowerBuilder doesn't support populating or extracting data from a fillable PDF.  It can only create a blank template fillable PDF form.  https://docs.appeon.com/pb/whats_new/RichTextEdit_control_enhancements.html

So you will need to use a third-party/external PDF library to do such manipulation of the PDFs.

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 26 January 2024 16:23 PM UTC
Yes, PDFBuilder supports combining multiple PDF files into one. Bruce did a nice session at Elevate 2023 about this with code sample as well as cover rest of new features in PB 2022 R2:

Part 1: https://www.appeon.com/conference/elevate-2023/live?id=394

Part 2: https://www.appeon.com/conference/elevate-2023/live?id=395
  1. Helpful
  1. Roland Smith
  2. Friday, 26 January 2024 17:44 PM UTC
Is filling PDF forms something on the roadmap for PDFBuilder?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 26 January 2024 17:48 PM UTC
Not for now. Team is focused on IDE for PB 2025.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.