-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow metadata setting for a document #157
Conversation
Thanks man! I'm going to write some tests for this if you are ok and then merge it. |
} | ||
if (keywords) { | ||
this.root.info.Keywords = keywords; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these 4 the only type of metadata possible? (I don't actually know 😅 )
Also. is there a problem if some metadata keeps set asnull
value? I'm asking if we can get rid of the if
s statements, or maybe replacing them for title || undefined
. Maybe I'm being a bit nitpicking here haha sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't worry. I answer myself 😅 . Didn't worked with the way I suggested
I added some comments 😄 |
@rogierslag I added some other changes. Hope you don't mind 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This allow one to set the pdf metadata again. See the example how to.