Repository navigation
Feature: Form Field types (PDF 1.7 Section 12.7.4) - #23
Conversation
|
I once again went with a prefix based approach to make the specific functions for |
| // TODO: the spec likely means the equivalent of unicode graphemes here | ||
| // for characters | ||
|
|
||
| /// Write the `/MaxLen` attribute to set the maximum length of the fields | ||
| /// text in characters. Only permissible on text fields. | ||
| pub fn text_max_len(&mut self, len: i32) -> &mut Self { | ||
| self.dict.pair(Name(b"MaxLen"), len); | ||
| self | ||
| } |
There was a problem hiding this comment.
As noted here, I was looking for mentions of character in the spec and couldn't really find what they define to be a character, but I assume this is about what the user sees.
There was a problem hiding this comment.
@reknih this is still relevant, unfortunately moving the code around has marked this as outdated.
|
While this is marked as ready for review, there is still some work to do, like exporting the types and such. |
reknih
left a comment
There was a problem hiding this comment.
It's a huge section of the spec so there are bound to be some comments. You are making good progress.
|
I'm new to typst can anyone guide me how to add interactive checkbox to pdf without postprossing |
This PR adds the writers and types for writing various types form fields.
Signature Fields(Left out to reduce review surface to in turn ensure correct implementation)