- Home
- Forum
- ASP.NET Core
- Barcode in footer
Barcode in footer
I am trying to create a footer for my pdf that has a table. This table has dynamic content. One cell will have the page number and I would like another cell to contain a barcode. I am unable to reference the current page and location to draw the barcode in the footer for two reasons. First, the current page is not accessible because the section add page event is fired after the footer table is created. Secondly, the location of the table cell is relative to the position of the footer/template and thus is not drawn at the correct location in the footer. Attached is my example of this. Is there anyway to work around this?
Attachment: BarcodeExample_ed232164.zip
Attachment: BarcodeExample_ed232164.zip
SIGN IN To post a reply.
3 Replies
SL
Sowmiya Loganathan
Syncfusion Team
April 16, 2020 12:58 PM UTC
Hi Brian,
Thank you for contacting Syncfusion support.
We have analyzed your requirement “Preserve barcode in footer table cell” and modified the sample based on it. Please find the download link for the same from below,
Kindly try the above sample in your end and let us know the result.
Regards,
Sowmiya Loganathan
BG
Brian George
April 16, 2020 07:40 PM UTC
Thanks for the response Sowmiya. I can verify that the code you gave me does actually generate a barcode on each page. The challenge I have is that my data is dynamic and I don't know how many pages I will need ahead of time. That is why I was trying to use the PageAdded event in the section. Is there a way to add the barcode to the footer so that when a new page is created because a text element I add spills onto the next page the footer shows correctly?
Thanks again.
SL
Sowmiya Loganathan
Syncfusion Team
April 20, 2020 12:52 PM UTC
Hi Brain,
We have analysed your requirement “Need to add footers in all pages while adding PdfTextelement with pagination in PDF document”. We have created the sample to achieve the same and please find the download link for below,
Kindly try the above sample in your end and let us know if it satisfies your requirement. If not kindly share us the further details about your requirement and it will be helpful for us to provide the precise solution on this.
Regards,
Sowmiya Loganathan
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
BG Brian George
- Apr 15, 2020 05:57 PM UTC
- Apr 20, 2020 12:52 PM UTC