diff --git a/Userland/Libraries/LibPDF/Operator.h b/Userland/Libraries/LibPDF/Operator.h index 59d4779c15..0a05c7f447 100644 --- a/Userland/Libraries/LibPDF/Operator.h +++ b/Userland/Libraries/LibPDF/Operator.h @@ -106,7 +106,7 @@ public: if (symbol_string == "'") return OperatorType::TextNextLineShowString; - if (symbol_string == "''") + if (symbol_string == "\"") return OperatorType::TextNextLineShowStringSetSpacing; dbgln("unsupported graphics symbol {}", symbol_string); @@ -140,7 +140,7 @@ public: if (operator_type == OperatorType::TextNextLineShowString) return "'"; if (operator_type == OperatorType::TextNextLineShowStringSetSpacing) - return "''"; + return "\""; VERIFY_NOT_REACHED(); } diff --git a/Userland/Libraries/LibPDF/Parser.cpp b/Userland/Libraries/LibPDF/Parser.cpp index 43f4cf5373..33eb72ce8d 100644 --- a/Userland/Libraries/LibPDF/Parser.cpp +++ b/Userland/Libraries/LibPDF/Parser.cpp @@ -526,7 +526,7 @@ PDFErrorOr> Parser::parse_operators() Vector operator_args; constexpr static auto is_operator_char = [](char ch) { - return isalpha(ch) || ch == '*' || ch == '\''; + return isalpha(ch) || ch == '*' || ch == '\'' || ch == '"'; }; m_reader.consume_whitespace();