jars.cfm: проверить PDFBox/POI
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
<cfsetting showdebugoutput="no" enablecfoutputonly="yes">
|
||||||
|
<cfheader name="Content-Type" value="application/json">
|
||||||
|
<cfset result = {}>
|
||||||
|
<cftry>
|
||||||
|
<cfset result.pdfbox = createObject("java", "org.apache.pdfbox.pdmodel.PDDocument").getClass().getName()>
|
||||||
|
<cfcatch><cfset result.pdfbox = "NOT FOUND: " & cfcatch.message></cfcatch>
|
||||||
|
</cftry>
|
||||||
|
<cftry>
|
||||||
|
<cfset result.poi = createObject("java", "org.apache.poi.xwpf.usermodel.XWPFDocument").getClass().getName()>
|
||||||
|
<cfcatch><cfset result.poi = "NOT FOUND: " & cfcatch.message></cfcatch>
|
||||||
|
</cftry>
|
||||||
|
<cfoutput>#serializeJSON(result)#</cfoutput>
|
||||||
Reference in New Issue
Block a user