How SameLayout works
SameLayout is a small, independent tool for one job: give you a PDF in another language that still looks like the original — for a contract, a paper, a manual, a leaflet or an official letter — without a subscription.
1. Reading the page (in your browser)
The PDF is opened with pdf.js inside your browser. Text runs are grouped into lines and lines into blocks — paragraphs, headings, table cells, captions — with their position, size, weight and colour. A page with no text layer but an image is treated as a scan.
2. Translating
The blocks of one page are sent as a numbered list to a large language model, told to translate each block on its own, keep numbers, names, URLs and formulas, and stay about as long as the source. If the model merges or skips a block, only the missing blocks are asked again. A scanned page is sent as an image to a vision model that returns each text region with its translation; it counts as 2 pages.
3. Rebuilding the PDF (in your browser)
Each block is covered with the background colour sampled around it, and the translation is written in the ink colour sampled inside it, wrapped to the block's width and shrunk only if needed. Everything else on the page — images, vector art, lines, links — is the original object. Fonts are cut to exactly the characters used, so files stay small. Encrypted PDFs that cannot be edited are rebuilt from high-resolution page renders instead.
4. Checking our own work
The layout test runs the same code on public documents and publishes the output with the number of blocks that shrank or overflowed. We re-run it when the engine changes.
5. Keeping it free
Each browser gets 5 pages a day. We also cap what we spend on free translation each day; on a very busy day free pages pause until 00:00 UTC. One-time packs pay for the rest — no subscription, no ads.
Contact
Questions, refunds or a document that came out wrong: hello@shipitsolo.com.