Issue #163: Unable to render probably valid PDF

This commit is contained in:
Jakub Melka 2024-02-27 19:58:33 +01:00
parent d6f334c242
commit 344c341f65
2 changed files with 8 additions and 2 deletions

View File

@ -353,10 +353,15 @@ void PDFSecurityHandler::parseDataStandardSecurityHandler(const PDFDictionary* d
{
result = object.getString();
if (result.size() != size)
if (result.size() < size)
{
throw PDFException(PDFTranslationContext::tr("Expected %1 characters long string in entry '%2'. Provided length is %3.").arg(size).arg(QString::fromLatin1(key)).arg(result.size()));
}
if (result.size() > size)
{
result.resize(size);
}
}
else
{

View File

@ -1,5 +1,6 @@
CURRENT:
- Issue #164: Taskbar icon not shown in linux mint.
- Issue #163: Unable to render probably valid PDF
- Issue #161: Can it be possible to trust a certificate like in acrobat?
- Issue #123: Alternative software rendering backend (Blend2D)