summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_ppo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdf_ppo.cpp')
-rw-r--r--fpdfsdk/fpdf_ppo.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/fpdfsdk/fpdf_ppo.cpp b/fpdfsdk/fpdf_ppo.cpp
index 8f0b0c3d79..fd270d997c 100644
--- a/fpdfsdk/fpdf_ppo.cpp
+++ b/fpdfsdk/fpdf_ppo.cpp
@@ -185,12 +185,6 @@ CFX_FloatRect GetCropBox(const CPDF_Dictionary* pPageDict) {
return GetMediaBox(pPageDict);
}
-CFX_FloatRect GetTrimBox(const CPDF_Dictionary* pPageDict) {
- if (pPageDict->KeyExist("TrimBox"))
- return pPageDict->GetRectFor("TrimBox");
- return GetCropBox(pPageDict);
-}
-
const CPDF_Object* GetPageOrganizerPageContent(
const CPDF_Dictionary* pPageDict) {
return pPageDict
@@ -702,7 +696,7 @@ uint32_t CPDF_NPageToOneExporter::MakeXObject(
pNewXObjectDict->SetNewFor<CPDF_Name>("Type", "XObject");
pNewXObjectDict->SetNewFor<CPDF_Name>("Subtype", "Form");
pNewXObjectDict->SetNewFor<CPDF_Number>("FormType", 1);
- pNewXObjectDict->SetRectFor("BBox", GetTrimBox(pSrcPageDict));
+ pNewXObjectDict->SetRectFor("BBox", GetCropBox(pSrcPageDict));
// TODO(xlou): add matrix field to pNewXObjectDict.
if (const CPDF_Array* pSrcContentArray = ToArray(pSrcContentObj)) {