Bug 90328 - PDF: Role map should not include cyclic definitions
Summary: PDF: Role map should not include cyclic definitions
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Accessibility
  Show dependency treegraph
 
Reported: 2015-03-29 17:14 UTC by p.abrahams@clara.co.uk
Modified: 2023-10-02 13:35 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
ODT file that creates incorrect PDF role map (15.67 KB, application/vnd.oasis.opendocument.text)
2015-04-05 14:26 UTC, p.abrahams@clara.co.uk
Details
PDF created from ODT with incorrect role map (85.43 KB, application/pdf)
2015-04-05 14:27 UTC, p.abrahams@clara.co.uk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description p.abrahams@clara.co.uk 2015-03-29 17:14:07 UTC
The PDF Role Map generated by Writer export to  PDF includes entries such as:
/H1 /H1 which map a role to itself. This is a cyclic definition and is incorrect. These entries should not be included in the role map.
Comment 1 Markus Mohrhard 2015-04-04 15:16:09 UTC
Can you please include a odt document that shows that problem during export?
Comment 2 p.abrahams@clara.co.uk 2015-04-05 14:26:23 UTC
Created attachment 114627 [details]
ODT file that creates incorrect PDF role map
Comment 3 p.abrahams@clara.co.uk 2015-04-05 14:27:30 UTC
Created attachment 114628 [details]
PDF created from ODT with incorrect role map
Comment 4 p.abrahams@clara.co.uk 2015-04-05 14:30:14 UTC
As requested I have attached 'ODT to PDF Test.odt' that when exported to PDF has an incorrect role map as can be seen in 'ODT to PDF test.pdf' which is also attached.
Comment 5 Buovjaga 2015-04-06 11:18:32 UTC
Ok, if I export attachment 114627 [details] with Tagged PDF checked, I can see inside it:

/RoleMap<</Table#20Contents/P
/H1/H1

Win 7 Pro 64-bit, Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6
Locale: fi_FI
Comment 6 Matthew Francis 2015-04-06 15:46:07 UTC
The behaviour is the same in OOo / LO 3.3.0

-> Version: Inherited from OOo
Comment 7 tommy27 2016-04-16 07:27:38 UTC Comment hidden (obsolete)
Comment 8 p.abrahams@clara.co.uk 2016-04-16 13:11:59 UTC
I have just retested with 5.0.5.2 and the problem still exists and has not altered at all.
Comment 9 QA Administrators 2017-05-22 13:24:50 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-03-17 04:20:52 UTC Comment hidden (obsolete)
Comment 11 Gabor Kelemen (allotropia) 2023-10-02 13:35:40 UTC
I can't reproduce the error since 7.1.
The PAC tool complains about exports of the example file containing circular references with versions until 7.0, but not since 7.1.