mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibPDF: Tolerate comments before drawing operators
Necessary to be able to render https://github.com/pdf-association/pdf20examples/blob/master/pdf20-utf8-test.pdf
This commit is contained in:
parent
9e8cf4fc1a
commit
14bcb5219d
1 changed files with 1 additions and 0 deletions
|
@ -530,6 +530,7 @@ PDFErrorOr<Vector<Operator>> Parser::parse_operators()
|
|||
m_reader.consume_whitespace();
|
||||
|
||||
while (!m_reader.done()) {
|
||||
parse_comment();
|
||||
auto ch = m_reader.peek();
|
||||
if (is_operator_char_start(ch)) {
|
||||
auto operator_start = m_reader.offset();
|
||||
|
|
Loading…
Add table
Reference in a new issue