JumboTCMS_src/JumboTCMS.Utils/swftoolsHelp.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 程序名称: JumboTCMS(将博内容管理系统通用版)
*
* 程序版本: 7.x
*
* 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
*
* 版权申明: http://www.jumbotcms.net/about/copyright.html
*
* 技术答疑: http://forum.jumbotcms.net/
*
*/
using System;
using System.Web;
using System.Text;
namespace JumboTCMS.Utils
{
/// <summary>
/// pdf2swf-0.9.1.exe调用
/// </summary>
public static class swftoolsHelp
{
/// <summary>
/// 转换所有的页,图片质量80%
/// </summary>
/// <param name="pdfPath"></param>
/// <param name="swfPath"></param>
/// <returns></returns>
public static bool PDF2SWF(string pdfPath, string swfPath)
{
return PDF2SWF(pdfPath, swfPath, 1, GetPageCount(HttpContext.Current.Server.MapPath(pdfPath)), 80);
}
/// <summary>
/// 转换前N页,图片质量80%
/// </summary>
/// <param name="pdfPath"></param>
/// <param name="swfPath"></param>
/// <param name="page"></param>
/// <returns></returns>
public static bool PDF2SWF(string pdfPath, string swfPath, int page)
{
return PDF2SWF(pdfPath, swfPath, 1, page, 80);
}
/// <summary>
/// PDF格式转为SWF
/// </summary>
/// <param name="pdfPath">原视频文件地址,如/a/b/c.pdf</param>
/// <param name="swfPath">生成后的FLV文件地址,如/a/b/c.swf</param>
/// <param name="beginpage">转换开始页</param>
/// <param name="endpage">转换结束页</param>
/// <param name="photoQuality"></param>
/// <returns></returns>
public static bool PDF2SWF(string pdfPath, string swfPath, int beginpage, int endpage, int photoQuality)
{
string exe = HttpContext.Current.Server.MapPath("~/Bin/tools/pdf2swf-0.9.1.exe");
pdfPath = HttpContext.Current.Server.MapPath(pdfPath);
swfPath = HttpContext.Current.Server.MapPath(swfPath);
if (!System.IO.File.Exists(exe) || !System.IO.File.Exists(pdfPath))
{
后面还有 58 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。