I want to add Header and Footer for PDF document,it dose’t work when i set font style as bold.
The sample code
Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
doc.Pages.Add();
HeaderArtifact artifact = new HeaderArtifact();
artifact.ArtifactHorizontalAlignment = HorizontalAlignment.Right;
var textState = new TextState();
//dose't work
textState.FontStyle = FontStyles.Bold;
textState.FontSize = 50;
textState.Font = Aspose.Pdf.Text.FontRepository.FindFont("SimSun");
artifact.SetTextAndState("页眉内容", textState);
doc.Pages[1].Artifacts.Add(artifact);
doc.Save("demo.pdf");
The version info
Aspose.PDF 2022.11
@sullivan
We have logged this problem in our issue tracking system as PDFNET-53252. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
@tahir.manzoor
Hello,Is there any progress on this issue?
@sullivan
We are afraid that the earlier logged ticket has not been yet resolved due to other issues in the queue logged prior to it. We will surely let you know once we have some definite updates about its resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.
@asad.ali @tahir.manzoor
Hello, Is there any progress on this issue?
@sullivan
We are afraid that the ticket is not yet resolved. Its information has been updated after recording your concerns and we will notify you as soon as we have some news about its resolution. We are sorry for the inconvenience.