Skip to main content
Inspiring
June 13, 2008
Answered

cfprint

  • June 13, 2008
  • 1 reply
  • 779 views
I am trying to print a pdf on my local machine (in the same directory as the code calling it).

Here is my code:

<cfdocument format="FlashPaper" filename="test.pdf" overwrite="yes">
<p>This is a document rendered by the cfdocument tag.</p>
</cfdocument>

<cfprint type="pdf" source="test.pdf" printer="Dell Laser Printer 1110">

I am not sure what is wrong, but the error is :

Could not print PDF document.
No Startref found in last 1024 bytes opening file

The error occurred in C:\inetpub\testing\purple.cfm: line 15

13 : </cfdocument>
14 :
15 : <cfprint type="pdf" source="test.pdf" printer="Dell Laser Printer 1110">
16 :
17 :
Does anyone have any insight?

Thanks,
Frank
    This topic has been closed for replies.
    Correct answer frank_tudor
    Never mind I am trying to print this to a local printer and this is only for server side printers....

    1 reply

    frank_tudorAuthorCorrect answer
    Inspiring
    June 13, 2008
    Never mind I am trying to print this to a local printer and this is only for server side printers....