Saving Diagram as Image for Use in Syncfusion PDF

Hi, 

Is it possible to save an SF Diagram as an image and use the resulting image in a Syncfusion PDF Document?

Thank you!


4 Replies

GR Gayathri Ramalingam Syncfusion Team February 15, 2022 01:52 PM UTC

Hi Raymond, 
 
Yes. We can save SfDiagram as an image and use the resulting image in a Syncfusion PDF Document. We have prepared sample for the same and it can be downloaded from below link, 
 
The provided sample working fine in Android and iOS platform. The saved stream is not getting properly in UWP platform. We are currently working on this. We will analyze and provide your details on 17th February 2020. 
 
Could you please try the above suggested solution and let us know whether it meets your requirement or not?   
 
With Regards, 
Gayathri R 



GR Gayathri Ramalingam Syncfusion Team February 17, 2022 10:44 AM UTC

Hi Raymond 
 
We have confirmed that the issue “Saved image stream is not getting in Diagram UWP” is defect and logged defect report for this issue. The patch for this issue will be delivered on 8th March 2022.    
  
  
  
With Regards,  
Gayathri R  
 



GR Gayathri Ramalingam Syncfusion Team March 8, 2022 12:59 PM UTC

Hi Raymond 
 
We have exposed new API to get the saved image stream in Diagram UWP platform. This fix will be included in our 2022 Volume 1 Main release which will be available in the end of March 2022. 
 
With Regards, 
Gayathri R 



GR Gayathri Ramalingam Syncfusion Team April 5, 2022 02:14 PM UTC

Hi Raymond,


We are glad to announce that our Essential Studio 2022 Volume 1 Main Release V20.1.0.47 is rolled out and is available for download under the following link.


https://www.syncfusion.com/forums/174125/essential-studio-2022-volume-1-main-release-v20-1-0-47-is-available-for-download


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Please find the API details to get the saved image stream from below,

<Grid>

<sfDiagram:SfDiagram  x:Name="diagram" Loaded="Diagram_Loaded" />

</Grid>

 

private async void Diagram_Loaded(object sender)

{

     Stream stream = new MemoryStream();

    await diagram.SaveAsImageAsync(stream, ImageFormat.Png);

}



Regards,

Gayathri R


Loader.
Up arrow icon