afs_docbook_convert - AFS - Reference Guides

AFS Filters Description

Product
AFS
AFS_Version
7.11
Category
Reference Guides
language
English

The DocBook Converter filter provides the ability to convert documents to DocBook 5.0

The filter is declared with the afs_docbook_convert type. It is in the antidot-paf package. It is a processor filter.

This filter can be instantiated only once at any given moment. It will not read the "instances" parameter in the configuration.

The Convert into DocBook filter specifications are described in the following table:

Parameter name

Mandatory

Type

Default

Description

input_layer

No

layer

CONTENTS

The layer to convert.

output_layer

No

layer

USER_1

The layer where to write the DocBook 5.0 conversion.

type

No

string

N/A

It forces a given plugin type for the input layer. It is useful when the mime/type detection fails.

exclude_pages

No

list

N/A

List of pages to exclude from a PDF

exclude_pages_from_end

No

list

N/A

List of pages to exclude from a PDF, counting from the end

The exact transformation capabilities are described in the afs_doc_index documentation.
Tip: Example of how to exclude pages from a PDF file. To exclude the first two pages and the last one (whatever the size of the PDF), the exclude_page parameter must be set to {1,2} and the exclude_pages_from_end parameter to {1}. If the PDF contains 5 pages, the filter will only consider the {3,4} pages.