BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Interestingly, I found the answer on one of the other threads in the forum. Looks like somehow, timings are messed up when you try to open the file from the Initialize (or OnNavigatedTo) events; I've been testing a number of different PDF components the past week and had not come across this error before. Here's the solution I refactored from a previous post (changing the initialize function and adding a timer tick):DispatcherTimer t;
public SyncfusionViewerTestPage()
{
this.InitializeComponent();t = new DispatcherTimer();
t.Tick += t_Tick;
t.Interval = new TimeSpan(0, 0, 1);
t.Start();
}private void t_Tick(object sender, object e)
{
string fileName = "TestFile.pdf";
OpenFile(fileName);
t.Stop();
}.....Rest of the code is same as above.
Hi Bulent,
Thank you
for your interest in Syncfusion products.
We are able
to reproduce the issue “Document could not be loaded into the Viewer during
initialization”. We have created a direct trac incident (#130472) for this
issue, please follow up the incident for its resolution.
Regarding
setting the margin, we are not able to reproduce the issue, herewith we have
attached a sample with which we tried to reproduce the issue. Please modify
this sample or provide us a simple sample with which this issue could be
reproduced.
http://www.syncfusion.com/downloads/support/directtrac/130472/PDFViewerWintRT_2013-159545140.zip
Please let
us know if you need any further assistance.
Regards,
Suresh