asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.91k stars 297 forks source link

Book Cover Feature #114

Closed cortix closed 1 year ago

cortix commented 9 years ago

Hi all,

I want add book cover to my pdf..If you add this feature next couple days, it would be great !!

nelruk commented 7 years ago

Add cover not only for pdf but also for epub3

shawngiese commented 7 years ago

Can't you just add a custom XSL into your docbook workflow and then the docinfo.xml addition to put your cover info?

life888888 commented 2 years ago

AsciidocFX 1.8.1

Cover page image

https://docs.asciidoctor.org/epub3-converter/latest/

Title Page Image

https://docs.asciidoctor.org/pdf-converter/2.1/title-page/

Logo Image

https://docs.asciidoctor.org/pdf-converter/2.1/title-page/

= Book Name
Author Name
:doctype: book
:encoding: utf-8
:lang: en
:toc: left
:toclevels: 2
:numbered:
:showtitle:
//https://github.com/asciidocfx/AsciidocFX/issues/130
//https://github.com/asciidocfx/AsciidocFX/issues/114
//FRONT COVER PAGE
//PURE IMAGE PAGE ONLY, BEFORE TITLE PAGE
:front-cover-image: image:front-cover.png[]
//TITLE PAGE
:title-page:
//ADD IMAGE IN TITLE PAGE 
:title-page-background-image: image:title-bg.png[]
//:title-logo-image: image:logo.png[top=25%,align=center,pdfwidth=0.5in]

3 image in images dir

Example PDF book.pdf

Example EPUB , UNZIP book.zip -> book.epub book.zip