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)