Bug 166963 - PDF-syntax errors in large documents reported by PAC2024 (Structure element refers to a diffrent parent)
Summary: PDF-syntax errors in large documents reported by PAC2024 (Structure element r...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2025-06-12 09:12 UTC by devseppala
Modified: 2025-06-12 10:00 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Example odt document that exhibits the issue when exported to PDF (632.70 KB, application/vnd.oasis.opendocument.text)
2025-06-12 09:12 UTC, devseppala
Details
PDF export of the example document that exhibits the PAC2024 "different parent" issue (16.83 MB, application/pdf)
2025-06-12 09:15 UTC, devseppala
Details
Screenshot of the PAC2024 error report (286.45 KB, image/png)
2025-06-12 09:16 UTC, devseppala
Details
Version of the example odt document where Chapters 1-20 are divided to sections to workaround the issue (614.34 KB, application/vnd.oasis.opendocument.text)
2025-06-12 09:18 UTC, devseppala
Details
PDF export of the example document that was divided to sections, no different parent issues reported (16.82 MB, application/pdf)
2025-06-12 09:20 UTC, devseppala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description devseppala 2025-06-12 09:12:51 UTC
Created attachment 201219 [details]
Example odt document that exhibits the issue when exported to PDF

I have discovered that large odt documents (>~500) that are exported to PDF format, often have these PDF-syntax errors reported by PAC2024 accessibility checker:

   "Structure element refers to a different parent than the actual parent"

The beginning of the document never has these errors, but after certain point every paragraph has this error. If you divide the document to smaller sections (https://help.libreoffice.org/latest/en-US/text/swriter/guide/sections.html), this problem goes away. Same thing happens also if you just cut enough content away.

To me this behaviour sounds like some kind of index has run out of numbers and no more children can be added.

A good example of this is the "Useful Macro Information For OpenOffice.org" By Andrew Pitonyak, which I will attach to this bug report. If you export this document to PDF and run it through PAC 2024, it will report the previously mentioned issues. I will also add the exported PDF file to this bug report.

I will also attach a version of this document, where I have assigned all Chapters 1-20 to their own sections. This version does not suffer from the previously mentioned issue, if you run a PDF export of this file through PAC 2024. I will attach the said PDF-file.

I will also add a screenshot of the PAC 2024 errors to this issue.

I tested this issue with LO 25.2.4.3 (X86_64) and LO 7.0.6, which both produce the same errors.


Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: fi-FI (fi_FI); UI: en-GB
Calc: threaded
Comment 1 devseppala 2025-06-12 09:15:48 UTC
Created attachment 201220 [details]
PDF export of the example document that exhibits the PAC2024 "different parent" issue
Comment 2 devseppala 2025-06-12 09:16:38 UTC
Created attachment 201221 [details]
Screenshot of the PAC2024 error report
Comment 3 devseppala 2025-06-12 09:18:05 UTC
Created attachment 201222 [details]
Version of the example odt document where Chapters 1-20 are divided to sections to workaround the issue
Comment 4 devseppala 2025-06-12 09:20:07 UTC
Created attachment 201223 [details]
PDF export of the example document that was divided to sections, no different parent issues reported