Render a PDF in the browser
Pages as the file describes them, with text you can select.
.pdfOne package, every generation — @genomdev/pdf
Loading the viewer…
sample.pdfrendered in this tab, nothing uploaded
PDF shares nothing with the office formats — no ZIP, no OPC, no DrawingML — so an application that shows PDFs and nothing else carries none of that code. The object model, the filters down to JBIG2 and JPEG 2000, the Type 1 and CFF charstring interpreters and the content-stream evaluator are all implemented here rather than delegated.
import { DocumentViewer } from '@genomdev/react';
import { pdf } from '@genomdev/genom/lazy';
// One package covers every generation of a PDF; the reader is
// chosen from the container, not from the file name.
<DocumentViewer file={file} formats={[pdf]} fit="width" />;