diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-04-05 12:24:43 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-04-05 15:39:37 +0200 |
commit | 5cc69594e4382c258f0e3e3b1ef210567fce1bd8 (patch) | |
tree | dadd5f3282f36fd6d62fb679eb5eea97f6f6ab1d /sd/source/ui | |
parent | a5225ba82e94a549f44420f56a7cb9d7906561cc (diff) |
vcl,sw,sd: PDF/UA export: produce better /CT for SdrMediaObj
7.18.6.2 Media clip data
In the media clip data dictionary, the optional CT and Alt keys
(ISO 32000-1:2008, 13.2.4.2, Table 274) are required.
Presumably writing a potentially wrong hard-coded mime type here isn't
intended.
Change-Id: Ifa8ee199a4cf9ce83f410860d59b6c30475f80e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150050
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index bab827c6be5f..ca741e9bb53f 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1659,7 +1659,8 @@ static void ImplPDFExportShapeInteraction( const uno::Reference< drawing::XShape if (!aMediaURL.isEmpty()) { SdrObject const*const pSdrObj(SdrObject::getSdrObjectFromXShape(xShape)); - sal_Int32 nScreenId = rPDFExtOutDevData.CreateScreen(aLinkRect, altText, rPDFExtOutDevData.GetCurrentPageNumber(), pSdrObj); + OUString const mimeType(xShapePropSet->getPropertyValue("MediaMimeType").get<OUString>()); + sal_Int32 nScreenId = rPDFExtOutDevData.CreateScreen(aLinkRect, altText, mimeType, rPDFExtOutDevData.GetCurrentPageNumber(), pSdrObj); if (aMediaURL.startsWith("vnd.sun.star.Package:")) { OUString aTempFileURL; |