Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@
public void endDocument() throws IFException {
documentNavigationHandler.registerIncompleteActions();
pdfDoc.getResources().addFonts(pdfDoc, fontInfo);

if (logicalStructureHandler != null) {
int nextParentTreeKey = logicalStructureHandler.getNextParentTreeKey();
if (nextParentTreeKey != -1) {
PDFStructTreeRoot structTreeRoot = pdfDoc.getRoot().getStructTreeRoot();

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 8 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 8 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 11 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 11 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 25 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 25 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 21 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 21 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 17 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 17 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 25 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 25 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 8 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 8 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 17 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 17 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 21 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 21 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 11 ubuntu-latest

cannot find symbol

Check failure on line 213 in fop-core/src/main/java/org/apache/fop/render/pdf/PDFDocumentHandler.java

View workflow job for this annotation

GitHub Actions / Test with Java 11 ubuntu-latest

cannot find symbol
if (structTreeRoot != null) {
structTreeRoot.put("ParentTreeNextKey", nextParentTreeKey);
}
}
}
try {
if (pdfDoc.isLinearizationEnabled()) {
generator.flushPDFDoc();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ public void testMultipleStaticContentArtifact() throws FOPException,

assertEquals("P", markedContents.get(3).getTag());
assertEquals("B", markedContents.get(3).getContents().get(0).toString());

assertEquals(2, pdfDocument.getDocumentCatalog().getStructureTreeRoot().getParentTreeNextKey());
}
}

Expand Down
Loading