首页 \ 问答 \ 如何将word文档转换为perl中的pdf文件?(How to convert word document to pdf file in perl? [closed])

如何将word文档转换为perl中的pdf文件?(How to convert word document to pdf file in perl? [closed])

在PHP中,我们可以使用Zend Framework将Microsoft Word文档转换为PDF文件。 但我不知道如何在Perl中转换为PDF。


In PHP, we can use Zend Framework to convert from a Microsoft Word document to PDF file. But i don't know how to convert to PDF in Perl.


原文:https://stackoverflow.com/questions/8413586
更新时间:2023-06-17 12:06

最满意答案

我认为以下功能可以更好地满足要求

CREATE FUNCTION fn_CompareDate(@ID VARCHAR(10))
RETURNS DATETIME
AS 
BEGIN   
    DECLARE @maxDate DATETIME;
    SELECT @maxDate =
    (SELECT Max(v) 
    FROM (VALUES (COLUMN1), (COLUMN2), (COLUMN3)) AS value(v)) 
    FROM table 
    WHERE ID = @ID

    RETURN @maxDate;
END;

现在运行以下查询

select dbo.fn_CompareDate(ID) from table where ID = 1

希望你明白了。


I think the below Function serves requirment better

CREATE FUNCTION fn_CompareDate(@ID VARCHAR(10))
RETURNS DATETIME
AS 
BEGIN   
    DECLARE @maxDate DATETIME;
    SELECT @maxDate =
    (SELECT Max(v) 
    FROM (VALUES (COLUMN1), (COLUMN2), (COLUMN3)) AS value(v)) 
    FROM table 
    WHERE ID = @ID

    RETURN @maxDate;
END;

Now run the below query

select dbo.fn_CompareDate(ID) from table where ID = 1

Hope you got it.

相关问答

更多
  • 我想你想要Table1和Table2所有行,这样每个IDCodeField值只出现在一个表中或另一个表中。 您希望排除两个表中出现相同值的行。 暂时忽略如果相同的值出现在同一个表中该怎么做的问题,最简单的查询将是: SELECT * from Table1 T1 full outer join Table2 ON T1.IDCodeField = T2.IDCodeField WHERE T1.IDCodeField is null or T2.IDCodeField is null 这将给出结果,但可能 ...
  • 您不需要从MySQL获取任何记录,因为您实际上想要更新它。 我会做这样的事情: $query = 'SELECT p.code, ps.onhand FROM (...)'; // execute the SQL query and return a result set // mssql_query() actually returns a resource // that you must iterate with (e.g.) mssql_fetch_array() $mssqlResult = m ...
  • 我认为以下功能可以更好地满足要求 CREATE FUNCTION fn_CompareDate(@ID VARCHAR(10)) RETURNS DATETIME AS BEGIN DECLARE @maxDate DATETIME; SELECT @maxDate = (SELECT Max(v) FROM (VALUES (COLUMN1), (COLUMN2), (COLUMN3)) AS value(v)) FROM table WHER ...
  • 您是否尝试从方法返回数据? 如果是这样,您应该使用select A结束查询,这将产生与A相同的类型。 如果没有,您可以使用匿名类型,就像使用常规类型一样。 例如: var results = from ... select new { A.Product, A.Qty }; foreach(var thing in results) { Console.WriteLine("{0}: {1}", thing.Product, Thing.Qty); } 编辑 :要使其成为一个列表,调用ToLis ...
  • 尝试这个: SELECT CASE WHEN REPLACE (Table1.ColName1,'.','') = Table2.ColName2 THEN 'Equal' ELSE 'Not Equal' END AS IsEqual FROM Table1 INNER JOIN Table2 ON Table1.PrimaryKey = Table2.ForeignKey 如果它们相等,则该查询将返回Equa ...
  • 我假设SQL Server,[ServiceDate]作为数据库中的DataTime,[Balance]作为数据库中的某种数字。 Private Function GetOldAccounts() As DataTable Dim dt As New DataTable Using cn As New SqlConnection("Your connection string") Using cmd As New SqlCommand("Select ...
  • Column01中的数据无法转化为DECIMAL 。 对于SQL Server 2012+我会使用TRY_PARSE : SELECT * FROM your_table WHERE Column02 = TRY_PARSE(Column01 AS DECIMAL(38,18)); LiveDemo 当来自列的值无法安全地转换时,您将获得NULL 。 对于SQL Server 2008您可以使用: SELECT * FROM #tab WHERE (CASE WHEN ISNUMER ...
  • 我认为你应该“规范化”数据并使用union all和group by来完成相当于完全外连接group by 。 这看起来像: select id, cat from (select id, cat1 as cat, 1 as which from table1 union all select id, cat2 as cat, 1 as which from table1 union all select id, cat3 as cat, 1 as which from table1 ...
  • 正如我在评论中所说: 不要在FROM子句中使用逗号( , )运算符,它已经过时了二十多年,而是使用JOIN关键字语法。 因为如果你这样做,你就会知道...... 你是CROSS JOIN -ing你的桌子,这是非常糟糕的,99%的时候逻辑错误。 您需要使用列子查询。 喜欢这个: SELECT CASE WHEN (SELECT SUM(cast(no_id as bigint)) FROM table_a) = (SELECT SUM(cast(no_id as bigint)) FR ...
  • 将日期存储为字符串是没有意义的。 但是你这样做。 因为您有字符串,所以无需转换为日期。 做得怎么样: select r.project_name, to_char(r.created_on, 'MM/DD/YYYY'), to_char(r.project_opened_on_date, 'MM/DD/YYYY') from wh_project_repo r where substr(r.created_on, 10) <> substr(r.project_opened_on_date, ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)