# docx4j-sample **Repository Path**: rox/docx4j-sample ## Basic Information - **Project Name**: docx4j-sample - **Description**: docx4j,使用docx模板生成pdf文件 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 3 - **Created**: 2021-04-23 - **Last Updated**: 2025-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [TOC] [^_^]: 2021/4/24 1:48 # 整理 ## WORD模板 - [x] 替换关键字,同一关键字多次替换; - [x] 替换结束后,导出成pdf文件,并已更新到最新版的docx4j; - [x] 替换关键字为图片,用了表格来定位和作为容器包裹图片,导致图片无法理想(浮动)嵌入到文字中; ## PDF - [x] 改为pdf搜索关键字(全中文)获取定位后,替换为图片 - [x] pdf背景写入文字水印 # QUOTE -- []() ## OfficeOpenXMl - [DrawingML-Object Positioning](http://www.officeopenxml.com/drwPicFloating.php) ## DOCX4J - [分别使用docx4j,jacob将文字与图片插入word中书签位置](https://www.cnblogs.com/zhanghaoliang/p/9098508.html) - [docx4j word转pdf](https://www.iteye.com/blog/01jiangwei01-2124289) - [docx4j中图片的使用(模板式)](https://www.chendd.cn/information/viewInformation/other/254.a) - [docx4j中模板的使用](https://www.chendd.cn/information/viewInformation/other/256.a) - [doc4xj 在word中插入图片并设置环绕方式](http://tdull.com/wordpress/2017/12/15/doc4xj_word_image_flaot_anchor/) - [Java 操作 office 的辅助工具](https://liuzh.blog.csdn.net/article/details/102703063) - [**【docx4j】docx4j操作docx,实现替换内容、转换pdf、html等操作**](https://blog.csdn.net/weixin_34295316/article/details/86022702) - [docx4j常用方法小结](https://www.cnblogs.com/cuizhf/p/5837363.html) - [完美解决docx4j变量替换问题](https://blog.csdn.net/qq_35598240/article/details/84439929) - [docx4j学习笔记(6)](https://blog.csdn.net/sciurid/article/details/41872957) - [Office pptx/xlsx/docx to PDF to in docx4j 8.2.3](https://www.docx4java.org/blog/2020/09/office-pptxxlsxdocx-to-pdf-to-in-docx4j-8-2-3/) - [Convert DOCX to PDF using DOCX4J Java Library](http://www.techwaregeeks.com/word-processing/convert-docx-to-pdf-using-docx4j-java-library/) - [I'm trying to add image to new word doc with docx4j](https://stackoverflow.com/questions/21873479/im-trying-to-add-image-to-new-word-doc-with-docx4j) - [Docx4j - Images in the document](https://stackoverflow.com/questions/15827498/docx4j-images-in-the-document) - [Footer image and page Numbers](https://www.docx4java.org/forums/docx-java-f6/inline-vs-anchor-images-t726.html) - [How to create a floating image](https://www.docx4java.org/forums/docx-java-f6/how-to-create-a-floating-image-t1224.html) - [how to add a picture to a .docx document with Apache POI XWPF in java](https://stackoverflow.com/questions/7674115/how-to-add-a-picture-to-a-docx-document-with-apache-poi-xwpf-in-java) - [Bookmarks and templates advice](https://www.docx4java.org/forums/docx-java-f6/bookmarks-and-templates-advice-t681.html) - [BookmarksReplaceWithText.java](https://github.com/plutext/docx4j/blob/master/docx4j-samples-docx4j/src/main/java/org/docx4j/samples/BookmarksReplaceWithText.java) - [Java Code Examples for org.docx4j.TraversalUtil](https://www.programcreek.com/java-api-examples/?api=org.docx4j.TraversalUtil) - [OfficeProducer](https://github.com/izhangzhihao/OfficeProducer/blob/master/src/main/java/com/github/izhangzhihao/OfficeProducer/DocxProducer.java) - [FO/PDF output: support floating images (where possible) ](https://github.com/plutext/docx4j/issues/127) - [FOPictWriterAbstract](https://github.com/plutext/docx4j-export-FO/blob/master/src/main/java/org/docx4j/convert/out/fo/FOPictWriterAbstract.java) - [Docx4j simple text images (including the header and footer and body content)](https://www.programmersought.com/article/40442253182/) ## PDF - [Java - Add An Image Or Text Stamp To PDF Documents ](https://www.c-sharpcorner.com/article/java-add-an-image-or-text-stamp-to-pdf-documents/) - [Java给图片和PDF文件添加水印(图片水印和文字水印)](https://www.cnblogs.com/qlqwjy/p/9326468.html) - [java springboot实现pdf在线盖章,签字的功能](https://blog.csdn.net/weixin_38757817/article/details/109092774) - [Java 处理PDF图章(印章)——图片图章、动态图章](https://www.cnblogs.com/Yesi/p/10330705.html) - [JAVA操作PDF实现简单盖章功能(未签字)](https://www.freesion.com/article/97661355316/) - [Java读取PDF查找指定文字位置,并添加悬浮图片(文档签字/盖章)](https://download.csdn.net/download/qq_41028696/12031443) - [java使用itex读取pdf,并搜索关键字,为其盖章](https://www.cnblogs.com/wangwiz/p/9172759.html) - [Java操作PDF,在PDF文件指定位置输出水印](https://www.cnblogs.com/alphajuns/p/12436389.html) - [Java定位PDF中关键字的坐标](https://www.cnblogs.com/alphajuns/p/12436332.html) - [Java根据PDF中的关键字位置判定PDF文件是否合法](https://www.cnblogs.com/alphajuns/p/12436672.html) - [Adding Watermark to PDF using Java](https://www.code4copy.com/java/pdf-watermark/) - [Watermarking with PDFBox](https://stackoverflow.com/questions/8929954/watermarking-with-pdfbox) - [java实现图片和pdf添加铺满文字水印](https://www.cnblogs.com/guangxiang/p/10892530.html) ## StopWatch - [org.springframework.util.StopWatch:简洁的耗时统计小工具](https://blog.csdn.net/boling_cavalry/article/details/78231032) ## Linux字体 - [Linux下word转pdf中文乱码问题](https://blog.csdn.net/qq_40102178/article/details/100738793) - [Docx4j word to PDF Chinese song style (chinese text) type conversion scramble code](https://developpaper.com/question/docx4j-word-to-pdf-chinese-song-style-chinese-text-type-conversion-scramble-code/) - [chinese issue](https://github.com/plutext/docx4j/issues/259) - [Java Code Examples for org.docx4j.fonts.PhysicalFonts](https://www.programcreek.com/java-api-examples/?api=org.docx4j.fonts.PhysicalFonts)