sw content controls, checkbox: add PDF export

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 13 September 2022 16:43 UTC

Map this to vcl::PDFWriter::CheckBoxWidget, which uses the /FT/Btn widget, i.e. a (toggle) button which is not a pushbutton or a radiobutton).

Also avoid a border for content controls: it just cuts out some part of the rich text/plain text content control filled in text + causes a double border for checkboxes, so not useful.

Change-Id: If8dd63fe71d7c2ba9bea4bf2ecc6621fefb74fd6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139864

9bad5be0ffdc sw content controls, checkbox: add PDF export
include/vcl/filter/PDFiumLibrary.hxx | 2 ++
include/vcl/pdf/PDFFormFieldType.hxx | 29 ++++++++++++++++++++++++++++
include/vcl/pdfwriter.hxx | 2 +-
sw/qa/core/text/text.cxx | 37 ++++++++++++++++++++++++++++++++++++
sw/source/core/text/itrform2.cxx | 14 +++++++++++---
vcl/source/pdf/PDFiumLibrary.cxx | 26 +++++++++++++++++++++++++
6 files changed, 106 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share