From 41bd304a7f1cc10dbffa46b1de9f4906f9a6be72 Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Fri, 16 Dec 2022 00:07:59 +0800 Subject: [PATCH] LibPDF: Ignore seac PS1 commands for now This command is meant to print an Standard Encoding Accented Character. It's not critical to implement it yet, but if we want to render more documents we need to handle the instruction, even if simply ignore it. --- Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp b/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp index cddf05b1bf..9c0c698822 100644 --- a/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp +++ b/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp @@ -38,6 +38,7 @@ enum ExtendedCommand { DotSection, VStem3, HStem3, + Seac = 6, Div = 12, CallOtherSubr = 16, Pop, @@ -315,6 +316,7 @@ PDFErrorOr PS1FontProgram::parse_glyph(ReadonlyBytes cons case DotSection: case VStem3: case HStem3: + case Seac: // FIXME: Do something with these? state.sp = 0; break;