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

            var loadopt = new SvgLoadOptions();
            loadopt.AdjustPageSize = true;
            var svgDoc = new Document(dataDir + "Example.svg", loadopt);
            svgDoc.Pages[1].PageInfo.Margin.Top = 0;
            svgDoc.Pages[1].PageInfo.Margin.Left = 0;
            svgDoc.Pages[1].PageInfo.Margin.Bottom = 0;
            svgDoc.Pages[1].PageInfo.Margin.Right = 0;
            svgDoc.Save(dataDir + "SVG_test.pdf");
        }
 public static void Run()
 {
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
     
     var loadopt = new SvgLoadOptions();
     loadopt.AdjustPageSize = true;
     var svgDoc = new Document(dataDir + "Example.svg", loadopt);
     svgDoc.Pages[1].PageInfo.Margin.Top = 0;
     svgDoc.Pages[1].PageInfo.Margin.Left = 0;
     svgDoc.Pages[1].PageInfo.Margin.Bottom = 0;
     svgDoc.Pages[1].PageInfo.Margin.Right = 0;
     svgDoc.Save(dataDir + "SVG_test.pdf");
 }
Example #3
0
        public static void Main(string[] args)
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");

            var loadopt = new SvgLoadOptions();

            loadopt.AdjustPageSize = true;
            var svgDoc = new Document(dataDir + "Example.svg", loadopt);

            svgDoc.Pages[1].PageInfo.Margin.Top    = 0;
            svgDoc.Pages[1].PageInfo.Margin.Left   = 0;
            svgDoc.Pages[1].PageInfo.Margin.Bottom = 0;
            svgDoc.Pages[1].PageInfo.Margin.Right  = 0;
            svgDoc.Save(dataDir + "SVG_test.pdf");
        }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            var loadopt = new SvgLoadOptions();

            loadopt.AdjustPageSize = true;
            var svgDoc = new Document(dataDir + "Example.svg", loadopt);

            svgDoc.Pages[1].PageInfo.Margin.Top    = 0;
            svgDoc.Pages[1].PageInfo.Margin.Left   = 0;
            svgDoc.Pages[1].PageInfo.Margin.Bottom = 0;
            svgDoc.Pages[1].PageInfo.Margin.Right  = 0;
            svgDoc.Save(dataDir + "SVG_test.pdf");
        }