pdf-issues icon indicating copy to clipboard operation
pdf-issues copied to clipboard

Proposal: Enhancing Free Text Alignment Options

Open AmyLin2013 opened this issue 1 year ago • 3 comments

Proposal: Enhancing PDF Free Text Alignment Options To enhance the flexibility and usability of free text annotations, I propose the addition of more alignment options, including vertical alignment. The suggested codes are as follows: Horizontal Alignment:

0: Left-justified 1: Centered 2: Right-justified 3: Justified (full justification) Vertical Alignment:

4: Top-aligned 5: Middle-aligned 6: Bottom-aligned Combined Horizontal and Vertical Alignment:

7: Top-left 8: Top-center 9: Top-right 10: Middle-left 11: Middle-center 12: Middle-right 13: Bottom-left 14: Bottom-center 15: Bottom-right Default values:

Horizontal alignment: 0 (left-justified) Vertical alignment: 4 (top-aligned) By incorporating these additional alignment options, users will have greater control over the presentation of freetext annotation , leading to improved document readability and aesthetics.

My suggestion aims to provide a comprehensive set of alignment options to enhance the functionality and flexibility of freetext annotations in PDF documents.

================= Referene: Table 177 — Additional entries specific to a free text annotation

image

AmyLin2013 avatar Jul 16 '24 10:07 AmyLin2013

Seems very appropriate for supporting Asian, Middle Eastern and other non-English languages. Thank you for your suggestion!

petervwyatt avatar Jul 17 '24 01:07 petervwyatt

You essentially put two integers into a single one. If that really is intended, please consider using certain bits for the one and certain bits for the other, e.g. bits 0 and 1 for horizontal alignment and bits 2 and 3 for vertical alignment. That would leave the existing values as is and make new numberings less arbitrary.

mkl-public avatar Nov 07 '24 09:11 mkl-public

I'd like to get a better understanding of the use cases here, since I don't understand why using a FreeText annotation here, would be a good choice over possible other options.

lrosenthol avatar Apr 27 '25 12:04 lrosenthol