Im trying to do a file conversion using PDFTron
I have something that looks like this:
try
{
docpdf = new pdftron.PDF.PDFDoc();
string fullpath = ApplicationData.Current.LocalFolder.Path +"\\"+ Constants.DataDirectory + "\\" + document.GetFullPath().Replace("/", "\\");
pdftron.PDF.Convert.ToPdf(docpdf, fullpath);
StorageFile fileConverted = await currentFolder.CreateFileAsync(docpdf.GetDocInfo().GetTitle(), CreationCollisionOption.ReplaceExisting);
await docpdf.SaveToNewLocationAsync(fileConverted, pdftron.SDF.SDFDocSaveOptions.e_linearized);
MyPDFViewCtrl.SetDoc(docpdf);
MyPDFViewCtrl.SetPageViewMode(pdftron.PDF.PDFViewCtrlPageViewMode.e_fit_width);
}
catch (Exception e)
{
Debug.WriteLine(e.Message);
}
But i get a exception on the Convert.ToPdf line
The text associated with this error code could not be found.
Exception: Message: An error occurred while converting the file. Detailed error: ToPDF cannot convert this file format on this platform. Conditional expression: false Filename : Convert.cpp
Function : trn::PDF::Convert::ToPdf Linenumber : 1825
Is it not possible on windows 8 store apps?