Article Details

Title · Authors · Abstract · Keywords · DOI · References

Design and Implementation of Batch Document Generation Tool Based on Templates and Datasheets

YANG Qihan, MA Xiaotang, HU Liang, ZHANG Yuxuan, ZHANG Fan, XU Zhichao

(School of Artificial Intelligence, China University of Mining and Technology-Beijing, Beijing 100083, China)

Section:Computer Technology · Vol. 2026, Issue 5 · Pages:60-65 · 2096-4706(2026)05-0060-06 · CLC number:TP311 · Document code:A · DOI:10.19850/j.cnki.2096-4706.2026.05.012

Abstract

In response to the growing demand for efficient batch document generation in office automation scenarios, this study designs a Python-based tool named TTVDUW (This is The Very Document You Want). This tool can parse CSV files or Excel sheet data and fill the data into a Word template provided by the user, and generate customized documents in batches. TTVDUW employs the modular design comprising five functional components such as data ingestion, data preprocessing, template parsing, document generation, and file naming/output, which ensure accurate and efficient processing of data files in different formats and generate Word documents that meet user needs. Through practical testing, the system demonstrates outstanding performance in generation speed, accuracy, and stability. Experimental results show that the tool can generate 3 300 to 3 600 documents per minute with a 100% field replacement accuracy and stable memory usage, enabling the efficient execution of batch document generation tasks.

Keywords

automatic document generation; office automation; Python; template engine

References

  1. [1] Liu Jinshuo, Liu Ning Automatic generation of semi-structured text for bidding documents [J]. Computer Engineering, 2023, 49 (3): 67-72
  2. [2] Chen Xuqing, Zhang Shuo, Guo Xumin, etc Software Design and Implementation of Application Capability Evaluation System Based on Xinchuang Platform [J]. Computer Applications and Software, 2024, 41 (11): 60-65130
  3. [3] Li Chaoyang, Zhou Weigui, Zhang Xiaofeng, etc Design and Implementation of a Network Performance Management System Based on Django in Kirin System [J]. Computer Applications and Software, 2024, 41 (3): 130-133
  4. [4] Ni Shusen, Wang Fangfei, Li Yanjie Flexible Application of Excel Software in Editing Work [J]. Heilongjiang Animal Husbandry and Veterinary Medicine, 2019 (22): 31-33
  5. [5] Ni Shusen, Ding Yuehua, Xu Xiaonan The production of batch letters in image editing work [J]. Heilongjiang Animal Husbandry and Veterinary Medicine, 2019 (12): 31-33
  6. [6] Zhao Chengjun, Rong Shuping Application of Computer Information Processing Technology in Office Automation - Evaluation of "Computer Information Processing Case Tutorial" [J]. Chinese Journal of Science and Technology, 2023, 18 (8): 952
  7. [7] Xu Jinghong, Zhang Rukun The Application of ChatGPT in the Editing and Publishing Industry: Opportunities, Challenges, and Countermeasures [J]. Chinese Editor, 2023 (5): 116-122
  8. [8] Xie Guilan Research on Data Processing Based on Python [J]. Modern Computer, 2024, 30 (24): 158-161
  9. [9] Zhang Runa, Fei Qiang, Tian Feng, etc Research on General Text Generation and Verification Tools Based on Multivariate Data Indicators [J]. Telecommunication Engineering Technology and Standardization, 2025, 38 (4): 88-92
  10. [10] Luo Rong, Huang Jun, Li Maofeng, etc A Fast Method for Generating Complex Documents Based on Word Templates [J]. Computer Applications and Software, 2020, 37 (10): 57-63
  11. [11] Dai Bingjie Design and Implementation of Analysis Report Generation Subsystem in Psychological Evaluation Platform [D]. Beijing: Beijing University of Posts and Telecommunications, 2022
  12. [12] Li Zhide, Xu Shibo, Guo Jinhan A new implementation and application of layered template files based on controls [J]. Experimental Technology and Management, 2020, 37 (2): 77-81
  13. [13] Zhang Lijun, Liu Si, Liao Jitong, etc Design and Implementation of Computer Network Experiment Course Question and Answer System Based on Large Model Retrieval Enhanced Generation [J]. Experimental Technology and Management, 2024, 41 (12): 186-192
  14. [14] Lu Yao, Fan Xuesong Design and Implementation of a Proposal Management Information System for University Representatives Based on Multi level Structure [J]. Computer Applications and Software, 2019, 36 (12): 36-39, 92
  15. [15] Cao Changyu, Zheng Jiachun, Huang Yiqi Research on Special Symbol Recognition and Localization Algorithm for Multi Template Matching [J]. Computer Applications and Software, 2021, 38 (3): 175-180209
  16. [16] Zhang Longyang, Yang Weidong Intelligent Check of Requirement Template Consistency [J]. Computer Applications and Software, 2023, 40 (9): 290-295302

Funding

Undergraduate Education Reform and Research Project of China University of Mining and Technology (Beijing) (J220401); China University of Mining and Technology (Beijing) College Student Innovation Training Program (202414009)

About the authors

Yang Qihan (February 2003-), male, Han ethnicity, from Jiaozuo, Henan Province, is currently pursuing a bachelor's degree with research interests in artificial intelligence and computer technology; Ma Xiaotang (January 2004-), female, Han ethnicity, from Suzhou, Anhui Province, is currently pursuing a bachelor's degree with research interests in artificial intelligence and computer technology; Hu Liang (October 2004-), male, Han ethnicity, from Huanggang, Hubei, is currently pursuing a bachelor's degree. His research interests include artificial intelligence and computer technology; Zhang Yuxuan (April 2004-), male, Han ethnicity, from Yichang, Hubei Province, is currently pursuing a bachelor's degree with research interests in artificial intelligence and computer technology; Zhang Fan (1972.01-), male, Han ethnicity, from Huining, Gansu Province, professor, PhD, research interests: digital twin and parallel intelligence theory, intelligent detection and pattern recognition, intelligent monitoring and semantic understanding, artificial intelligence, computer technology; Xu Zhichao (February 1995-), male, Han ethnicity, from Nantong, Jiangsu, is an engineer with a master's degree. His research interests include machine vision, office automation operation and maintenance, artificial intelligence, and computer technology.