public static void Run()
        {
            TiffFile tiffFile = new TiffFile(Util.GetPath("Resources/Images/fw9_18.tif"));
            Document document = tiffFile.GetDocument();

            document.Draw(Util.GetPath("Output/TiffToPDF.pdf"));
        }
        // Convert a multipage TIFF image to a PDF document.
        // This code uses the DynamicPDF Core Suite for .NET product.
        // It used the following namespace from the ceTe.DynamicPDF.CoreSuite.NET NuGet package:
        //  * ceTe.DynamicPDF namespace for the Document class
        //  * ceTe.DynamicPDF.Imaging namespace for the TiffFile class
        static void ConvertExampleOne()
        {
            TiffFile tiffFile = new TiffFile("../../../Resources/fw9_18.tif");
            Document document = tiffFile.GetDocument();

            document.Draw("core-suite-output.pdf");
        }
예제 #3
0
        public static void Run(string outputPdfPath)
        {
            // Create a TiffFile object from the TIFF image
            TiffFile tiffFile = new TiffFile(Util.GetResourcePath("Images/fw9_18.tif"));

            // Create a document object from the file
            Document document = tiffFile.GetDocument();

            // Save the PDF document
            document.Draw(outputPdfPath);
        }