Skip to content

Commit d777b07

Browse files
committed
add PDF/A-4, PDF-1.7 and PDF-2.0 to convert-to API
Signed-off-by: Andras Timar <[email protected]> Change-Id: Ie39caafb9ff64691a6c9afa24519ac78cfa9d828
1 parent a0afa51 commit d777b07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wsd/ClientRequestDispatcher.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,11 @@ bool ClientRequestDispatcher::handlePostRequest(const RequestDetails& requestDet
21512151
if (strcasecmp(pdfVer.c_str(), "PDF/A-1b") &&
21522152
strcasecmp(pdfVer.c_str(), "PDF/A-2b") &&
21532153
strcasecmp(pdfVer.c_str(), "PDF/A-3b") &&
2154-
strcasecmp(pdfVer.c_str(), "PDF-1.5") && strcasecmp(pdfVer.c_str(), "PDF-1.6"))
2154+
strcasecmp(pdfVer.c_str(), "PDF/A-4") &&
2155+
strcasecmp(pdfVer.c_str(), "PDF-1.5") &&
2156+
strcasecmp(pdfVer.c_str(), "PDF-1.6") &&
2157+
strcasecmp(pdfVer.c_str(), "PDF-1.7") &&
2158+
strcasecmp(pdfVer.c_str(), "PDF-2.0"))
21552159
{
21562160
LOG_ERR("Wrong PDF type: " << pdfVer << ". Conversion aborted.");
21572161
http::Response httpResponse(http::StatusCode::BadRequest);

0 commit comments

Comments
 (0)