Index: fpdfsdk/fpdfppo_embeddertest.cpp |
diff --git a/fpdfsdk/fpdfppo_embeddertest.cpp b/fpdfsdk/fpdfppo_embeddertest.cpp |
index 3149f072f5741bce0ae29fdec5e0acfa54c08ba0..097231653419d8ebad9537374e8ffbe41113dd1e 100644 |
--- a/fpdfsdk/fpdfppo_embeddertest.cpp |
+++ b/fpdfsdk/fpdfppo_embeddertest.cpp |
@@ -90,3 +90,17 @@ TEST_F(FPDFPPOEmbeddertest, GoodRanges) { |
UnloadPage(page); |
} |
+ |
+TEST_F(FPDFPPOEmbeddertest, BUG_664284) { |
+ EXPECT_TRUE(OpenDocument("bug_664284.pdf")); |
+ |
+ FPDF_PAGE page = LoadPage(0); |
+ EXPECT_TRUE(page); |
+ |
+ FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); |
+ EXPECT_TRUE(output_doc); |
+ EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1", 0)); |
+ FPDF_CloseDocument(output_doc); |
+ |
+ UnloadPage(page); |
+} |