Skip to content

Add configurable Producer metadata to address information disclosure (#3878)#3968

Open
JeelGajera wants to merge 1 commit intoparallax:masterfrom
JeelGajera:feat/configurable-producer-metadata
Open

Add configurable Producer metadata to address information disclosure (#3878)#3968
JeelGajera wants to merge 1 commit intoparallax:masterfrom
JeelGajera:feat/configurable-producer-metadata

Conversation

@JeelGajera
Copy link
Copy Markdown

Add configurable Producer metadata property

Allow users to override the PDF Producer field via setDocumentProperties() and setDocumentProperty() to address information disclosure concerns.

Usage:

// Set custom producer
const doc = new jsPDF();
doc.setProperties({ producer: 'My Custom App v1.0' });

// Or via setDocumentProperty
doc.setDocumentProperty('producer', 'Custom Producer');

// Default behavior (unchanged) omit producer to get "jsPDF <version>"
const doc2 = new jsPDF();

Fixes #3878

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.

Request: Allow setting of Producer

1 participant