fix
This commit is contained in:
@@ -436,6 +436,24 @@ TEST(ImageXObjectVerification, JpegLogoAndPhotoDecodeAndMatchPdfiumRender) {
|
||||
|
||||
QPDF qpdf;
|
||||
auto objects = buildFirstPageObjects(qpdf, pdf);
|
||||
|
||||
// DEBUG: Parse again just to print
|
||||
{
|
||||
Lexer lexer(content);
|
||||
auto tokens = lexer.tokenize();
|
||||
ContentParser parser(tokens);
|
||||
auto operations = parser.parse();
|
||||
for (const auto& op : operations) {
|
||||
std::cout << "DEBUG OP: " << op.op << " operands: ";
|
||||
for (const auto& operand : op.operands) {
|
||||
if (operand->type == AstNodeType::Number) std::cout << operand->numberValue << " ";
|
||||
else if (operand->type == AstNodeType::Name) std::cout << "/" << operand->stringValue << " ";
|
||||
else std::cout << "[type " << (int)operand->type << "] ";
|
||||
}
|
||||
std::cout << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
auto images = imageObjects(objects);
|
||||
ASSERT_EQ(images.size(), 2u);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user