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

Allow metadata setting for a document #157

Merged
merged 3 commits into from
Oct 24, 2017
Merged

Allow metadata setting for a document #157

merged 3 commits into from
Oct 24, 2017

Conversation

rogierslag
Copy link
Contributor

This allow one to set the pdf metadata again. See the example how to.

@diegomura
Copy link
Owner

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;
}
Copy link
Owner

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 ifs statements, or maybe replacing them for title || undefined. Maybe I'm being a bit nitpicking here haha sorry

Copy link
Owner

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

@diegomura
Copy link
Owner

I added some comments 😄

@diegomura
Copy link
Owner

@rogierslag I added some other changes. Hope you don't mind 😄

Copy link
Contributor Author

@rogierslag rogierslag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@diegomura diegomura merged commit c42b258 into diegomura:master Oct 24, 2017
@rogierslag rogierslag deleted the metadata branch October 24, 2017 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants