Created attachment 193725 [details] Image with caption Attached example image has a caption. When this is exported as PDF with PDF/UA enabled, an extra Div tag is added and the PAC tool complains about it. 1. Open attached file 2. Save as PDF with PDF/UA enabled 3. Open the resulting file in the PAC tool -> there is a warning about a "Possibly inappropriate use of a "Div" structure element" Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: d76f1877f699c91f5e4a020641c6d65064bfb997 CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: default
Created attachment 193726 [details] The example file exported as PDF from current master
Created attachment 193727 [details] The PDF example in the PAC tool
Tibor looked into this and said in the internal tracker that this is fine: It's not really a bug! In this case, we need to use "Div" grouping tag as the “Figure Grouper”, because this element is also the only thing that could have a "bounding box" of the whole frame, and without the "Div" element if the user anchors another "Figure" on the "Caption", it will be a problem... So we need this element if the "Figure "contains a "Caption", otherwise, just the "Figure" tag is sufficient (this works good).