PDF Export

Hi,


I am trying to export grid data to PDF, i am using header option by using PdfHeaderFooterContent.


 List<PdfHeaderFooterContent> HeaderContent = new List<PdfHeaderFooterContent>

            {

                              new PdfHeaderFooterContent() { Type = ContentType.Image, Src =imageData , Position = new PdfPosition() { X = 40, Y = 10 }, Size = new PdfSize() { Height = 100, Width = 250 } }

            };


Src =imageData, data needed to be in string format. 


For my project need keeping image dynamic will help. Is there a option where i can use image URL as source?

eg: 

i want to get something like this

 List<PdfHeaderFooterContent> HeaderContent = new List<PdfHeaderFooterContent>

            {

                              new PdfHeaderFooterContent() { Type = ContentType.Image, Src ="http://www.quranmiracles.com/wp-content/uploads/2011/03/190218-mount-full-1440x810-1-800x500.jpg", Position = new PdfPosition() { X = 40, Y = 10 }, Size = new PdfSize() { Height = 100, Width = 250 } }

            };




1 Reply

JP Jeevakanth Palaniappan Syncfusion Team October 21, 2021 02:39 PM UTC

Hi Hari, 

Greetings from Syncfusion support. 

We have validated your query and we would like to inform you that the image can be exported based on the base 64 string only. So we suggest you to refer the below documentation for your reference. 

Get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon