Skip to content

C.3. Generator configuration

Jimmy Bourque edited this page Nov 30, 2026 · 1 revision

Français

Configuration Documentation

All supported settings for the WebApi project JbtiEvolution.OraklLearn.Generator.Host are in the appsettings.json file.

ApplicationInsights

Key Type Description Default
ApplicationInsights.ConnectionString string A string containing all the information required to initialize Azure Application Insights monitoring. <ConnectionString>

Example

"ApplicationInsights": {
  "ConnectionString": "<APPLICATION_INSIGHTS_CONNECTION_STRING>"
}

Logging

LogLevel

Key Type Description Default
Logging.LogLevel.Default string .Net logging Information
Logging.LogLevel.Microsoft.AspNetCore string .Net logging Warning

Example

"Logging": {
  "LogLevel": {
    "Default": "Information",
    "Microsoft.AspNetCore": "Warning"
  }
}

Generator

Settings related to the book and exam generation mechanisms. Depending on the AI models you are using, it is recommended to read the official documentation for each model to ensure that these settings are compatible. Otherwise, errors or unexpected generator behavior may occur.

The settings listed below are configured for OpenAI using the models defined in the Inference section.

Key Type Description Default
Generator.
AudioWordTimestamp
MaxMbChunkSize
integer Maximum size, in MB, of an audio file processed in a single operation when generating word timestamps. The book reader uses the generated file to highlight the word currently being read by the audio. 25
Generator.
ChapterParalellismTop
integer Maximum number of chapters that can be generated in parallel. This helps prevent exceeding your AI provider subscription rate limits. 10
Generator.
AudioBlocTargetTextLength
integer Target number of characters for each text-to-speech audio block. The AI model has a limit on the amount of text that can be processed at one time, so the generator will split lines into blocks based on this target value. This value must be less than AudioMaxTextLength. 3000
Generator.
AudioMaxTextLength
integer Maximum number of characters accepted by a text-to-speech request. 4096
Generator.
SynopsysCountMax
integer Maximum number of synopsis items generated for a book structure. 5
Generator.TryTolerance integer Maximum number of attempts to generate a book before the operation fails. Use this setting with caution: each retry restarts the generation process from scratch.

The user is billed only for the profile-tokens associated with a successful attempt. However, the real financial cost includes all failed attempts as well as the successful one.

This mechanism is intended to provide users with a more resilient delivery process.
2
Generator.ContentMaxTokens integer Maximum number of tokens used for long content generation and content review requests. 13000
Generator.DefaultMaxTokens integer Default maximum number of tokens used by AI requests when no context-specific parameter is defined. 4000
Generator.TagsTokens integer Maximum number of tokens used to generate book tags. These tags are used by the catalog for indexing. 200
Generator.
ChapterResumeTokens
integer Maximum number of tokens used to generate a chapter summary used for image generation. 2000
Generator.BookTitleTokens integer Maximum number of tokens used to generate a book title. 300
Generator.BookResumeTokens integer Maximum number of tokens used to generate a book summary. 800
Generator.MaleVoice string Text-to-speech voice used when the male voice option is selected. onyx
Generator.FemaleVoice string Text-to-speech voice used when the female voice option is selected. nova
Generator.RandomVoices array(string) Text-to-speech voices available when the random voice option is selected. alloy, nova, onyx, shimmer, fable, echo
Generator.RandomVoices[] string Text-to-speech voice available for random selection.
Generator.
GargageCollectorChapterCount
integer Number of generated audio chapters after which garbage collection is triggered. This operation is CPU-intensive, but it forces the release of unused memory objects. Because the generator is designed to run in a container, memory usage is a major factor in hosting costs.

A value that is too low can increase garbage collector activity and CPU demand.
4
Generator.
MaxProcessingAudioThrottle
integer Maximum number of audio generation operations that can run in parallel. AI providers enforce rate limits, and this setting helps prevent exceeding your subscription limits. 4
Generator.
MaximumProcessingDurationMinutes
int Maximum time, in minutes, allowed for a processor to complete its task.
Generator.
DefaultMaxMessageAgeSeconds
int Default value used when no ProcessorLimits is defined for a specific processor. Messages received by the generator are rejected if they are older than the specified number of minutes.
Generator.
DefaultBookImageUrl
string Public storage path of the default book image used when no generated or user-defined image is available. The image must be located in the Azure Storage account container dedicated to content files. common/images/front-book-magicbox.png
Generator.
SectionQuizQuestionCount
integer Maximum number of questions generated for a section quiz. 10
Generator.
SectionQuizAnswerCount
integer Number of answers generated for each section quiz question. 4
Generator.
PercentToleranceQuestionCount
integer Maximum percentage of generated exam questions that can be removed during validation before the exam generation fails.

Keep in mind that generated questions may be inconsistent. The generator ensures that each question’s structure and format are valid, and rejects invalid questions without interrupting the process. Only valid questions are used to generate the exam.
10
Generator.
ResourceMonitorInterval
integer Interval, in seconds, between resource-monitoring trace events while a message is being processed. These traces are included in the transaction file, and the interval determines how often the file is updated with new information.

A high value may result in missing diagnostic data if a fatal error occurs. A low value can add latency and increase the amount of trace information, since each update is also logged in the transaction file.
30
Generator.
MaxWordsIntroConclusion
integer Maximum number of words used when rewriting an introduction or conclusion. 500

Example

"Generator": {
  "AudioWordTimestampMaxMbChunkSize": 25,
  "ChapterParalellismTop": 10,
  "AudioBlocTargetTextLength": 3000,
  "AudioMaxTextLength": 4096,
  "SynopsysCountMax": 5,
  "TryTolerance": 2,
  "ContentMaxTokens": 13000,
  "DefaultMaxTokens": 4000,
  "TagsTokens": 200,
  "ChapterResumeTokens": 2000,
  "BookTitleTokens": 300,
  "BookResumeTokens": 800,
  "MaleVoice": "onyx",
  "FemaleVoice": "nova",
  "RandomVoices": [ "alloy", "nova", "onyx", "shimmer", "fable", "echo" ],
  "GargageCollectorChapterCount": 4,
  "MaxProcessingAudioThrottle": 4,
  "MaximumProcessingDurationMinutes": 60,
  "DefaultMaxMessageAgeSeconds": 60,
  "DefaultBookImageUrl": "common/images/front-book-magicbox.png",
  "SectionQuizQuestionCount": 10,
  "SectionQuizAnswerCount": 4,
  "PercentToleranceQuestionCount": 10,
  "ResourceMonitorInterval": 30,
  "MaxWordsIntroConclusion": 500
}

ProcessorLimits

Defines the daily processing limits applied to each processor for a user. The processor key must match the processor class name. The limit counters are stored in the profile storage container.

Limits are optional and should only be defined when a restriction must be applied. Processor keys correspond to the class names defined in the JbtiEvolution.OraklLearn.Generator.Host.Processing namespace.

Key Type Description Default
Generator.ProcessorLimits array List of processor usage limits.
Generator.ProcessorLimits[].Key string Processor class name to which the limit applies.
Generator.ProcessorLimits[].Daily integer Maximum number of executions allowed for the processor during a day.
Generator.ProcessorLimits[].History integer Number of processor executions retained in the user history when evaluating the limit.

Example

"ProcessorLimits": [
  {
    "Key": "BookGeneratorProcessor",
    "Daily": 30,
    "History": 30
  },
  {
    "Key": "ContentWriterProcessor",
    "Daily": 400,
    "History": 30
  }
]

ProcessorSettings

Defines optional parameters for individual processors. The processor key must match the processor class name.
This section is not fully documented yet. Please refer to the source code to understand the purpose and considerations of each parameter.

If no processor setting is defined for the processor key, DefaultMaxMessageAgeSeconds is used as the default value to determine the message’s time-to-live (TTL).

Key Type Description Default
Generator.ProcessorSettings array List of processor-specific settings.
Generator.ProcessorSettings[].Key string Processor class name to which the parameters apply.
Generator.ProcessorLimits[].
MaxMessageAgeSeconds
int Rejects messages received by the generator if they are older than the specified number of minutes.
Generator.ProcessorSettings[].Parameters object Dictionary of processor-specific parameter names and values.

Example

"ProcessorSettings": [
  {
    "Key": "ContentWriterProcessor",
    "MaxMessageAgeSeconds": 60,
    "Parameters": {
      "MinimumChapterCount": "4",
      "MinimumSuccessRate": "0.75",
      "MaximumExternalReferences": "7"
    }
  },
  {
    "Key": "BookGeneratorProcessor",
    "MaxMessageAgeSeconds": 1200,
    "Parameters": {
      "MaximumExternalReferences": "7"
    }
  }
]

Exam

Settings used while generating exams.

Key Type Description Default
Generator.Exam.MatrixCategoriesXCount integer Number of categories displayed on the horizontal axis of a matrix-category question. 2
Generator.Exam.MatrixCategoriesYCount integer Number of categories displayed on the vertical axis of a matrix-category question. 4
Generator.Exam.FlowMinStages integer Minimum number of stages generated for a flow question. 3
Generator.Exam.FlowMaxStages integer Maximum number of stages generated for a flow question. 4
Generator.Exam.LineLinkCount integer Number of links generated for a line-link question. 4

Scores

The score assigned to each question type in a generated exam.

Key Type Description Default
Generator.Exam.Scores.Choices integer Score for a multiple-choice question. 3
Generator.Exam.Scores.Select integer Score for a single-select question. 2
Generator.Exam.Scores.Text integer Score for a free-text question. 5
Generator.Exam.Scores.FindError integer Score for a find-the-error question. 3
Generator.Exam.Scores.Flow integer Score for a flow question. 4
Generator.Exam.Scores.LineLink integer Score for a line-link question. 4
Generator.Exam.Scores.MatrixCategory integer Score for a matrix-category question. 4
Generator.Exam.Scores.WordBox integer Score for a word-box question. 4
Generator.Exam.Scores.YesNo integer Score for a yes/no question. 1
Generator.Exam.Scores.Scrambled integer Score for a scrambled question. 5
Generator.Exam.Scores.Intruder integer Score for a find-the-intruder question. 2

Example

"Exam": {
  "MatrixCategoriesXCount": 2,
  "MatrixCategoriesYCount": 4,
  "FlowMinStages": 3,
  "FlowMaxStages": 4,
  "LineLinkCount": 4,
  "Scores": {
    "Choices": 3,
    "Select": 2,
    "Text": 5,
    "FindError": 3,
    "Flow": 4,
    "LineLink": 4,
    "MatrixCategory": 4,
    "WordBox": 4,
    "YesNo": 1,
    "Scrambled": 5,
    "Intruder": 2
  }
}

Storage

All contents, traces and other data are stored in a dedicated Azure Blob Storage container. This section contains the configuration required to connect to the storage.

Key Type Description Default
Storage.AccountName string The storage account name.
Storage.AccountKey string The access key retrieved from the Azure Storage Account resource.
Storage.ProfileContainer string The blob container name for user and system profiles.
Storage.TracingContainer string The blob container name for transaction tracing data.
Storage.CatalogContainer string The blob container name for storing books and exams, including multimedia content.
Storage.WorkingBlobContainer string he blob container name for temporary files while a transaction is being processed.

Example

"Storage": {
  "AccountName": "orakllearn",
  "AccountKey": "<STORAGE_ACCOUNT_KEY>",
  "ProfileContainer": "profile",
  "TracingContainer": "transaction-tracing",
  "CatalogContainer": "catalog",
  "WorkingBlobContainer": "transaction-working"
}

ServiceBus

This section defines the queues used by the generator to process messages. You can configure separate queues based on processing time, such as fast, moderate, or long-running tasks. This helps ensure quick responses for messages where the user is waiting for a result. For example, generating a book can take a long time, so it should be handled by a queue dedicated to background processing where the user is not waiting for an immediate response.

See the configuration of the JbtiEvolution.OraklLearn.API project for the queue used by each message type.

Key Type Description Default
ServiceBus.ActiveQueue string Multiple queues can be defined. However, each instance can listen to only one queue. Because the generator runs in containerized instances, you can use a single configuration file and set the ActiveQueue name by overriding the value through a Helm chart or Docker command-line environment variable. slow

Example

"ServiceBus": {
  "ActiveQueue": "slow"
}

Queues

Define all queues in this section, along with their connection configuration.

Key Type Description Default
ServiceBus.Queues array
ServiceBus.Queues[].QueueName string The queue name ie. fast/moderate/slow/...
ServiceBus.Queues[].ConnectionString string Connection string with Send and Listen permissions. The generator uses the Send operation when a transaction is received and the mutex data-integrity is active. In this case, the message is re-enqueued and postponed. <ServiceBusConnectionString>

Example

"Queues": [
  {
    "QueueName": "slow",
    "ConnectionString": "<SERVICEBUS_SLOW_CONNECTION_STRING>"
  },
  {
    "QueueName": "moderated",
    "ConnectionString": "<SERVICEBUS_MODERATED_CONNECTION_STRING>"
  },
  {
    "QueueName": "fast",
    "ConnectionString": "<SERVICEBUS_FAST_CONNECTION_STRING>"
  }
]

Inference

Apis

Each API configuration uses a secret key to connect to AI endpoints. These configurations are referenced by AI inference scopes in the generator, such as fine-tuning, text completion, image generation, audio processing, and more.

Key Type Description Default
Inference.Apis array
Inference.Apis[].Id string ID referenced by inference scopes i.e. openai_completion
Inference.Apis[].Class string Fully qualified class name of the internal class used to communicate with the AI endpoint. JbtiEvolution.OraklLearn.OpenAI.OpenAIClient
Inference.Apis[].Url string The endpoint URL address https://api.openai.com/v1/chat/completions
Inference.Apis[].HttpTimeoutSeconds integer Seconds after a call times out. 400
Inference.Apis[].Secret string API key or secret used to authenticate the endpoint. <Secret>

Example

"Apis": [
  {
    "Id": "openai_completion",
    "Class": "JbtiEvolution.OraklLearn.OpenAI.OpenAIClient",
    "Url": "https://api.openai.com/v1/chat/completions",
    "HttpTimeoutSeconds": 400,
    "Secret": "<OPENAI_API_KEY>"
  },
  {
    "Id": "openai_moderation",
    "Class": "JbtiEvolution.OraklLearn.OpenAI.OpenAIClient",
    "Url": "https://api.openai.com/v1/moderations",
    "HttpTimeoutSeconds": 400,
    "Secret": "<OPENAI_API_KEY>"
  }
]

Scopes

Key Type Description Default
Inference.Scopes.DefaultChat.Api string Default inference API configuration ID for all out-of-scope conversational calls to the AI service. openai_completion
Inference.Scopes.DefaultChat.Model string The model ID from the AI provider. i.e. gpt-5.3-chat-latest]
Inference.Scopes.DefaultChat.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.FinetuneChat.Api string API configuration ID used to fine-tune the book title and several title options presented to the user. openai_completion
Inference.Scopes.FinetuneChat.Model string The model ID from the AI provider.
Inference.Scopes.FinetuneChat.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.LongContentChat.Api string API configuration ID used for complex prompts and long-form textual content. openai_completion
Inference.Scopes.LongContentChat.Model string The model ID from the AI provider.
Inference.Scopes.LongContentChat.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.TextReviewChat.Api string API configuration ID used by the exam editor for question text, phrases, corrections, affirmations, and similar content. It is recommended to use a micro model (minimal cost) for these operations. openai_completion
Inference.Scopes.TextReviewChat.Model string The model ID from the AI provider.
Inference.Scopes.TextReviewChat.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.Moderation.Api string API configuration ID used to detect brutality, harassment, or violent content in text. openai_moderation
Inference.Scopes.Moderation.Model string The model ID from the AI provider. i.e. gpt-4]
Inference.Scopes.Moderation.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.Image.Api string API configuration ID used to generate images. openai_image
Inference.Scopes.Image.Model string The model ID from the AI provider.
Inference.Scopes.Image.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.Audio.Api string API configuration ID used to generate MP3 audio files. openai_audio
Inference.Scopes.Audio.Model string The model ID from the AI provider. i.e. tts-1
Inference.Scopes.Audio.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.TranscribeAudio.Api string API configuration ID used by the audio word timestamp operation when generating a chapter audio file. openai_audio
Inference.Scopes.TranscribeAudio.Model string The model ID from the AI provider. i.e. whisper-1
Inference.Scopes.TranscribeAudio.TimeoutSeconds string The number of seconds to wait for completion before timing out.
Inference.Scopes.SpellingCheck.Api string API configuration ID used by the text spelling reviewer transaction. It is recommended to use a low-cost model for this operation. However, using a micro model is not recommended, as it needs to recognize a broad vocabulary. openai_completion
Inference.Scopes.SpellingCheck.Model string The model ID from the AI provider.
Inference.Scopes.SpellingCheck.TimeoutSeconds string The number of seconds to wait for completion before timing out.

Example

"Scopes": {
  "DefaultChat": {
    "Model": "gpt-5.3-chat-latest",
    "Api": "openai_completion",
    "TimeoutSeconds": 100
  },
  "FinetuneChat": {
    "Model": "gpt-5.3-chat-latest",
    "Api": "openai_completion",
    "TimeoutSeconds": 100
  },
  "LongContentChat": {
    "Model": "gpt-5.3-chat-latest",
    "Api": "openai_completion",
    "TimeoutSeconds": 100
  },
  "TextReviewChat": {
    "Model": "gpt-5.3-chat-latest",
    "Api": "openai_completion",
    "TimeoutSeconds": 100
  },
  "Moderation": {
    "Model": "gpt-4o",
    "Api": "openai_moderation",
    "TimeoutSeconds": 100
  },
  "Image": {
    "Model": "gpt-image-1.5",
    "Api": "openai_image",
    "TimeoutSeconds": 100
  },
  "Audio": {
    "Model": "tts-1",
    "Api": "openai_audio",
    "TimeoutSeconds": 100
  },
  "TranscribeAudio": {
    "Model": "whisper-1",
    "Api": "openai_audio",
    "TimeoutSeconds": 100
  },
  "SpellingCheck": {
    "Model": "gpt-5.3-chat-latest",
    "Api": "openai_completion",
    "TimeoutSeconds": 100
  }
}

ModelPolicies

TitleLength

Key Type Description Default
ModelPolicies.Book.TitleLength.Minimum integer The minimum length of the book title. 30
ModelPolicies.Book.TitleLength.Maximum integer The maximum length of the book title. 120

Example

"TitleLength": {
  "Minimum": 30,
  "Maximum": 120
}

SummaryLength

Key Type Description Default
ModelPolicies.Book.SummaryLength.Minimum integer The minimum length for the book summary content. 100
ModelPolicies.Book.SummaryLength.Maximum integer The maximum length for the book summary content. 1300

Example

"SummaryLength": {
  "Minimum": 100,
  "Maximum": 1300
}

Tags

Key Type Description Default
ModelPolicies.Book.Tags.Length.Minimum integer Minimum length of a tag’s text. 2
ModelPolicies.Book.Tags.Length.Maximum integer Maximum length of a tag’s text. 35
ModelPolicies.Book.Tags.Count.Minimum integer Minimum number of tags. 1
ModelPolicies.Book.Tags.Count.Maximum integer Maximum number of tags. 10

Example

"Tags": {
  "Length": {
    "Minimum": 2,
    "Maximum": 35
  },
  "Count": {
    "Minimum": 1,
    "Maximum": 10
  }
}

Chapters

Key Type Description Default
ModelPolicies.Book.Chapters.TitleLength.Minimum integer The minimum length of chapter titles. 5
ModelPolicies.Book.Chapters.TitleLength.Maximum integer The maximum length of chapter titles. 120
ModelPolicies.Book.Chapters.Count.Minimum integer The minimum required number of chapters. 1
ModelPolicies.Book.Chapters.Count.Maximum integer The maximum number of chapters allowed. 8
ModelPolicies.Book.Chapters.ContentLength.Minimum integer The minimum length of chapter content. 100
ModelPolicies.Book.Chapters.ContentLength.Maximum integer The maximum length of chapter content. 40000

Example

"Chapters": {
  "TitleLength": {
    "Minimum": 5,
    "Maximum": 120
  },
  "Count": {
    "Minimum": 1,
    "Maximum": 8
  },
  "ContentLength": {
    "Minimum": 100,
    "Maximum": 40000
  }
}

Synopsys

Key Type Description Default
ModelPolicies.Book.Synopsys.Length.Minimum integer The minimum length of a synopsis text. 3
ModelPolicies.Book.Synopsys.Length.Maximum integer The maximum length of a synopsis text. 80
ModelPolicies.Book.Synopsys.Count.Minimum integer The minimum number of synopses required for a chapter. 1
ModelPolicies.Book.Synopsys.Count.Maximum integer The maximum number of synopses allowed. 10

Example

"Synopsys": {
  "Length": {
    "Minimum": 3,
    "Maximum": 80
  },
  "Count": {
    "Minimum": 1,
    "Maximum": 10
  }
}

Sections

Key Type Description Default
ModelPolicies.Book.Sections.TitleLength.Minimum integer The minimum length of section titles. 5
ModelPolicies.Book.Sections.TitleLength.Maximum integer The maximum length of sections titles. 120
ModelPolicies.Book.Sections.Count.Minimum integer The minimum required number of sections. 1
ModelPolicies.Book.Sections.Count.Maximum integer The maximum number of sections allowed. 8

Example

"Sections": {
  "TitleLength": {
    "Minimum": 5,
    "Maximum": 120
  },
  "Count": {
    "Minimum": 1,
    "Maximum": 8
  }
}

PdfConverter

Multiple appearance profiles can be defined. However, only the default profile is currently used. A future development should allow the user to select the desired profile.

Appearances

Key Type Description Default
PdfConverter.Appearances array
PdfConverter.Appearances[].Key string The appearance profile ID. gray_tones
PdfConverter.Appearances[].IsDefault boolean This value indicates that this is the default appearance profile. true
PdfConverter.Appearances[].LogoUrl string The image filename must be present in the generator’s execution folder. It is recommended to use a low resolution (maximum 2 inches). Logo_JBTI-Cloud-gradient-2in.png

Example

"Appearances": [
  {
    "Key": "gray_tones",
    "IsDefault": true,
    "LogoUrl": "Logo_JBTI-Cloud-gradient-2in.png"
  }
]

Colors and styles

Key Type Description Default
PdfConverter.Appearances[].Styles.ColorCoverTextRegular string Font color of the book summary text on the cover page. #575d68
PdfConverter.Appearances[].Styles.ColorCoverBackground string Cover page background color. #d2d8e0
PdfConverter.Appearances[].Styles.ColorCoverLine string Color of the horizontal and vertical lines on the cover page. #575d68
PdfConverter.Appearances[].Styles.ColorCoverMetaData string Font color of the metadata printed at the bottom of the cover page includes the Book Identifier (BID) and the release date. #242d3c
PdfConverter.Appearances[].Styles.ColorSummaryLine string The color of the horizontal line beneath the Introduction, Conclusion, Terms, Quizzes, and Quiz Answers pages. #242d3c
PdfConverter.Appearances[].Styles.ColorSummaryTitle string Font color for the titles of the Introduction, Conclusion, Terms, Quizzes, and Quiz Answers pages. #242d3c
PdfConverter.Appearances[].Styles.ColorTocTitle string Color of the table of contents title. #ffffff
PdfConverter.Appearances[].Styles.ColorTocList string Color of items in the table of contents. #d2d8e0
PdfConverter.Appearances[].Styles.ColorTocBackground string Background color of the table of contents page. #575d68
PdfConverter.Appearances[].Styles.ColorSectionRibbon string Background color of the ribbon on the section title page. #575d68
PdfConverter.Appearances[].Styles.ColorSectionTitle string Font color of the section title page. #d2d8e0
PdfConverter.Appearances[].Styles.ColorSectionBackground string Background color of the section page. #d2d8e0
PdfConverter.Appearances[].Styles.ColorChapterRibbon string Background color of the ribbon on the chapter title page. #575d68
PdfConverter.Appearances[].Styles.ColorChapterTitle1 string Font color of the chapter title page. #ffffff
PdfConverter.Appearances[].Styles.ColorChapterTitle2 string Font color of the section title on the chapter page. #d2d8e0
PdfConverter.Appearances[].Styles.LogoText string Font color of the Generated by text beneath the logo on the cover page. #575d68
PdfConverter.Appearances[].Styles.BaseFontSize number The default font size for printed text without a specific configuration. 12.0
Example
"Styles": {
  "ColorCoverTextRegular": "#575d68",
  "ColorCoverBackground": "#d2d8e0",
  "ColorCoverLine": "#575d68",
  "ColorCoverMetaData": "#242d3c",
  "ColorSummaryLine": "#242d3c",
  "ColorSummaryTitle": "#242d3c",
  "ColorTocTitle": "#ffffff",
  "ColorTocList": "#d2d8e0",
  "ColorTocBackground": "#575d68",
  "ColorSectionRibbon": "#575d68",
  "ColorSectionTitle": "#d2d8e0",
  "ColorSectionBackground": "#d2d8e0",
  "ColorChapterRibbon": "#575d68",
  "ColorChapterTitle1": "#ffffff",
  "ColorChapterTitle2": "#d2d8e0",
  "LogoText": "#575d68",
  "BaseFontSize": 12.0
}

FontTocSection

The style of the section text in the table of contents.

Key Type Default
PdfConverter.Appearances[].Styles.FontTocSection.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontTocSection.EmSize integer 12
PdfConverter.Appearances[].Styles.FontTocSection.Style string Bold

FontTocChapter

The style of the chapter title text in the table of contents.

Key Type Default
PdfConverter.Appearances[].Styles.FontTocChapter.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontTocChapter.EmSize integer 10
PdfConverter.Appearances[].Styles.FontTocChapter.Style string Bold

FontTag

The design of the book tags displayed on the cover page.

Key Type Default
PdfConverter.Appearances[].Styles.FontTag.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontTag.EmSize integer 12
PdfConverter.Appearances[].Styles.FontTag.Style string Bold

FontRegular

The default style used when no specific style is defined.

Key Type Default
PdfConverter.Appearances[].Styles.FontRegular.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontRegular.EmSize integer 12
PdfConverter.Appearances[].Styles.FontRegular.Style string Regular

FontCode

The text style used when a code block is displayed. A code block may contain programming code, XML, or any other structured block of text.

Key Type Default
PdfConverter.Appearances[].Styles.FontCode.FamilyName string Consolas
PdfConverter.Appearances[].Styles.FontCode.EmSize integer 9
PdfConverter.Appearances[].Styles.FontCode.Style string Regular

FontCoverBookTitle

Book title style printed on the cover page.

Key Type Default
PdfConverter.Appearances[].Styles.FontCoverBookTitle.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontCoverBookTitle.EmSize integer 32
PdfConverter.Appearances[].Styles.FontCoverBookTitle.Style string BoldItalic

FontCoverMetaData

The metadata printed at the bottom of the cover page includes the Book Identifier (BID) and the release date.

Key Type Default
PdfConverter.Appearances[].Styles.FontCoverMetaData.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontCoverMetaData.EmSize integer 9
PdfConverter.Appearances[].Styles.FontCoverMetaData.Style string Bold

FontSection

The style of the title ribbon for the section page.

Key Type Default
PdfConverter.Appearances[].Styles.FontSection.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontSection.EmSize integer 20
PdfConverter.Appearances[].Styles.FontSection.Style string Bold

FontChapter

The style of the title ribbon for the chapter page.

Key Type Default
PdfConverter.Appearances[].Styles.FontChapter.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontChapter.EmSize integer 18
PdfConverter.Appearances[].Styles.FontChapter.Style string Bold

FontChapterNo

The chapter number style used at the beginning of a chapter.

Key Type Default
PdfConverter.Appearances[].Styles.FontChapterNo.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontChapterNo.EmSize integer 26
PdfConverter.Appearances[].Styles.FontChapterNo.Style string Bold

FontChapterSection

The style of the title ribbon for the chapter page.

Key Type Default
PdfConverter.Appearances[].Styles.FontChapterSection.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontChapterSection.EmSize integer 10
PdfConverter.Appearances[].Styles.FontChapterSection.Style string Italic

FontFooterTitle

The book’s title is printed at the bottom of each page.

Key Type Default
PdfConverter.Appearances[].Styles.FontFooterTitle.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontFooterTitle.EmSize integer 8
PdfConverter.Appearances[].Styles.FontFooterTitle.Style string Italic

FontFooterPageNo

The page number style printed at the bottom of each page.

Key Type Default
PdfConverter.Appearances[].Styles.FontFooterPageNo.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontFooterPageNo.EmSize integer 12
PdfConverter.Appearances[].Styles.FontFooterPageNo.Style string Italic

FontReference

The formatting style for external references listed at the end of each chapter.

Key Type Default
PdfConverter.Appearances[].Styles.FontReference.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontReference.EmSize integer 9
PdfConverter.Appearances[].Styles.FontReference.Style string Italic

Font Headers

  1. FontH1 The font style when the markup indicates a level-1 heading marker #.
Key Type Default
PdfConverter.Appearances[].Styles.FontH1.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontH1.EmSize integer 17
PdfConverter.Appearances[].Styles.FontH1.Style string Bold
  1. FontH2 The font style when the markup indicates a level-2 heading marker ##.
Key Type Default
PdfConverter.Appearances[].Styles.FontH2.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontH2.EmSize integer 14
PdfConverter.Appearances[].Styles.FontH2.Style string Bold
  1. FontH3 The font style when the markup indicates a level-3 heading marker ###.
Key Type Default
PdfConverter.Appearances[].Styles.FontH3.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontH3.EmSize integer 12
PdfConverter.Appearances[].Styles.FontH3.Style string Bold
  1. FontH4 The font style when the markup indicates a level-4 heading marker ####.
Key Type Default
PdfConverter.Appearances[].Styles.FontH4.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontH4.EmSize integer 11
PdfConverter.Appearances[].Styles.FontH4.Style string Bold
  1. FontH5 The font style when the markup indicates a level-5 heading marker #####.
Key Type Default
PdfConverter.Appearances[].Styles.FontH5.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontH5.EmSize integer 10
PdfConverter.Appearances[].Styles.FontH5.Style string Bold
  1. FontH6 The font style when the markup indicates a level-6 heading marker ######.
Key Type Default
PdfConverter.Appearances[].Styles.FontH6.FamilyName string Calibri
PdfConverter.Appearances[].Styles.FontH6.EmSize integer 9
PdfConverter.Appearances[].Styles.FontH6.Style string Bold

IntroConclusion

The styles of the introduction and conclusion titles.

Key Type Default
PdfConverter.Appearances[].Styles.IntroConclusion.FamilyName string Calibri
PdfConverter.Appearances[].Styles.IntroConclusion.EmSize integer 32
PdfConverter.Appearances[].Styles.IntroConclusion.Style string Bold

Layout

Key Type Description Default
PdfConverter.Appearances[].Layout.MarginLeft integer Print area; left page margin. 30
PdfConverter.Appearances[].Layout.MarginRight integer Print area; right page margin. 30
PdfConverter.Appearances[].Layout.MarginBottom integer Print area; bottom page margin. 50
PdfConverter.Appearances[].Layout.MarginTop integer Print area; top page margin. 40
PdfConverter.Appearances[].Layout.BulletIndent integer 15
PdfConverter.Appearances[].Layout.NumberIndent integer Spacing for each text indentation level. 23
PdfConverter.Appearances[].Layout.Interline number 1.2
PdfConverter.Appearances[].Layout.LineHeight integer 12
PdfConverter.Appearances[].Layout.CornerRadius1 integer 4
PdfConverter.Appearances[].Layout.CornerRadius2 integer 2
PdfConverter.Appearances[].Layout.BorderWidth number 0.1

Example

"Layout": {
  "MarginLeft": 30,
  "MarginRight": 30,
  "MarginBottom": 50,
  "MarginTop": 40,
  "BulletIndent": 15,
  "NumberIndent": 23,
  "Interline": 1.2,
  "LineHeight": 12,
  "CornerRadius1": 4,
  "CornerRadius2": 2,
  "BorderWidth": 0.1
}

Mutex

Please refer to the data-integrity documentation for details on the settings.

Security

Please refer to the Common Security Configuration documentation for details about the available settings. Implement only the settings section according to the following requirements. Additional common security settings will be ignored.

  "Security": {
    "ImageDownloader": { }
  }

Clone this wiki locally