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

Add TextField Background Opacity Support #1614

Open
Patzi275 opened this issue Mar 30, 2024 · 0 comments
Open

Add TextField Background Opacity Support #1614

Patzi275 opened this issue Mar 30, 2024 · 0 comments

Comments

@Patzi275
Copy link

Patzi275 commented Mar 30, 2024

Describe your idea

Enable pdf-lib to adjust background opacity of TextField objects. This enhancement would allow users to customize PDF forms and documents more flexibly. Here's a proposed API snippet:

const field = form.createTextField('favorite.superhero')
field.setText('One Punch Man')
field.addToPage(page, { 
    // ...
    backgroundOpacity: 0.0
})

What problem are you trying to solve?

Current pdf-lib lacks programmable control over TextField background opacities, limiting customization options for PDF forms and documents.

Why does this matter to you?

Enhances visual appeal and usability of PDF documents, catering to a wide range of pdf-lib users dealing with form generation and document customization.

Would others find this helpful?

Yes, I cannot give you an number honestly

Are you interested in implementing your proposal?

No

Why are you submitting a proposal?

My primary goal is to contribute to the improvement of pdf-lib by highlighting a feature gap.

Additional Notes

No response

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

1 participant