Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }