Пример #1
0
        public string Generate(OutputFile outputFile)
        {
            var outputFileName = $"{DateTime.Now:yyyyMMdd-HHmmss}_test.pdf";
            var outputFilePath = Path.Combine(_outputDirectory, outputFileName);
            var pdf            = new PdfLibWrapper("W900205-010045-139339-E74DE2-79Q6F2");

            InitializeLikeXpresso(pdf, outputFilePath);

            BuildPdf(pdf, outputFile);

            pdf.end_document(string.Empty);

            return(outputFilePath);
        }
Пример #2
0
        static void Main(string[] args)
        {
            var pdfFileName = "test.pdf";
            var pdf         = new PdfLibWrapper("W900205-010045-139339-E74DE2-79Q6F2");

            Initialize(pdf, pdfFileName);

            //DrawTestPage(pdf);
            //DrawSourcePdf(pdf);
            //DrawBarcode(pdf);
            GeneratePap720Pdf(pdf);

            pdf.end_document(string.Empty);

            Console.WriteLine("Done");
            Console.ReadKey();
        }