Header/Footer Text Is Out of Bounds when Exporting the Presentation to PDF in C#

Hello,

when using NotesCommentsLayouting to export the presentation to pdf including header footers, the right header and footers are missplaced and out of the visible area.
Saving via Powerpoint works as expected (see out_powertpoint.pdf in attachments).

Code to reproduce the issue:

var lic = new License();
lic.SetLicense(@"S:\Aspose.Total.NET.lic");

var pres = new Presentation(@"S:\tmp\in.pptx");

foreach (var notesSlide in from slide in pres.Slides
                           let headerFooterManager = slide.NotesSlideManager.NotesSlide?.HeaderFooterManager ??
                                                     slide.NotesSlideManager.AddNotesSlide().HeaderFooterManager
                           let textFrame = slide.NotesSlideManager.NotesSlide?.NotesTextFrame ??
                                           slide.NotesSlideManager.AddNotesSlide().NotesTextFrame
                           select slide.NotesSlideManager.NotesSlide)
{

    notesSlide.HeaderFooterManager.SetHeaderVisibility(true);
    notesSlide.HeaderFooterManager.SetHeaderText("text");


    notesSlide.HeaderFooterManager.SetDateTimeVisibility(true);
    notesSlide.HeaderFooterManager.SetDateTimeText("text");


    notesSlide.HeaderFooterManager.SetFooterVisibility(true);
    notesSlide.HeaderFooterManager.SetFooterText("text");

    notesSlide.HeaderFooterManager.SetSlideNumberVisibility(true);


    notesSlide.NotesTextFrame.Text = "text";
}

var options = new PdfOptions
{
    DrawSlidesFrame = true,
    ShowHiddenSlides = false,
    JpegQuality = 100,
};

options.NotesCommentsLayouting.CommentsPosition = CommentsPositions.None;
options.NotesCommentsLayouting.NotesPosition = NotesPositions.BottomFull;

pres.Save(@"S:\tmp\out.pdf", Aspose.Slides.Export.SaveFormat.Pdf, options);

Thank you for your help
example.zip (399,0 KB)

@DCyl,
Thank you for reporting on the issue. I’ve reproduced the problem you described.

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): SLIDESNET-44416

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.

The issues you found earlier (filed as SLIDESNET-44416) have been fixed in Aspose.Slides for .NET 24.3 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.