diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-03-27 12:51:24 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-04-04 15:01:15 +0200 |
commit | 2a87a59a52ae26db5106f7d1f4346225d032b550 (patch) | |
tree | 00347577e9dc4c3730631d2daef2a4a2c50abda8 /include/vcl | |
parent | 4047cb44b7a41115dafb7cffcebd2a02329283df (diff) |
tdf#152234 vcl,drawinglayer: PDF/UA export: produce Role for form controls
veraPDF complains:
Specification: ISO 14289-1:2014, Clause: 7.18.4, Test number: 2
If the Form element omits a Role attribute (Table 348), it shall have
only one child: an object reference (14.7.4.3) identifying the widget
annotation per ISO 32000-1:2008, 14.8.4.5, Table 340.
LO forms produce both page content in an MCID and an /Annot, so Role is
needed.
Change-Id: Ic231931a7c35d8da37ca76e02d97501edb43347c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149626
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/pdfwriter.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index b16e7120b398..0d959f9add34 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -141,7 +141,7 @@ public: Placement, WritingMode, SpaceBefore, SpaceAfter, StartIndent, EndIndent, TextIndent, TextAlign, Width, Height, BlockAlign, InlineAlign, LineHeight, BaselineShift, TextDecorationType, ListNumbering, - RowSpan, ColSpan, Scope, + RowSpan, ColSpan, Scope, Role, // link destination is an artificial attribute that sets // the link annotation ID of a Link element @@ -180,6 +180,8 @@ public: Underline, Overline, LineThrough, // Scope Row, Column, Both, + // Role + Rb, Cb, Pb, Tv, // ListNumbering Disc, Circle, Square, Decimal, UpperRoman, LowerRoman, UpperAlpha, LowerAlpha }; |