mirror of https://github.com/JakubMelka/PDF4QT.git
Issue #163: Unable to render probably valid PDF
This commit is contained in:
parent
d6f334c242
commit
344c341f65
|
@ -353,10 +353,15 @@ void PDFSecurityHandler::parseDataStandardSecurityHandler(const PDFDictionary* d
|
||||||
{
|
{
|
||||||
result = object.getString();
|
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()));
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
CURRENT:
|
CURRENT:
|
||||||
- Issue #164: Taskbar icon not shown in linux mint.
|
- 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 #161: Can it be possible to trust a certificate like in acrobat?
|
||||||
- Issue #123: Alternative software rendering backend (Blend2D)
|
- Issue #123: Alternative software rendering backend (Blend2D)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue