vcl/qa/cppunit/pdfexport/data/tdf168057.odt |binary vcl/qa/cppunit/pdfexport/pdfexport2.cxx | 12 ++++++++++++ 2 files changed, 12 insertions(+)
New commits: commit c7a7e555624666f6a2af8b35e6b596a3f54d6514 Author: Xisco Fauli <[email protected]> AuthorDate: Sat Mar 7 01:10:22 2026 +0000 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Tue Mar 10 15:20:07 2026 +0100 tdf#168057: add unittest for RoleMapNS in PDF/UA-2 The test was dropped when the fix was backported to co-26.04 because VeraPDF wasn't available. Now that VeraPDF is available, add it back. Change-Id: Ifa7cff7f6914a2e25a5c31887c191360b810c9b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201190 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Tomaž Vajngerl <[email protected]> diff --git a/vcl/qa/cppunit/pdfexport/data/tdf168057.odt b/vcl/qa/cppunit/pdfexport/data/tdf168057.odt new file mode 100644 index 000000000000..1090c5e9bfe3 Binary files /dev/null and b/vcl/qa/cppunit/pdfexport/data/tdf168057.odt differ diff --git a/vcl/qa/cppunit/pdfexport/pdfexport2.cxx b/vcl/qa/cppunit/pdfexport/pdfexport2.cxx index e4dc7c24459a..76a862dff776 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport2.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport2.cxx @@ -1592,6 +1592,18 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest2, testTdf139736) CPPUNIT_ASSERT_GREATEREQUAL(3, nArtifacts); } +CPPUNIT_TEST_FIXTURE(PdfExportTest2, testTdf168057) +{ + uno::Sequence<beans::PropertyValue> aFilterData( + comphelper::InitPropertySequence({ { "PDFUACompliance", uno::Any(true) }, + { "SelectPdfVersion", uno::Any(sal_Int32(20)) } })); + comphelper::SequenceAsHashMap aMediaDescriptor; + aMediaDescriptor[u"FilterData"_ustr] <<= aFilterData; + loadFromFile(u"tdf168057.odt"); + // Without the fix in place, the validation would have failed + save(TestFilter::PDF_WRITER, aMediaDescriptor.getAsConstPropertyValueList()); +} + CPPUNIT_TEST_FIXTURE(PdfExportTest2, testTdf152231) { // Enable PDF/UA
