resetDocument = function resetDocument() {
    //reset fields relevant for objectNumber generation and xref.
    objectNumber = 0;
    contentLength = 0;
    content = [];
    offsets = [];
    additionalObjects = [];
    rootDictionaryObjId = newObjectDeferred();
    resourceDictionaryObjId = newObjectDeferred();
  }
@name getCreationDate
@memberof jsPDF#
@function
@instance
@param {Object} type
@returns {Object}