From b28c99c038ebe6ed1c9c8690a68a7c6deab97ff7 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Thu, 12 Mar 2015 08:52:21 +0000 Subject: [PATCH] Revert wrong change during FOP-2445: Merge PDF Linearization branch git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1666099 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/pdf/PDFFactory.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/java/org/apache/fop/pdf/PDFFactory.java b/src/java/org/apache/fop/pdf/PDFFactory.java index 017761754..86a480780 100644 --- a/src/java/org/apache/fop/pdf/PDFFactory.java +++ b/src/java/org/apache/fop/pdf/PDFFactory.java @@ -197,15 +197,7 @@ public class PDFFactory { * create a PDFPage with the next object number, the given * resources, contents and dimensions */ - PDFResources res = getDocument().getFactory().makeResources(); - if (getDocument().isLinearizationEnabled()) { - getDocument().trailerObjects.remove(resources); - } - res.setParentResources(resources); - - PDFPage page = new PDFPage(res, pageIndex, mediaBox, cropBox, bleedBox, trimBox); - res.setParent(page); - + PDFPage page = new PDFPage(resources, pageIndex, mediaBox, cropBox, bleedBox, trimBox); getDocument().assignObjectNumber(page); getDocument().getPages().addPage(page); return page; -- 2.39.5