Chinese official documents
(GB/T 9704)
Write the text; the layout follows the national standard for party and government documents — down to the millimetre.
Drop files or a folder
.md · .docx · .tex · .pdf · .zip — include images and refs.bib
The PDF is re-typeset in the style you choose — headings, lists, tables, pictures and text colors are kept.
If ticked, this PDF is sent to SoMark's free recognition service (free-oxr.somark.ai); this usually takes 30–90 seconds. Unticked, it stays on this site. Privacy
Public repositories. Paste the address of a .md file, a folder or a repository (its README is used). Pictures the file uses are fetched too.
Optional. Follows its page setup, fonts and styles, its headers and footers as in Word (odd / even and first pages, tables, logos, watermark) and page numbers. A cover or letterhead in it is used too: mark the values with {{title}}, {{date}}… and the place of your text with {{body}}.
More options
Done
The conversion didn't finish
Write Markdown. Deliver real documents.
Every page here was typeset by this converter from the source beside it. Nothing retouched.
---
title: 关于做好2026年度安全生产工作的通知
gongwen:
份号: "000123"
密级: 机密★1年
紧急程度: 特急
发文机关标志: 星河市人民政府文件
发文字号: 星政发〔2026〕12号
主送机关: 各区县人民政府,市政府各部门,各有关单位:
发文机关署名: 星河市人民政府
成文日期: 2026-10-24
附注: (此件公开发布)
抄送: 市委各部门,市人大常委会办公室,市政协办公室,市中级人民法院,市人民检察院,各人民团体。
印发机关: 星河市人民政府办公室
印发日期: 2026-10-24
---
…

Chinese official document to GB/T 9704: red header, document number, layout grid.
Open this PDF ↗Also delivered as an editable Word file
Browse all examples, with PDF, Word and source to download →
Exact page grid
156 × 225 mm text block, 28 characters per line and 22 lines per page, as GB/T 9704 requires.
Every element
Copy number, classification, urgency, red header, issue number, signer, recipients, attachments, notes and record block.
Signature and date
Placed according to the standard for sealed and unsealed documents, never alone on a page.
Heading levels
一、 (一) 1. (1) with the prescribed typefaces, numbered automatically if you like.
How it works
- 1
Write in Markdown
Add a gongwen: block at the top with the issuing authority, issue number, recipients and date (see the writing syntax).
- 2
Choose the style
The “Gov. document” style is selected on this page; documents with a gongwen: block switch to it automatically.
- 3
Download PDF and Word
The PDF matches the standard exactly; the Word file keeps the same structure for further editing.
Questions and answers
Which fonts are used?
Fangsong for body text, Heiti and Kaiti for headings, and a bold Song typeface in place of FZXiaoBiaoSong, which is not installed on most computers.
Is the PDF really to the standard?
Positions of the red header, separator line, page numbers and record block were measured against GB/T 9704 in our tests (within 0.05 mm).
Can I add attachments?
Yes. Each attachment is a ::: 附件 block; they are numbered, start on a new page and are listed after the body text.
Does it handle upward documents (上行文)?
Yes. Add 签发人 (signer) and the issue number moves left with the signer on the right.