openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

Elements with position absolute are wrong in the PDF/UA

Open mgm-rwagner opened this issue 3 years ago • 1 comments

If i check a document with a screenreader preview the elements are right detected if they are position relative:

grafik

<h1 style="
    inline-block;
    margin: 0;
    width: 56mm;
    top: 41mm;
    left: 169mm;
    word-wrap: break-word;
    white-space: pre-line;
    overflow: visible;
"
>Hallo</h1>

If i added the position absolute property (i really need this), the element is detected as normal 'sect'

grafik

<h1 style="
    position: absolute;
    inline-block;
    margin: 0;
    width: 56mm;
    top: 41mm;
    left: 169mm;
    word-wrap: break-word;
    white-space: pre-line;
    overflow: visible;
"
>Hallo</h1>

Maybe there is something wrong with my setup but i used the default setup like in the wiki described.

mgm-rwagner avatar May 31 '21 13:05 mgm-rwagner

Hi, Did you resolve this issue? i have same problem with postion absolute!

DoHue97 avatar Mar 03 '23 03:03 DoHue97