# Print and PDF > A4 portrait with print + download buttons. The canonical DocMosaic shell. Source: https://docs.docmosaic.com/docs/examples/print-and-pdf This is the shell DocMosaic.com itself runs - A4 portrait page, a toolbar with Add Image / Print / Download, the page rail on the left, the preview dialog ready to open. Use it as the baseline whenever you want a print-grade editor without thinking about composition. ## Code ```tsx 'use client'; import { Editor } from '@docmosaic/react'; import { createDocument } from '@docmosaic/core'; import '@docmosaic/react/styles.css'; const initialDocument = createDocument({ name: 'Untitled document', pageSize: 'A4', orientation: 'portrait', }); export default function PrintAndPdfEditor() { return ( ); } ``` `Editor.DownloadButton` produces a real PDF via the bundled `jspdf` pipeline. `Editor.PrintButton` opens the OS print dialog with the canvas rasterised - useful when users want paper instead of a file. `Editor.FileSizeBadge` shows a live size estimate so users know what they're about to download. All geometry is stored in **PDF points (72 DPI)**, not CSS pixels. The download is byte-identical between dev and prod because the document model carries pre-converted coordinates. See [Unit system](/docs/concepts/unit-system). ## Try it ## Related - [Editor.DownloadButton](/docs/primitives/download-button) - the PDF export - [Editor.PrintButton](/docs/primitives/print-button) - OS print dialog - [Editor.Preview](/docs/primitives/preview) - full-document preview - [Custom PDF backend](/docs/examples/custom-pdf-backend) - swap jsPDF for something else