var presentation = PresentationDocument.Load(inputPath);
var pages = presentation.GetPaginator().Pages;
for (var index = 0; index < pages.Count; index++)
{
var fileName = $"Presentation_Page-{index}.bmp";
var page = pages[index];
using var stream = new FileStream(Path.Combine(outputDirectory, fileName), FileMode.Create);
page.Save(stream, new ImageSaveOptions(ImageSaveFormat.Bmp));
}
What can I do to receive the correctly converted background in the image?
Regarding the first feature, we do plan to provide support for the PictureFillFormat.TileAsTexture property in the PDF sometime in the future (after more users request it).
But regarding the second feature, I’m afraid this feature won’t be available any time soon.
I have another presentation, where the background is not taken from tiles but has the “Format-Background”-option “Hide Background Graphics” enabled. But the image generated by the code I pasted above does not hide the background graphics. Is this also a planned feature?
the fix works for my background graphics, thank you!
My generated images now look quite similar to the original, only in case I used a semi transparent overlay in my background (slide master configured) the overlay is shown completely transparent. As the original questions on my topic are solved, should I open a new topic on this?