Skip to content

uniqueck/asciidoctorj-office-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsciidoctorJ Office Extension

GitHub Actions MIT License badge

This AsciidoctorJ extension helps you to use office documents in your asciidoc toolchain.

Installation

To use this extension declare it as a dependency in asciidoctor-maven-plugin configuration.

<plugin>
	<groupId>org.asciidoctor</groupId>
	<artifactId>asciidoctor-maven-plugin</artifactId>
	<version>2.0.0-RC.1</version>
	<executions>
		<execution>
			<id>output-html</id>
			<phase>generate-resources</phase>
			<goals>
				<goal>process-asciidoc</goal>
			</goals>
			<configuration>
				<backend>html</backend>
			</configuration>
		</execution>
	</executions>
	<dependencies>
		<dependency> <!--(1)-->
			<groupId>de.uniqueck.asciidoctorj.extensions</groupId>
			<artifactId>asciidoctorj-office-extension</artifactId>
			<version>0.1.0</version> <!--(2)-->
		</dependency>
	</dependencies>
</plugin>
  1. asciidoctorj-office-extension is added

  2. check for the latest version at Maven Central

Microsoft Powerpoint Extension

slide macro

slide::/path/to/powerpointFile.pptx[slideNumber=1]

This macro generate an image from the first slide from the given powerpointFile.pptx and embedded it in your asciidoc document.

Currently only Microsofts *.pptx format is supported.

Attributes

  • slides-dir-name output directory name for converted images from slides

Microsoft Excel Extension

excel macro

excel::/path/to/excel.(xlsx|xls)[sheetName=Table1]

This macro generate a asciidoc table based on your excel sheet. Currently supported formats are xls and xlsx.

Attributes

  • sheetName name of sheet to be converted to AsciiDoc table