frankluo666 / comments-of-my-blog Goto Github PK
View Code? Open in Web Editor NEWcomments repository for my own blog.
comments repository for my own blog.
https://blog.fortruth.link/2024/03/java_create-an-epub-format-file-using-java/
Your browser does not support the audio tag.
1、导包 如果用的是maven,在pom.xml中这么写:
2、使用java生成EPUB格式的示例代码: import nl.siegmann.epublib.domain.Author; import nl.siegmann.epublib.domain.Book; import nl.siegmann.epublib.domain.Resource; import nl.siegmann.epublib.epub.EpubWriter; import java.io.FileOutputStream; import java.io.IOException; /** * 使用java创建Epub格式文件的例子。 */ public class CreateEpub { // 标题 private static final String TITLE = "标题"; // 作者 private static final String AUTHOR = "作者"; // 编码格式 private static final String CHARSET = "UTF-8"; public static void main(String[] args) { try { // 创建一个新的 EPUB 文档 Book book = new Book(); // 设置元数据 book.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.