<commit_before># Gradle Document Converter Plugin
This Gradle plugin provides document conversion facilities in the form of `Copy`-like Gradle tasks.

Currently provided task types:

*   [`ru.myllyenko.gradle.plugins.documents.converter.MsWordToPdfConversionTask`]: converts Microsoft Word documents to PDF.

## MsWordToPdfConversionTask

It processes input files as a Copy task configured in the following way:

*   `include("**/*.doc")`;
*   `include("**/*.docx")`;
*   `rename("(.+)\\.docx?$", "$1.pdf")`.

By default on Windows systems a local MS Word instance is used for conversion as described [here](http://www.suodenjoki.dk/us/productions/articles/word2pdf.htm). This can be disabled by setting the `useLocalMsWord` parameter to `false`.

On other operating systems and when `useLocalMsWord` is set to `false`, conversion is performed by means of third-party Java libraries: Apache POI (`doc` -> `HWPF` -> `FO` -> `PDF`) and Apache POI + xdocreport (`docx` -> `XWPF` -> `PDF`).

Configuration example:

    task("wordToPdf", type: ru.myllyenko.gradle.plugins.documents.converter.MsWordToPdfConversionTask)
	{
		from("src/main/word")
		into("build/docs/pdf")

		useLocalMsWord = false
	}

## Release Notes

### 1.0.0 (2016-03-07)

First version.<commit_msg>Documentation has been moved to Javadoc<commit_after># Gradle Document Converter Plugin
The plugin is documented in [Javadoc](https://myllyenko.github.io/gradle-document-converter-plugin/).
{'fraction_non_alphanumeric': 0.12998624484181567, 'fraction_numerical': 0.008940852819807428, 'mean_word_length': 4.82, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1128711', 'n_tokens_mistral': 480, 'n_tokens_neox': 451, 'n_words': 139}