IDEAS, METHODS & DOCUMENTS

OmniDoc Journal.

A closer look at documents.
Parsing, translation, and what comes next.

Archive page 3

PDF to HTML in About a Second, Offline, Layout Intact
Engineering notes

PDF to HTML in About a Second, Offline, Layout Intact

OmniDoc turns a PDF into one HTML file offline in about a second: layout, fonts and images kept, text selectable and searchable, no upload or sign-in.

Read article
OmniDoc Web Translate: Bilingual Reading in Edge and Chrome
Engineering notes

OmniDoc Web Translate: Bilingual Reading in Edge and Chrome

Translations beside the original, bilingual video subtitles, and selection, hover and input translation. OmniDoc Web Translate for Edge and Chrome.

Read article
OmniDoc 1.07: Word Export 26 s to 11 s, Now on macOS
Engineering notes

OmniDoc 1.07: Word Export 26 s to 11 s, Now on macOS

OmniDoc 1.07 for Windows, macOS and Ubuntu: about 9 ms from keypress to laid-out text, and Word export cut from 26 s to 11 s.

Read article
SRT and ASS Subtitle Translation into Bilingual Subtitles
Engineering notes

SRT and ASS Subtitle Translation into Bilingual Subtitles

Translate SRT and ASS files cue by cue into bilingual or translation-only subtitles, with glossaries for names. No subtitles? Transcribe the audio first.

Read article
Bulk-Translate Word and PDF with Python: OmniDoc API Guide
Engineering notes

Bulk-Translate Word and PDF with Python: OmniDoc API Guide

Translate Word, PDF and Excel files in bulk with the OmniDoc API: upload, create jobs, get webhooks and download results. Python example included.

Read article
Translate Papers in Zotero with an AI Assistant
Engineering notes

Translate Papers in Zotero with an AI Assistant

With OmniDoc's Zotero plugin, an AI assistant searches your library, translates a paper's PDF and attaches the translation to the same item.

Read article
Translate a Scanned PDF: OCR, Full Translation, Same Layout
Engineering notes

Translate a Scanned PDF: OCR, Full Translation, Same Layout

Scanned PDFs have no text layer. OmniDoc runs OCR, full translation and layout rebuild in one job and returns a bilingual PDF or the translation alone.

Read article
Publish Any Document as a Shareable Web Page with OmniDoc
Engineering notes

Publish Any Document as a Shareable Web Page with OmniDoc

Publish Word, PDF, Markdown and UDOC files as web pages in one click. The HTML reopens as an editable document, and interactive charts keep working.

Read article
Get Polished Word and PDF Files from Doubao and DeepSeek
Engineering notes

Get Polished Word and PDF Files from Doubao and DeepSeek

Connect OmniDoc to an MCP-capable AI client and Doubao, DeepSeek and other models can deliver editable, well-formatted Word and PDF files.

Read article
Thesis Formatting Without All-Nighters: OmniDoc Templates
Engineering notes

Thesis Formatting Without All-Nighters: OmniDoc Templates

Templates for Chinese journal papers and theses, plus AI that fixes line spacing, indents and fonts in one pass, with Word import and export.

Read article
OmniDoc Desktop: A Free, Ad-Free Office Suite
Engineering notes

OmniDoc Desktop: A Free, Ad-Free Office Suite

OmniDoc desktop is free for local editing and format conversion, with no account and no ads: four offline editors for documents, sheets, slides and images.

Read article
Let AI Edit Word, Excel and PowerPoint Files with OmniDoc
Engineering notes

Let AI Edit Word, Excel and PowerPoint Files with OmniDoc

OmniDoc desktop ships an MCP document interface: connect Claude or another AI assistant to create, check and revise editable Word and PDF files.

Read article
Browser Extension or File Translation? Choosing in OmniDoc
Engineering notes

Browser Extension or File Translation? Choosing in OmniDoc

Reading a web page and translating a file are different jobs: the extension shows pages side by side; OmniDoc Translate keeps the layout of PDF and Word.

Read article
Valid JSON Isn't Correct Data: Contracts for Amount and Unit
Structured data

Valid JSON Isn't Correct Data: Contracts for Amount and Unit

hands the invoice or quotation to the parser and obtains a valid JSON, which only indicates that it can be read by the program.1200 is the unit price or the tot

Read article
HTML to Plain Text Without Gluing Paragraphs Together
HTML & web

HTML to Plain Text Without Gluing Paragraphs Together

When you use Beautiful Soup to extract web page content, the most common issue isn't extraction failure, but rather that the extracted text gets "stuck" togethe

Read article
Read Excel Percentages and Amounts with Their Formats
Excel & data

Read Excel Percentages and Amounts with Their Formats

When automating Excel report processing or performing document translation, developers often fall into a subtle trap: directly reading cell.value and assumes th

Read article
Exporting a Huge Sheet? The Trade-Offs of write_only Mode
Excel & data

Exporting a Huge Sheet? The Trade-Offs of write_only Mode

writes to the worksheet only via sequential appending and does not support random access by coordinates. You should first define the relevant layout, then appen

Read article
Excel Merged Cells Only Fill the Top-Left: How to Extract
Excel & data

Excel Merged Cells Only Fill the Top-Left: How to Extract

When using openpyxl to iterate through Excel row data, developers often encounter a typical issue: in the Excel application, cells A2:A5 clearly display the sam

Read article
Repeating Headers in Multi-Page Word Tables: Data vs Layout
Word & layout

Repeating Headers in Multi-Page Word Tables: Data vs Layout

The most common failure when programmatically parsing cross-page Word tables is not that the content cannot be read, but rather that “repeated header rows in th

Read article
Word Author and Revision Data: Keep or Clear Before Export?
Word & layout

Word Author and Revision Data: Keep or Clear Before Export?

The core string attributes can be cleared, but the date attribute cannot be assigned None. Below, we retain the date and demonstrate only the cleaning of string

Read article
Extra Gaps After Translating Word? Check Paragraph Spacing
Word & layout

Extra Gaps After Translating Word? Check Paragraph Spacing

An empty paragraph does not have spacing explicitly set, nor can it be assumed to be harmless; style inheritance, section breaks, and drawing objects may all af

Read article
Keep Word Image Captions from Getting Lost in Translation
Word & layout

Keep Word Image Captions from Getting Lost in Translation

The text of the paragraph containing the image is merely contextual candidate material, not a verified figure caption. Inline and floating figures should be inv

Read article
One Landscape Table Page in Word, Without Rotating the Rest
Word & layout

One Landscape Table Page in Word, Without Rotating the Rest

After constructing all sections, re-fetch the target section by its index to avoid mistakenly treating the last section object saved before adding new subsectio

Read article
Word Body Translated but the Header Wasn't? Here's Why
Word & layout

Word Body Translated but the Header Wasn't? Here's Why

When translating multi-chapter Word documents, a common issue is this: the main text has been perfectly replaced with the target language, yet the headers and f

Read article
Merged Word Cells Read as Duplicates? Here's Why
Word & layout

Merged Word Cells Read as Duplicates? Here's Why

merged cells appear repeatedly in layout grid access and cannot be deduplicated by text. This synthetic example constructs only horizontal merges; omitting grid

Read article
Overlaid Two PDFs and Part Is Missing? Check the Page Boxes
PDF engineering

Overlaid Two PDFs and Part Is Missing? Check the Page Boxes

The CropBox modifies the display area, not the page content itself. If a stamp becomes invisible after being overlaid on the right side of the page, first check

Read article
pypdf Can't Read Scanned PDFs, and No Setting Will Fix It
PDF engineering

pypdf Can't Read Scanned PDFs, and No Setting Will Fix It

Short or empty text is merely a signal for further verification and should not be directly equated with a scanned document. Below, we record page by page whethe

Read article
PDF Attachments: Don't Miss Embedded Files Before Delivery
PDF engineering

PDF Attachments: Don't Miss Embedded Files Before Delivery

attachments with the same name can correspond to multiple pieces of content. Do not use local sequence numbers or cleaned-up names as global keys; instead, assi

Read article
Why Text Won't Extract from a Filled-In PDF Form
PDF engineering

Why Text Won't Extract from a Filled-In PDF Form

The values of AcroForm fields and the text rendered on the page come from different sources. Below, we construct text fields using PyMuPDF and then read them wi

Read article
Hit an Encrypted PDF? How to Stop the Task Queue Cleanly
PDF engineering

Hit an Encrypted PDF? How to Stop the Task Queue Cleanly

When building an automated document-processing pipeline, the most insidious failures are often not program crashes, but rather the silent generation of blank or

Read article