Hello
I try this sample I can’t see the table in the pdf
I save the doc like this
MemoryStream memoryStream = new MemoryStream();
//save the document into stream
doc.Save(memoryStream);
and display the pdf in the application
await Mvx.Resolve<ISave>().Save("Output.pdf", "application/pdf", memoryStream);
In this hello world sample, it works https://help.syncfusion.com/file-formats/pdf/working-with-xamarin
In the table sample it not works https://help.syncfusion.com/file-formats/pdf/working-with-tables
I don’t change noting from the sample only the overload doc save string this not exists
Why this not working?
Best Regards
Query |
Response | |
Thanks this working should I work with PdfGrid or PdfLightTable ? |
We would recommend you to use PdfGrid, because of its maximum functionalities.
| |
I try to add an image to the document Follow this https://help.syncfusion.com/file-formats/pdf/working-with-imagesThe PdfBitmap don’t have constructor for string only stream p.p1 {margin: 0.0px 0.0px 8.0px 0.0px; font: 11.0px Helvetica} p.p2 {margin: 0.0px 0.0px 8.0px 0.0px; font: 11.0px Helvetica; min-height: 13.0px} p.p3 {margin: 0.0px 0.0px 8.0px 0.0px; font: 11.0px Helvetica; color: #0079cd} span.s1 {color: #000000} span.s2 {text-decoration: underline} Do you have sample how to load this stream from android and ios ? p.p1 {margin: 0.0px 0.0px 8.0px 0.0px; font: 11.0px Helvetica} Best Regards |
In Xamarin platforms we do not have support to load image from specified path directly, image can only be loaded as stream and used. For loading image as stream, the image should be added to project reference and it can be loaded to stream with code snippet below:
Please find the code snippet below to load image as stream and draw in PDF document.
We have attached a sample to load a image as stream and draw in PDF document which can be downloaded from below link:
|
Thanks this Is working
But if I get the steam in the pcl form the application dll
The pdf bitmap constructor throw exception only support images of type jpeg
If the image is jpeg it working
Can I work with png image type?
Best Regards
Thanks
Best Regards