Applied footer not visible on a landscape pdf page which has an existing footer

Hi Team,I am using syncfusion library to add footer to pdf document. For pdf with pages in portrait mode, I am able to add new footer even if an existing footer is there on the page, but in case of pages with landscape mode, New footer that i am trying to add is not visible. Although, if we select that region of footer in pdf page, we can see its there. 

OS - Linux

Language - C# 

Framework - .NET CORE 6

private static PdfPageTemplateElement AddFooter(PdfDocument document, string footerString,
float footerXCoordinate, float footerYCoordinate)
{
if (document is null)
{
throw new ArgumentNullException(nameof(document));
}

var rectangleF = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50);
var footer = new PdfPageTemplateElement(rectangleF);
var pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 7, PdfFontStyle.Bold);
var brush = new PdfSolidBrush(Color.Black);
footer.Graphics.DrawString(footerString, pdfFont, brush,
new RectangleF(footerXCoordinate, footerYCoordinate,
document.Pages[0].GetClientSize().Width, 50));
return footer;
}

Screenshots of pdf page are attached below:

MicrosoftTeams-image (2)_11zon.png

MicrosoftTeams-image (1)_11zon.png


6 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team September 22, 2022 03:54 PM UTC

Hi Chetan,

we have tried to reproduce the reported behavior with the provided details in our end but it is working properly. we can able to add multiple footer to the pdf document that has existing footer in it. we have attached a sample with the output document for your reference. please try this in your end and let us know if it satisfies your requirement.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/OCRSample6.0-1826917734

Document: https://www.syncfusion.com/downloads/support/directtrac/general/pd/Output_2980097476


Please follow the below links for more information,

https://help.syncfusion.com/file-formats/pdf/working-with-headers-and-footers


Please let us know if you need any further assistance in this.


Regards,

Irfana J.



CR Chetan Rajput September 23, 2022 10:46 AM UTC

Hi Irfana, It's still not working for the landscape pdf with the footer. The output.pdf that you shared is also in portrait mode. Could you please try to take a landscape pdf as input(with a footer) instead of creating a pdf in the program and making it landscape? I have attached some pdfs, could you please try to put a footer on these pdfs?


Attachment: ezyzip_28ebd7d6.zip


IJ Irfana Jaffer Sadhik Syncfusion Team September 24, 2022 04:49 AM UTC

H Chetan,


Thanks for sharing the details. Currently we are validatng on this and will provide the further details on September 27th, 2022


Regards,

Irfana J.



CR Chetan Rajput September 26, 2022 07:57 AM UTC

Hi Irfana, Thanks for your quick replies. If possible, Can I get the solution by today's End Of Day? It's urgent. 


Regards,

Chetan Rajput 



IJ Irfana Jaffer Sadhik Syncfusion Team September 27, 2022 12:38 PM UTC

Hi Chetan,

We confirmed the issue “Footer content is not displayed when adding footer in imported a PDF document” as a defect in our product. We will include the fix for this issue in our weekly NuGet release, which will be available on Oct 11th, 2022.

 

Please use the below feedback link to track the status of the reported bug.

https://www.syncfusion.com/feedback/38019/footer-content-is-not-displayed-when-importing-a-pdf-document

 

Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release versions, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.

Please let us know if you need any further assistance in this.


Regards,

Irfana J.



GK Gowthamraj Kumar Syncfusion Team October 11, 2022 10:35 AM UTC

Hi Chetan,


We have included the fix for the reported issue “Footer content is not displayed when adding footer in imported a PDF document” in our latest weekly NuGet release (v20.3.0.49). Please use the below link to download our latest weekly NuGet,    


https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/20.3.0.49


Please let us know if you have any concerns on this. 


Regards,

Gowthamraj K


Loader.
Up arrow icon