jars.cfm: проверить PDFBox/POI

This commit is contained in:
2026-06-18 14:14:59 +04:00
parent 2e376d3be1
commit 3975954f5d
+12
View File
@@ -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>