From: Simon Steiner Date: Fri, 5 Jun 2015 13:57:57 +0000 (+0000) Subject: FOP-2476: Tagged pdf: Tags are showing in the wrong order in the acrobat's pro order... X-Git-Tag: fop-2_1~65 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49fbce154ae3d10cf838e29f9b881a3253f285fe;p=xmlgraphics-fop.git FOP-2476: Tagged pdf: Tags are showing in the wrong order in the acrobat's pro order panel git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1683758 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index ae54e6539..458bed6a3 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -265,15 +265,15 @@ public abstract class AbstractRenderer if (viewport != null) { renderRegionViewport(viewport); } - viewport = page.getRegionViewport(FO_REGION_END); + viewport = page.getRegionViewport(FO_REGION_BODY); if (viewport != null) { renderRegionViewport(viewport); } - viewport = page.getRegionViewport(FO_REGION_AFTER); + viewport = page.getRegionViewport(FO_REGION_END); if (viewport != null) { renderRegionViewport(viewport); } - viewport = page.getRegionViewport(FO_REGION_BODY); + viewport = page.getRegionViewport(FO_REGION_AFTER); if (viewport != null) { renderRegionViewport(viewport); } diff --git a/test/layoutengine/standard-testcases/markers_1.xml b/test/layoutengine/standard-testcases/markers_1.xml index ca518bbbf..0b4e29055 100644 --- a/test/layoutengine/standard-testcases/markers_1.xml +++ b/test/layoutengine/standard-testcases/markers_1.xml @@ -83,24 +83,24 @@ - - - - + + + + - - - + + + - - + + - - + + diff --git a/test/layoutengine/standard-testcases/markers_2.xml b/test/layoutengine/standard-testcases/markers_2.xml index 2faa7677f..d1af077cc 100644 --- a/test/layoutengine/standard-testcases/markers_2.xml +++ b/test/layoutengine/standard-testcases/markers_2.xml @@ -98,29 +98,29 @@ - - - + + + - - - - + + + + - - + + - - - + + + - - - + + + - - - + + + diff --git a/test/layoutengine/standard-testcases/markers_3.xml b/test/layoutengine/standard-testcases/markers_3.xml index 069eda143..f66f68fd4 100644 --- a/test/layoutengine/standard-testcases/markers_3.xml +++ b/test/layoutengine/standard-testcases/markers_3.xml @@ -113,10 +113,10 @@ - - - - + + + + diff --git a/test/layoutengine/standard-testcases/markers_5a.xml b/test/layoutengine/standard-testcases/markers_5a.xml index c3e1063ce..bc764f9d1 100644 --- a/test/layoutengine/standard-testcases/markers_5a.xml +++ b/test/layoutengine/standard-testcases/markers_5a.xml @@ -83,16 +83,16 @@ - - - - - + + + + + - - - + + + diff --git a/test/layoutengine/standard-testcases/markers_5b.xml b/test/layoutengine/standard-testcases/markers_5b.xml index a1cf9abfd..fc3a40503 100644 --- a/test/layoutengine/standard-testcases/markers_5b.xml +++ b/test/layoutengine/standard-testcases/markers_5b.xml @@ -145,16 +145,16 @@ - - - - - + + + + + - - - + + + diff --git a/test/layoutengine/standard-testcases/markers_5c.xml b/test/layoutengine/standard-testcases/markers_5c.xml index 71349eb8b..2ab40b9de 100644 --- a/test/layoutengine/standard-testcases/markers_5c.xml +++ b/test/layoutengine/standard-testcases/markers_5c.xml @@ -83,15 +83,15 @@ - - - - + + + + - - - + + + diff --git a/test/layoutengine/standard-testcases/markers_5d.xml b/test/layoutengine/standard-testcases/markers_5d.xml index 0e8f21b1f..254036b49 100644 --- a/test/layoutengine/standard-testcases/markers_5d.xml +++ b/test/layoutengine/standard-testcases/markers_5d.xml @@ -126,16 +126,16 @@ - - - - - + + + + + - - - + + + diff --git a/test/layoutengine/standard-testcases/markers_7.xml b/test/layoutengine/standard-testcases/markers_7.xml index ef018f296..935044d05 100644 --- a/test/layoutengine/standard-testcases/markers_7.xml +++ b/test/layoutengine/standard-testcases/markers_7.xml @@ -309,33 +309,33 @@ - + - + - + - + - + - + - + - + - + - + diff --git a/test/layoutengine/standard-testcases/page-number-citation-last_page-sequence.xml b/test/layoutengine/standard-testcases/page-number-citation-last_page-sequence.xml index 0d06bb706..6ce7c68f9 100644 --- a/test/layoutengine/standard-testcases/page-number-citation-last_page-sequence.xml +++ b/test/layoutengine/standard-testcases/page-number-citation-last_page-sequence.xml @@ -128,14 +128,14 @@ - - - - + + + + - - - - + + + + diff --git a/test/layoutengine/standard-testcases/retrieve-table-marker_multicolumn.xml b/test/layoutengine/standard-testcases/retrieve-table-marker_multicolumn.xml index db578f95e..cd02ec27f 100644 --- a/test/layoutengine/standard-testcases/retrieve-table-marker_multicolumn.xml +++ b/test/layoutengine/standard-testcases/retrieve-table-marker_multicolumn.xml @@ -713,8 +713,8 @@ - - - + + + \ No newline at end of file diff --git a/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml index 416a6b87a..5be6d12ee 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml @@ -83,25 +83,25 @@ - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml index dedd30393..19b1467d5 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml @@ -85,28 +85,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml index 9336ad7b7..02101c256 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml @@ -87,28 +87,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml index 7ee68b2d6..43e742866 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml @@ -86,28 +86,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml index 7a6300a8b..7d7ead25e 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml @@ -87,28 +87,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml index 1496d7dcc..2dcb0b595 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml @@ -86,28 +86,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml index da48c4050..a081391a9 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml @@ -87,28 +87,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml index 774d58c3f..ba4a2b2f7 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml @@ -86,28 +86,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml index e911ac8d1..e8bde0090 100644 --- a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml @@ -87,28 +87,28 @@ - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + +