Skip to content

Forms: appearance generation broken for autosized fields, fields with center alignment and unicode text #1919

@brzGatsu

Description

@brzGatsu

Hi @pubpub-zz, absolutely appreciate your effort in fixing py-pdfs form capabilities. I tested 3.11.1 and replaced pdftk with pypdf in our app. Its already looking quite good but there are still some appearance generation issues:

  • Text is always aligned left, even if the field is set to i.e. center (unless you click in the field)
  • Fields with font size set to auto are not showing at all (unless you click in the field)
  • Unicode characters such as the german Ü are not encoded properly (looking correct when clicking into the field). Not sure if it helps, but in our current code we create the fdf with this (and then hand it to pdftk) and have no encoding issues: https://github.com/ccnmtl/fdfgen/tree/master/fdfgen

Tested with current Acrobat Reader and Sumatra, happens on both.

Relates to:
#1306
#355

Metadata

Metadata

Assignees

Labels

workflow-formsFrom a users perspective, forms is the affected feature/workflow

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions