Aspose.Pdf.Examples.CSharp.AsposePdfGenerator.Conversion.XSLFOToPDF.XSLFOToPDFUsingBind C# (CSharp) Method

XSLFOToPDFUsingBind() public static method

public static XSLFOToPDFUsingBind ( ) : void
return void
        public static void XSLFOToPDFUsingBind()
        {
            // ExStart:XSLFOToPDFUsingBind
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfGenerator_Conversion();
            // Create pdf document
            Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
            // Bind FO document with Pdf object
            pdf.BindFO( dataDir + "XSLFOToPDF.fo");
            // Save the PDF document
            pdf.Save(dataDir + "XSLFOToPDFUsingBind_out.pdf");
            // ExEnd:XSLFOToPDFUsingBind
        }