https://issues.apache.org/bugzilla/show_bug.cgi?id=50986
Summary: [PATCH] Acessibility: Invalid PDF page content
Product: Fop
Version: 1.1dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
FOP uses an incorrect order of ET/EMC operands in some cases:
BCD
BT
[...]
EMC
ET
Correct would be:
BCD
BT
[...]
ET
EMC
[The last open element must be closed first]
diff --git a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
--- a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
+++ b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
@@ -270,10 +270,10 @@ public class PDFContentGenerator {
/** Indicates the end of a text object. */
protected void endTextObject() {
if (textutil.isInTextObject()) {
+ textutil.endTextObject();
if (this.inMarkedContentSequence) {
endMarkedContentSequence();
}
- textutil.endTextObject();
}
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.