PdfSaveOptions - DisplayDocTitle for Aspose.Slides as in Aspose.Cells and Aspose.Words .NET

Hi!
We are using Aspose.Slides for .NET ver. 20.9.0 and need to get the same function as DisplayDocTitle in Aspose.Cells and Aspose.words PdfSaveOptions. Is this possible with another property or are there any workarounds to get the same feature, to set the title from document properties in the PDF document header when converting slides to PDF?

@admin.aspose.solarpl

Can you please highlight the usage of the requested properties as there is no such property available in Aspose.Slides. With your usage explanation. I may be able to share how to serve the purpose in Aspose.Slides.

Ok, thank you for the response.

When we are converting a ppt/pptx file to PDF with Aspose.slides we want to get the Title property, that you can set under the info tab in MS PPT,
to appear as the Title bar text in the PDF document that we are converting the ppt/pptx into.

As an example this code works for us when we are doing it with excel:

	private static Stream TransformUsingCells(string inputFilename, Aspose.Cells.LoadFormat loadFormat)
	{
		var wb = new Workbook(inputFilename, new Aspose.Cells.LoadOptions(loadFormat));
		var ms = new MemoryStream();
		CellPdfSaveOptions saveOptionsSettings = new CellPdfSaveOptions
		{
			DisplayDocTitle = true
		};
		wb.Save(ms, saveOptionsSettings);
		return ms;
	}

And we want to achieve something similar with the slides, our implementation today:

	private static Stream TransformUsingSlides(string inputFilename, Aspose.Slides.LoadFormat loadFormat)
	{
		var ms = new MemoryStream();
		var presentation = new Presentation(inputFilename, new Aspose.Slides.LoadOptions(loadFormat));
		presentation.Save(ms, Aspose.Slides.Export.SaveFormat.Pdf);
		return ms;
	}

/ Marcus

@admin.aspose.solarpl

Can you please provide the desired output and also the sample presentation so that we may assess that if we can achieve that using API or not.

Of course, the desired output is the same as you get with the DisplayDocTitle property in aspose.cells and aspose.words. See attached pictures for the desired output 1-5.
/Marcus
1DesiredOutputPPT.PNG (8.8 KB)
2DesiredOutputExport.PNG (7.6 KB)
3DesiredOutputPDFsymbol.PNG (3.3 KB)
4DesiredOutputInPDF.PNG (11.9 KB)

@admin.aspose.solarpl

For the images that you have shared what I believe is that you want to use the same file name for exported PDF that is in fact in Title Metadata Document Property of the presentation. In Aspose.Slides, you can access the Document Properties (Title in your case) and get or set the values for them. You can get the Title property name and set the same as your PDF and it will start to appear as required. Please visit this documentation link for more about Document Properties in PowerPoint using Aspose.Slides.