Skip to content

Conversation

jutunen
Copy link
Contributor

@jutunen jutunen commented May 26, 2016

XMP metadata plugin

Usage:

var pdf = new jsPDF('p','pt','a4'); //orientation, unit, format
pdf.addMetadata("My metadata as a string.","http://my.namespace.uri/");

First parameter is the actual metadata in the form of string. String is the only allowed data type. Handling of other data types is unimplemented and untested.

XML markup characters "<", ">" and "&" in the metadata string should be written using XML entities.

Second parameter is the XML namespace URI string for the metadata. If parameter is omitted, a default value of "http://jspdf.default.namespaceuri/" is used. Last character in the URI string should be slash or hash.

@MrRio MrRio merged commit 76edb33 into parallax:master Jun 14, 2016
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