Exporting PdfGrid to image

Hello,
We're using PdfGrid to display data to users in pdf documents. The user provides this data trhough a graphical web interface. We are currently rendering HTML tables to approximately indicate what the pdf table will look like, but these aren't exactly matching the Syncfusion table. There are also considerations to be made for windows scaling and different browsers displaying the html, etc. 

It would be much better for us if we could generate a table in a Syncfusion pdf document and extract that table as an image which we can then show to the user in the web interface. It looks like the table is drawn as separate text and line elements in the pdf document when pdfGrid.Draw() is called and I don't see any method for getting a graphics stream out of the page.Graphics property.

Is there a way I can extract the table as an image from a pdf document?

Kind Regards
Will

2 Replies 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team May 3, 2021 05:16 PM UTC

Hi Will, 
 
Thank you for contacting Syncfusion support.  
 
If you want the table as raster image, we can export only the entire page as image by using PdfViewerControl ExportAsImage method instead of using PdfLoadedDocument ExportAsImage method. Please refer the below link for more information,  
 
Please let us know if you need any further assistance with this. 
 
Regards, 
Gowthamraj K 


Marked as answer

WC Will Chambers May 3, 2021 07:24 PM UTC

Hi, 
Ok, I expected that it wasn't possible. Thank you for your response and clarifying this.

Kind regards
Will

Loader.
Up arrow icon