MCPcopy Index your code
hub / github.com/foliojs/pdfkit / flushPages

Method flushPages

lib/document.js:204–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 }
203
204 flushPages() {
205 // this local variable exists so we're future-proof against
206 // reentrant calls to flushPages.
207 const pages = this._pageBuffer;
208 this._pageBuffer = [];
209 this._pageBufferStart += pages.length;
210 for (let page of pages) {
211 this.endPageMarkings(page);
212 page.end();
213 }
214 }
215
216 addNamedDestination(name, ...args) {
217 if (args.length === 0) {

Callers 2

addPageMethod · 0.95
endMethod · 0.95

Calls 1

endMethod · 0.45

Tested by

no test coverage detected