method PdfDocument.prototype.encodeimport { PdfDocument } from "https://deno.land/x/dwm@0.3.6/examples/clock/window.ts"; encode()Encodes the PDF into a buffer and closes the stream. Changes cannot be made to PDF after this.