private string exportPDF() { var folder = PathHelper.SafeGetDirectoryName(Project.Current.FileName); var fileName = PathHelper.SafeGetFilenameWithoutExtension(Project.Current.FileName); var pdfFile = Path.Combine(folder, fileName + ".pdf"); try { savePDF(pdfFile); } catch (Exception) { return(string.Empty); } return(pdfFile); }
private string exportImage() { var folder = PathHelper.SafeGetDirectoryName(Project.Current.FileName); var fileName = PathHelper.SafeGetFilenameWithoutExtension(Project.Current.FileName); var extension = getExtensionForDefaultImageType(); var imageFile = Path.Combine(folder, fileName + extension); try { saveImage(imageFile); } catch (Exception) { return(string.Empty); } return(imageFile); }