-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Border default #682
Comments
@vielhuber check your PDF, maybe the inputs have a border set. |
Hmm, this looks quite clean beforehand: This is the original PDF: When the "fill color" is transparent and no border is set in the pdf, it has a border after processing it with pdf-lib: If the "fill color" is set to white and no border is set in the pdf, the behaviour is correct and it has no border after processing with pdf-lib: |
Can you reproduce this issue on your side? |
I'm running into this same issue. I'm using V1.17.1. I'm creating a bran new text field on a page and I'm only setting x, y, width, and height. It shows a black border around the field.
The existing PDF that was loaded has no border selected on every single existing field |
This issue still persists for |
I don't know if this answers your question, but if you would like to remove the border of a text field. I notice you can set the borderColor when you add the textfield to the page:
|
If a
TextField
has a background color but no border (transparent), the library adds a black border of value one by default:pdf-lib/src/api/form/appearances.ts
Line 446 in b4d9731
So a field with a white background color end up looking like this:

Instead they should look like this:

The text was updated successfully, but these errors were encountered: