]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Revert wrong change during FOP-2445: Merge PDF Linearization branch
authorSimon Steiner <ssteiner@apache.org>
Thu, 12 Mar 2015 08:52:21 +0000 (08:52 +0000)
committerSimon Steiner <ssteiner@apache.org>
Thu, 12 Mar 2015 08:52:21 +0000 (08:52 +0000)
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

index 017761754ddc275bc18731db7418b335b5287037..86a480780ab14fed1a148f8dc33b785fc4c5b92f 100644 (file)
@@ -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;