Author: ssteiner
Date: Thu Mar 12 08:52:21 2015
New Revision: 1666099
URL: http://svn.apache.org/r1666099
Log:
Revert wrong change during FOP-2445: Merge PDF Linearization branch
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java?rev=1666099&r1=1666098&r2=1666099&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java Thu Mar
12 08:52:21 2015
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]