Skip to content

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

Closed
JeelGajera wants to merge 1 commit into
parallax:masterfrom
JeelGajera:feat/configurable-producer-metadata
Closed

Add configurable Producer metadata to address information disclosure (#3878)#3968
JeelGajera wants to merge 1 commit into
parallax: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

@github-actions github-actions Bot added the Stale label Jun 20, 2026
@github-actions github-actions Bot closed this Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: Allow setting of Producer

1 participant