Esempio n. 1
0
        public static void Main(string[] args)
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");

            // instantiate LoadOption object using PCL load option
            Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();

            // create Document object
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "test.pcl", loadopt);

            // save the resultant PDF document
            doc.Save(dataDir + "test-converted.pdf");
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");

            // instantiate LoadOption object using PCL load option
            Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();

            // create Document object
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "test.pcl", loadopt);

            // save the resultant PDF document
            doc.Save(dataDir + "test-converted.pdf");
        }
Esempio n. 3
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // instantiate LoadOption object using PCL load option
            Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();
            
            // create Document object
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "test.pcl", loadopt);
            
            // save the resultant PDF document
            doc.Save(dataDir + "test-converted.pdf");
        }
Esempio n. 4
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // instantiate LoadOption object using PCL load option
            Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();

            // create Document object
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "test.pcl", loadopt);

            // save the resultant PDF document
            doc.Save(dataDir + "test-converted.pdf");
        }
Esempio n. 5
0
        public static void Run()
        {
            try
            {
                // ExStart:PCLToPDF
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

                // Instantiate LoadOption object using PCL load option
                Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();

                // Create Document object
                Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "hidetext.pcl", loadopt);

                // Save the resultant PDF document
                doc.Save(dataDir + "PCLToPDF_out.pdf");
                // ExEnd:PCLToPDF
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }