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

            // instantiate new Document object
            Document doc = new Document(dataDir + "input.pdf");

            //Set Left Right and Z factors
            double[] parameters = { 0, 0, 10 };

            //Set Explicit Destination
            ExplicitDestination ED = ExplicitDestination.CreateDestination(1, ExplicitDestinationType.XYZ, parameters);

            //Set Action
            GoToAction action = new GoToAction(ED);

            //Set Open action of document
            doc.OpenAction = action;

            //Save the document
            doc.Save(dataDir + "Zoomed_pdf.pdf");
        }
コード例 #2
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_WorkingDocuments();

            // instantiate new Document object
            Document doc = new Document(dataDir + "SetZoomFactor.pdf");

            //Set Left Right and Z factors
            double[] parameters = { 0, 0, 10 };

            //Set Explicit Destination
            ExplicitDestination ED = ExplicitDestination.CreateDestination(1, ExplicitDestinationType.XYZ, parameters);

            //Set Action
            GoToAction action = new GoToAction(ED);

            //Set Open action of document
            doc.OpenAction = action;

            //Save the document
            doc.Save(dataDir + "Zoomed_pdf.pdf");
        }