Skip to main content
Participant
March 30, 2015
Question

cfhtmltopdf with remote PDF service returning “FILE NOT FOUND”

  • March 30, 2015
  • 1 reply
  • 1955 views

I'm developing with CF11 on a Mac, which doesn't support having a local PDF Service to use with the new tag. But, I'm able to set up a PDF service that points to our dev (Windows) server. That service verifies via the admin.

However, when I try to do a simple test:

<cfhtmltopdf>

    Hello

</cfhtmltopdf>

I get an error of "Error occurred while generating PDF" with the error detail of "Reason: FILE NOT FOUND". If we try this code directly on the dev server (so it's using the local PDF service), it works just fine.

Anyone have an idea of what file it's referring to or what else may be going on?

This topic has been closed for replies.

1 reply

Inspiring
July 23, 2015

I've run into a similar problem, but the error I get is "CANNOT CONNECT TO SERVER". The remote service request logs show a 400 error (bad request) but I'm not sure what is wrong. Have you made any progress with this issue?

Sandip_halder
Participating Frequently
July 23, 2015

Can you post a screenshot of the issue?

Inspiring
July 23, 2015

PDFG service request log:

10.1.1.42 -  -  [23/Jul/2015:17:15:11 +0000] "POST /PDFgServlet/ HTTP/1.1" 500 319

10.1.1.42 -  -  [23/Jul/2015:17:15:16 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 -

10.1.1.42 -  -  [23/Jul/2015:17:15:16 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 331

10.1.1.42 -  -  [23/Jul/2015:17:15:38 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 331

I've tried enabling logging in the PDFgServlet\WEB-INF\web.xml file but that just causes the remote service to crash.