Hi,
I am converting HTML to PDF/UA-1. In my HTML, images have an alternative text using the `alt` attribute on the image.
My HTML:
<figure>
<img src="" alt="text is here" />
</figure>
My CSS :
figure { prince-pdf-tag-type: Div } /* figure grouper */
figcaption { prince-pdf-tag-type: Caption }
img, input[type="image"] {
prince-pdf-tag-type: Figure;
prince-alt-text: attr(alt);
}
For some reason, I get this error “Figure structure element is missing alternative text on page xx”.
How can I debug what's happening? What other thing should I do for my alt attributes to be picked up and used in the PDF as text alternatives for the graphic?
I am converting HTML to PDF/UA-1. In my HTML, images have an alternative text using the `alt` attribute on the image.
My HTML:
<figure>
<img src="" alt="text is here" />
</figure>
My CSS :
figure { prince-pdf-tag-type: Div } /* figure grouper */
figcaption { prince-pdf-tag-type: Caption }
img, input[type="image"] {
prince-pdf-tag-type: Figure;
prince-alt-text: attr(alt);
}
For some reason, I get this error “Figure structure element is missing alternative text on page xx”.
How can I debug what's happening? What other thing should I do for my alt attributes to be picked up and used in the PDF as text alternatives for the graphic?