Stamps change to draft after saving in Chrome 62

118 views
Skip to first unread message

Matt Parizeau

unread,
Nov 9, 2017, 7:35:01 PM11/9/17
to pdfnet-w...@googlegroups.com
Q:

In Chrome 62 when saving a PDF that contains stamps the output PDF has all of the stamps listed as "Draft". What can be done to fix this?

A:


If you're unable to update to this build you can add the following code in your config file:

var stampSerialize = Annotations.StampAnnotation.prototype.serialize;
console.log('Chrome StampAnnotation patch applied');
Annotations.StampAnnotation.prototype.serialize = function(element) {
 stampSerialize
.apply(this, arguments);
 
var imagedataEl = element.querySelector('imagedata');
 
if (imagedataEl) {
   
var imagedata = imagedataEl.textContent.split('%0A').join('');
   imagedataEl
.textContent = imagedata;
 
}
};

Reply all
Reply to author
Forward
0 new messages