Whether the line-height of containers is used as the minimum line-height for their lines by default depends on the doctype. This can be overridden by using the minLineHeightFromContainer QuirksSettings property.
Example:
Disable minimum line-height from container
Java
config.setQuirksSettings(new QuirksSettings().setMinLineHeightFromContainer(QuirksMode.QUIRKS));
C#
config.QuirksSettings = new QuirksSettings { MinLineHeightFromContainer = QuirksMode.QUIRKS };
PHP
$config["quirksSettings"] = array( "minLineHeightFromContainer" => QuirksMode::QUIRKS );
JavaScript/Node.js
config.quirksSettings = { minLineHeightFromContainer: PDFreactor.QuirksMode.QUIRKS };
Python
config["quirksSettings"] = { "minLineHeightFromContainer": PDFreactor.QuirksMode.QUIRKS }
Ruby
config["quirksSettings"] = { minLineHeightFromContainer: PDFreactor::QuirksMode::QUIRKS }
Perl
$config["quirksSettings"] = { "minLineHeightFromContainer" => PDFreactor::QuirksMode->QUIRKS };
REST
{ "quirksSettings"]: { "minLineHeightFromContainer": "QUIRKS" }}