Text in EMF Image Is Not Wrapped when Converting a Presentation to PDF in C++

We were reading EMF image which contains text paragraph in multiple lines but when we import it into slides and export it as PDF the text(paragraph) is not wrapped and renders in single line. attached sample emf(EMFFile.png) file and output screenshot(Rendered-EmF.png)
Rendered-EMF.png (27.9 KB)

We using below code:

System::String emfPath(std::string(strEMFile).c_str());
auto emfImage = pImpl->presentation->get_Images()->AddImage(System::IO::File::ReadAllBytes(emfPath));
System::SharedPtr<Aspose::Slides::IPictureFrame> picFrame = slide->get_Shapes()->AddPictureFrame(Aspose::Slides::ShapeType::Rectangle, fXPos, fYPos, fWidth, fHeight, emfImage);

we need vector image so we have set options as:

auto pdfOptions = System::MakeObject<Aspose::Slides::Export::PdfOptions>();
pdfOptions->set_SaveMetafilesAsPng(false);

EMFFile.png (12.0 KB)

@ashvek,
Thank you for describing the issue.

We are sorry that you have to encounter this problem. We need more details to investigate the case and fix it. Please share the following file and information:

  • sample EMF image file
  • Aspose.Slides version you used

Aspose version 24.9
EMF attached
DPVF50C.zip (875 Bytes)

@ashvek,
Thank you for the details. I’ve reproduced the problem with displaying the text in the EMF image when adding it to a slide and converting the presentation to a PDF document.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESCPP-3975

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thank you for the response.

@ashvek,
Thank you for helping make Aspose.Slides better.