Index: fpdfsdk/fpdfeditpage.cpp |
diff --git a/fpdfsdk/fpdfeditpage.cpp b/fpdfsdk/fpdfeditpage.cpp |
index e3777d4f8411570cf00b7367da374a5c5597f3a1..9ab7f0718e4fd607ce542d2ed3909b015e1851dc 100644 |
--- a/fpdfsdk/fpdfeditpage.cpp |
+++ b/fpdfsdk/fpdfeditpage.cpp |
@@ -115,10 +115,10 @@ DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document, |
pMediaBoxArray->Add(new CPDF_Number(0)); |
pMediaBoxArray->Add(new CPDF_Number(FX_FLOAT(width))); |
pMediaBoxArray->Add(new CPDF_Number(FX_FLOAT(height))); |
- |
pPageDict->SetFor("MediaBox", pMediaBoxArray); |
pPageDict->SetFor("Rotate", new CPDF_Number(0)); |
- pPageDict->SetFor("Resources", new CPDF_Dictionary); |
+ pPageDict->SetFor("Resources", |
+ new CPDF_Dictionary(pDoc->GetByteStringPool())); |
#ifdef PDF_ENABLE_XFA |
CPDFXFA_Page* pPage = |