Procházet zdrojové kódy

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
pull/2/head
Simon Steiner před 9 roky
rodič
revize
f7452fa8d8
1 změnil soubory, kde provedl 1 přidání a 9 odebrání
  1. 1
    9
      src/java/org/apache/fop/pdf/PDFFactory.java

+ 1
- 9
src/java/org/apache/fop/pdf/PDFFactory.java Zobrazit soubor

* create a PDFPage with the next object number, the given * create a PDFPage with the next object number, the given
* resources, contents and dimensions * 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().assignObjectNumber(page);
getDocument().getPages().addPage(page); getDocument().getPages().addPage(page);
return page; return page;

Načítá se…
Zrušit
Uložit