javascript - Adding custom field to DocumentInfoValidators -
i want use custom field in pdf metadata. when pdf loads pdf.js , examine contents of getmetadata()
field missing, because isn't included in list of valid fields documentinfovalidators
.
if add field directly in pdf.js source can see field - there proper way add custom field name, or usual modify , build own version?
i'm using pdfjs@1.7.312.
i can see definition in pdf.worker.js
around line 39125, in definition of pdfdocument; gets used later in documentinfo()
var documentinfovalidators = { entries() { return shadow(this, 'entries', { title: isstring, author: isstring, subject: isstring, keywords: isstring, creator: isstring, producer: isstring, creationdate: isstring, moddate: isstring, trapped: isname }); } };
Comments
Post a Comment