Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to set line height using text field? #1536

Open
2 tasks done
dimaskc opened this issue Nov 2, 2023 · 1 comment
Open
2 tasks done

Is it possible to set line height using text field? #1536

dimaskc opened this issue Nov 2, 2023 · 1 comment

Comments

@dimaskc
Copy link

dimaskc commented Nov 2, 2023

What were you trying to do?

How to set line height in text field?

image

How did you attempt to do it?

form.getTextField('property_appointment')
		.setText(`lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet ${jsonData?.property?.appointment} lorem ipsum dolor sit amet lorem ipsum dolor sit amet ${jsonData?.property?.appointment} lorem ipsum dolor sit amet lorem ipsum dolor sit amet ${jsonData?.property?.appointment} lorem ipsum dolor sit amet`);

What actually happened?

setLineHeight() doesn't work

What did you expect to happen?

I want to set custom line height

How can we reproduce the issue?

Version

1.17.1

What environment are you running pdf-lib in?

Node

Checklist

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

@BrunnerLivio
Copy link

Someone found a solution for this? I can't seem to figure out how to set it in either Adobe Acrobat nor setting it programmatically using PDF-Lib, so that pdfDoc.getForm().getTextField('my-field').setText('Value') has a bigger line-height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants