Esempio n. 1
0
        public void CanPdfDocument()
        {
            var temporary = Path.GetTempFileName();

            using (var exporter = new PdfExport())
            {
                Assert.IsTrue(exporter.Convert(temporary, Path.ChangeExtension(temporary, "pdf")));
            }
        }
Esempio n. 2
0
        public void CanSetPageSize()
        {
            var temporary = Path.GetTempFileName();

            using (var exporter = new PdfExport())
            {
                exporter.UseDefaultPageSettings = false;
                exporter.PageWidth = 1;
                exporter.PageHeight = 1;

                Assert.IsTrue(exporter.Convert(temporary, Path.ChangeExtension(temporary, "pdf")));
            }
        }