+ -
当前位置:首页 → 问答吧 → FlashPaper2转PDF问题

FlashPaper2转PDF问题

时间:2011-12-21

来源:互联网

C# code

    public void ConvertPdfToSwf(string inFilename, string swfFilename)
    {
        try
        {
            //string flashPrinter = Server.MapPath(@"..\..\FlashPaper 2\FlashPrinter.exe");
            string flashPrinter = string.Concat(AppDomain.CurrentDomain.BaseDirectory, @"systemInfo\FlashPaper2\FlashPrinter.exe");
            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(flashPrinter);
            startInfo.Arguments = string.Concat(Server.MapPath(inFilename), " -o ", Server.MapPath(swfFilename));
            System.Diagnostics.Process process = new System.Diagnostics.Process();
            process.StartInfo = startInfo;
            process.Start();
            process.WaitForExit();
            process.Close();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }


文件已经转换成功。。。。但转换成功的swf内容是左倒着的 内容变成竖排的了。。。大侠帮忙啊。。。。

作者: zhaochanglong   发布时间: 2011-12-21

检查你的虚拟打印机FlashPrinter的属性设置

作者: net_lover   发布时间: 2011-12-21

引用 1 楼 net_lover 的回复:

检查你的虚拟打印机FlashPrinter的属性设置


我检查过 大小是A4 方向是 landscape 但就是不行。。。

作者: zhaochanglong   发布时间: 2011-12-21

相关阅读 更多