|115216||Jan 5,2014 09:02 PM UTC||Jan 6,2014 05:20 AM UTC||WinRT||1|
I'm sorry for wasting your time. This seems simple, but all the examples only show showing pdf files from picker. I can't seem to find any example for showing a pdf file that is included in the project. What is the code for this? Thank you for being patient with me.
Thank you for using Syncfusion products.
Please find the sample available in the link below which demonstrates loading PDF document (Barcode.pdf) which is included in the project with the build action set to Embedded Resource. Also find the code snippet to do the same below.
Assembly assembly = typeof(MainPage).GetTypeInfo().Assembly;
Stream fileStream = assembly.GetManifestResourceStream("PDFViewerWintRT.Assets.Pdf.Barcode.pdf");
byte buffer = new byte[fileStream.Length];
fileStream.Read(buffer, 0, buffer.Length);
PdfLoadedDocument ldoc = new PdfLoadedDocument(buffer, "syncfusion");
Sample Link: PDFViewerWintRT_2013.zip
Please let us know if you need any further assistance.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.