[PP-1] Keep original field order of parsed PDF

Created on 9 May 2019, about 6 years ago
Updated 29 May 2025, about 1 month ago

Unlike FillPDF's LocalServer backend, pdftk returns PDF fields in the original order, page by page and following the tab order.

In 8.x-4.x we're keeping this order intact, as fields have a unique autoincrement ID rather than the composite primary key they have in 7.x-1.x. While we do #3049595: Consider composite primary key for FillPdfFormFields , we would at least keep the numeric key as a weight column there.

To achieve the same, we'd need to introduce a weight column, too.

The main argument is that while sorting the fields alphabetically may be an option, the original field order is pretty helpful, particularly with many fields, to make sure adjacent, possibly logically grouped fields are not torn apart.

Please note that there's a separate ticket open for LocalServer: #3048514: Parsing a PDF form using LocalServer, fields appear in pseudo-random order

Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

Pancho UTC+2 🇪🇺 EU

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024