mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Font info tool - added character maps
This commit is contained in:
@ -236,6 +236,11 @@ void PDFToolAbstractApplication::initializeCommandLineParser(QCommandLineParser*
|
||||
parser->addOption(QCommandLineOption("say-struct-exp-form", "Say expanded form extracted from structure tree (only for tagged pdf)."));
|
||||
parser->addOption(QCommandLineOption("say-struct-act-text", "Say actual text extracted from structure tree (only for tagged pdf)."));
|
||||
}
|
||||
|
||||
if (optionFlags.testFlag(CharacterMaps))
|
||||
{
|
||||
parser->addOption(QCommandLineOption("character-maps", "Show character maps for embedded fonts."));
|
||||
}
|
||||
}
|
||||
|
||||
PDFToolOptions PDFToolAbstractApplication::getOptions(QCommandLineParser* parser) const
|
||||
@ -404,6 +409,11 @@ PDFToolOptions PDFToolAbstractApplication::getOptions(QCommandLineParser* parser
|
||||
options.textSpeechSayStructActualText = parser->isSet("say-struct-act-text");
|
||||
}
|
||||
|
||||
if (optionFlags.testFlag(CharacterMaps))
|
||||
{
|
||||
options.showCharacterMapsForEmbeddedFonts = parser->isSet("character-maps");
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user