0 Replies Latest reply on Oct 5, 2010 9:11 AM by raelehman

    FlateDecode error removing a watermark from a PDF

    raelehman Level 1

      We are running CF8.01(.195765, Java 1.6.0_13) on Windows Server 2003 R2. We have a feature where we remove a watermark from a pdf using CFPDF action="removewatermark". Occasionally (it's only happened a couple times since we released this feature last week) we get an error with the message "FlateDecode Filter". There are no other details about the error or what it means. I Googled FlateDecode and it seems like it's some sort of PDF filter that CF does not support. The file we're removing the watermark from would be a user-uploaded file that may be created by any application in any pdf format. I'd like to find out if there's a way we can detect the filter to handle the error, or if perhaps there's something else we can do to work around it. Or if anyone has experienced this problem, do you know if it's fixed in CF9?

       

      Below is a stack trace.

       

      Message: FlateDecode Filter StackTrace: com.adobe.internal.pdftoolkit.core.exceptions.PDFUnsupportedFeatureException: FlateDecode Filter      at com.adobe.internal.pdftoolkit.services.content.ContentParser.readInlineImage(Unknown Source)      at com.adobe.internal.pdftoolkit.services.content.ContentParser.nextInstruction(Unknown Source)      at com.adobe.internal.pdftoolkit.services.content.ContentReader.next(Unknown Source)      at com.adobe.internal.pdftoolkit.services.xobjhandler.PageContentXObject.removeAppliedConten t(Unknown Source)      at coldfusion.pdf.PDFDocHandler.removeWatermark(PDFDocHandler.java:911)      at coldfusion.pdf.PDFDocOperation.removeWatermark(PDFDocOperation.java:817)      at coldfusion.tagext.lang.PDFTag.doEndTag(PDFTag.java:1045)      at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2662)      at cfletterListener2ecfc1596138578$funcSAVESIGNATURES.runFunction(C:\inetpub\version3\dossie r\listeners\letterListener.cfc:434)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:463)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:453)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:320)      at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)      at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:362)      at cfEventInvoker2ecfc107436658$funcINVOKELISTENER.runFunction(C:\inetpub\frameworks\MachII\ framework\invokers\EventInvoker.cfc:62)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)      at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)      at cfNotifyCommand2ecfc124367523$funcEXECUTE.runFunction(C:\inetpub\frameworks\MachII\framew ork\commands\NotifyCommand.cfc:68)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)      at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)      at cfEventHandler2ecfc1790357754$funcHANDLEEVENT.runFunction(C:\inetpub\frameworks\MachII\fr amework\EventHandler.cfc:62)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)      at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)      at cfRequestHandler2ecfc1918144366$funcHANDLEEVENT.runFunction(C:\inetpub\frameworks\MachII\ framework\RequestHandler.cfc:281)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)      at cfRequestHandler2ecfc1918144366$funcHANDLENEXTEVENT.runFunction(C:\inetpub\frameworks\Mac hII\framework\RequestHandler.cfc:237)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)      at cfRequestHandler2ecfc1918144366$funcPROCESSEVENTS.runFunction(C:\inetpub\frameworks\MachI I\framework\RequestHandler.cfc:193)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)      at cfRequestHandler2ecfc1918144366$funcHANDLEREQUEST.runFunction(C:\inetpub\frameworks\MachI I\framework\RequestHandler.cfc:127)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)      at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)      at cfmach2dii2ecfc1778049724$funcHANDLEREQUEST.runFunction(C:\inetpub\frameworks\MachII\mach -ii.cfc:106)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)      at cfApplication2ecfc335108791$funcONREQUESTSTART.runFunction(C:\inetpub\version3\Applicatio n.cfc:202)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)      at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)      at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)      at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)      at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)      at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:74)      at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:221)      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273)      at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)      at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)      at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)      at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)      at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)      at coldfusion.CfmServlet.service(CfmServlet.java:198)      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)      at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )      at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)      at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)      at jrun.servlet.FilterChain.service(FilterChain.java:101)      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

       

      Thanks for any help!