CFPDF pdf being downloaded as .cfm file

Hi there,
My website uses ColdFusion to create pdfs. Currently, users have been contacting me to say the PDFs that are created are being downloaded as .cfm files instead of .pdf files. This is annoying because they have to manually rename the file extension every time. As far as I am aware this is only happening in Firefox.
Is this a known issue and something fairly simple to correct?
Thanks for any input.
Ben.

Adding the following cfheader fixed the issue:
<cfheader name="Content-Disposition" value="attachment; filename=#getFileFromPath(PDFpath & '_myFileName.pdf')#">
Except, now the alternate function of e-mailing the PDF as an attachment (rather than displaying it in the browser or saving it to their computer) does not work.

Similar Messages

  • PDF Forms Saved as CFM Files

    OK, this is kind of a bizarre question and I suspect it has something to do with my having Master Collection installed on my machine and a file typing issue.  But I can't confirm for sure . . . so if anyone has any ideas to point me in the right direction, I'd really appreciate it.
    I'm running Windows 7 Professional (32 bit) with Master Collection CS5 installed.
    I'm a real estate agent and our MLS has forms for us to fill out when writing an offer to purchase for someone.  When we create a profile for our buyer, we fill out their basic information in a web form (Name, Address, Property Address, Purchase Price, etc. etc.).  Then we select (again through another web form) the forms we want to populate with the appropriate information.  Once we hit submit, we're given the option to open each form individually and then fill in other parts of the forms, etc.  The page that controls that is a Cold Fusion page  i.e. pagename.cfm followed by arguments that tell it what form to open and where to find the intormation to fill in.  When I've filled in the form and go to save it, on any machine that doesn't have Dreamweaver, etc. installed it saves those forms as a PDF file.  On my machine however, with everything installed, it wants to save them as CFM files.  Now I know they're actually PDF files and if I forget to rename it during the initial save, I can go in and change the extension and it opens in Acrobat just fine.  But I'd like to NOT have to remember to rename them everytime I save a form. 
    So again, I think it's a file typing/extension issue . . . but I'm not sure where to start looking.  And I've never messed with that stuff in Windows 7 either.
    Any help would be GREATLY appreciated.
    Thanks in advance for any replies.
    John

    Came here to complain about this maddening feature. Why it doesn't save the PDF out to a separate instance of the document is beyond me. PLENTY of us want to save the PDF without the layers, and want the PSD separate.
    "Oh good, I've completed this document.... let me just save it out as a PDF for client delivery and... Now all the work is gone."
    Genius, Adobe, genius. But it's cool--we'll just keep paying out the nose on a subscription basis with no fix for small errors like this.

  • How to download a LOB file without File Browse or a Report?

    Hi, All,
    Behind my APEX 4.2.2 app, I have a table with PDF's held in a column of type BLOB.  With the ID of a given row held in a Page Item, I would like to dynamically generate a simple link for downloading the file.  Can this be done?
    I wasn't sure how to pose this question, so feel free to ask for details you think might help you help me
    Thanks,
    -Seth.

    Mike,
    Thank you for your help.  Here is how I managed to display a Page Item as a URL to download a BLOB - which is a PDF, in this case...
    1. Set up an Automatic Row Fetch process
    2. Created a Page Item (P4_BLOB_CONTENT) with its source as the blob content database column
    3. Created a Display Only page item (P4_DOWNLOAD_LINK) but did nothing to it
    4. Set up a Dynamic Action (On Change, Set Value) to set the value of P4_DOWNLOAD_LINK via a SQL Query, setting Escape Special Characters to No:
    SELECT '<a href="'||APEX_ITEM.GET_BLOB_FILE_SRC('P4_BLOB_CONTENT',doc_id,NULL,'inline')||'">Download Link</a>' dlink
    FROM documents
    WHERE doc_id =  :P4_DOC_ID;
    This Dynamic Action fires when the value of P4_DOC_ID changes.  This displays a functioning hyperlink, Download Link, that gets the PDF. If the above query returns no row, no link is displayed.
    Two remaining questions:
    1. When the link is clicked, the browser wants to save the PDF.  This is fine, of course, but it does so with a default file name of 'download'.  How can I set that default file name as the name of the PDF being downloaded?
    2. How do I get the MIME type to be passed along so the browser knows about it?  The MIME type stored in the database table.
    Thanks,
    -Seth.

  • Unable to download a docx file

    will this PDF sofware download a Docx file?

    Hi Charles,
    ExportPDF will take PDF's and convert them to various files depending on the level of service you have purchased.
    Are you receiving a specific error message while attempting the conversion?
    Let me know how I can assist!
    Looking forward to hearing back from you.
    Regards, Stacy

  • Battling to download PDF via index.cfm file

    Hi.
    I'm trying to download an pdf from alink to a index.cfm file
    - Firefox downloads a 0byte file which then dissapears immediately,
    whereas IE7 at least recognises a PDF file, but still downloads it
    as a 0byte file which then wont open anyway :(
    Any ideas??

    Wrong forum (this is Digital Editions), but ...
    I find .pdf files often won't launch properly on my Win8.1.  It starts the process but it doesn't do the right thing.
    Try making sure you don't have any copies of Reader working (AcroRd32.exe on my 32 bit Win 8.1).
    Start a copy from the start screen (or start menu if you've set one up) BEFORE you try to access the file.
    Now try to do the download or open it from the downloads directory.
    I find that way the file will open properly.

  • Good day, I can not figure out since signing up to stop everything being downloaded from becoming a PDF file.

    Good day, I need instructions on disabiling everything I download since signing up becoming a PDF file and changed everything on my desk top to PDF. File also. Thank You

    Good Morning Pat,
    I have windows 8 system.
    When pdf files download to system and open in Acrobat. Right had side has
    option to change files and save them with Acrobat.com,(save files online)
    also option to sign up to Change any file to PDF. I signed up without
    paying for a service on right, but did create the online Acrobat.com.
    Online when I right click SAVE AS....
    to Desktop everything downloads to PDF. Then I have to right click on it,
    because files can not be opened with Acrobat, and have to open the files
    with another program example, Firefox.
    In Acrobat, I do not know how disable the option to store all files to PDF.
    And saving any files from the internet
    automatically downloads as a PDF ffile and can not be opened with it and I
    have to choose program to open with.
    I hope I explained the problem best I can,....I'm 47 and kinda new to
    windows 8, God Bless, Tnks 4 help.
    On Sat, Jun 7, 2014 at 10:08 PM, Pat Willener <[email protected]>

  • Need to extend header length in Excel file being downloaded by GUI_DOWNLOAD

    hello Experts,
    I have written a program where the data from DSO is downloaded into Excel File which is being saved on my desktop.
    Now, i am facing one problem with the length of header and the values.
    For eg:
    I have 15 cloumns and i have given description for each column ie header name. This header is being displayed only upto 255 characters. If the total length of all the columns header desc exceeds 255 char, then blank header is displayed further.
    Same is the case with the values of the columns.
    I am pasting the relevant code.
    The code for displaying header and fields is:
    Concatenate
    'Sales Org'
    'Sales Org Desc'
    'Sales Dist'
    'Sales Dist Desc'
    'Sales Rep'
    'Sales Rep Desc'
    'Customer Number'
    'Customer Desc'
    'Billing Document'
    'AGI Code No'
    'AgiCode Desc'
    'UCAGI Code No'
    'UCAGI Code Desc'
    'Design Code'
    'CalMonth'
    'CalYear'
    'Billing Qty'
    'ZDIF'
    'ZE01'
    'ZE13'
    Into ls_contents-line SEPARATED BY lc_tab.
    APPEND ls_contents TO lt_contents.
    CLEAR ls_contents.
    Loop at i_t_Table into wa_i_t_t_Table.
    concatenate
          wa_i_t_t_Table-/BIC/G00000574
          wa_i_t_t_Table-salesorg_name
          wa_i_t_t_Table-/BIC/G00000514
          wa_i_t_t_Table-salesdist_name
          wa_i_t_t_Table-/BIC/G00009361
          wa_i_t_t_Table-SalesRep_name
          wa_i_t_t_Table-/BIC/G00000466
          wa_i_t_t_Table-Customer_name
          wa_i_t_t_Table-/BIC/G00000464
          wa_i_t_t_Table-/BIC/G00000001
          wa_i_t_t_Table-agicode_name
          wa_i_t_t_Table-/BIC/G00000002
          wa_i_t_t_Table-UCagicode_name
          wa_i_t_t_Table-/BIC/G00000005
          wa_i_t_t_Table-CALMONTH2
          wa_i_t_t_Table-CALYEAR
          wa_i_t_t_Table-/BIC/G00001108
          wa_i_t_t_Table-/BIC/G00021022
          wa_i_t_t_Table-/BIC/G00021023
          wa_i_t_t_Table-/BIC/G00021024
    INTO ls_contents-line SEPARATED BY lc_tab.
    *CONCATENATE ls_contents lv_hex1 INTO ls_contents.
              APPEND ls_contents TO lt_contents.
              CLEAR ls_contents.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
       FILENAME                        = c_filename
    FILETYPE                        = 'DAT'
      APPEND                          = ' '
       WRITE_FIELD_SEPARATOR           = ' '
    HEADER                          = '01'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = '0'
      WK1_N_SIZE                      = '20'
      WK1_T_FORMAT                    = '0'
      WK1_T_SIZE                      = '20'
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = lt_contents
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Note:  Gone through SDN where many things are suggested like to use parameter of GUI_DOWNLAOD ie "FIELDNAMES " which is disabled in my SAP version.
    Please suggest how to make all the headers and the values of the fields properly.
    Would appreciate immediate help.
    Thanks in advance.
    Regards
    Lavanya

    solved.

  • I am having problems interacting with Microsoft Office programs since the last update:cannot create a pdf through the 'print' menu in exel and both Word and Exel docs sent in Mac Mail end up being received as .dat files.

    I am having problems interacting with Microsoft Office programs since the last update:cannot create a pdf through the 'print' menu in exel and both Word and Exel docs sent in Mac Mail end up being received as .dat files.
    Both these situations have cropped up on my MacBook Pro since the last update.
    Thanks for your help.
    Cheers
    Bob

    The 'Winmail.dat' problem has been extensively covered in these forums, I would search for that (a Google search works well) and unfortunately I have not seen the pdf print problem before, but assuming the software is current and functions normally (other than the pdf print problem) I have no suggestion other than the obvious (but time consuming) re-installation of Office.
    I wish I had more

  • JNLP and jar files are being download from server again.

    I have a swing application deployed with Java Web Start on a server.
    On my client I install the application using JWS JRE 1.6.
    The issue is that without any change in the jars or JNLP the jars are being downloaded from the server again and again
    This is not consistant - it happens only sometimes.
    One important thing to mention: The server is inside a load-balancer cluster (AKAMAI), so the IP address of the actual server may change between different accesses.
    in the log, I can see the error:
    "Cache entry not found"
    and then the jar is being downloaded again.
    sometimes only one or two jars were downloaded again, sometimes the whole package with the JNLP file were dowloaded again.
    Can you suggest what can be the reason for this behavior?
    Thank you,
    Ran

    That does seem slow, but there are many factors that could be involved. More information would be helpful:
    - Are the source and destination filesystems ZFS or UFS? (or some other FS)
    - What does iostat show you?
    - What does vmstat show you?
    - What type of HBAs connect you to the SAN? ('fcinfo hba-port')
    - Anything in /var/adm/messages?

  • Download Helper - How to download & save .wmv files WITHOUT the video being downloaded playing on screen?

    Windows 7 Pro
    Latest Version of Firefox
    Latest Version of Download Helper
    Windows Media Player and VLC are installed
    When I download a video file (typically .wmv) the video begins playing on the monitor screen prior to my being able to use Download Helper to download the video and save to the hard drive. This typically results in the video stopping and playing and stopping throughout the download process because of the download speed available. There is never any issue with the final download on the hard drive.
    Today I installed latest version of Firefox and Download Helper on another computer.
    Windows 7
    Latest Version of Firefox
    Latest Version of Download Helper
    Windows Media Player (only) is installed
    Downloaded the same .wmv file downloaded above and the video did NOT begin playing on the monitor screen. Download Helper allowed me to download the file to the hard drive WITHOUT constantly listening to the video start/stop/start/stop etc.
    What option (in which program) would allow the playing of the video to be toggled on or off while downloading the .wmv file?
    Thank you.

    Once the download has started, you can go to another web page. The
    download should be a separate function.

  • How to delimited text file data being downloaded in Application server

    Hi All,
    How to delimited or having a tab between each fields in the data being downloaded to  Application server. Please provide an example of code or how i should make changes to my below coding. Thanks.
    eg. the out file in application server.
    Field1#Field2#Field3
    what I currently get was as below:-
    Field1Field2Field3
    My coding:
    FORM download_outfile.
      DATA : xfer(400).
      IF rb_locl EQ 'X'.
        DESCRIBE TABLE itab LINES sy-tfill.
        IF sy-tfill GT 0.
          CALL FUNCTION 'WS_DOWNLOAD'
               EXPORTING
                    filename            = p_file
                    filetype            = 'DAT'
               TABLES
                    data_tab            = itab
               EXCEPTIONS
                    file_open_error     = 1
                    file_write_error    = 2
                    invalid_filesize    = 3
                    invalid_table_width = 4
                    invalid_type        = 5
                    no_batch            = 6
                    unknown_error       = 7
                    OTHERS              = 8.
          IF sy-subrc EQ 0.
            WRITE : / 'download done’.
          ELSE.
            WRITE : / '4)Error occured'.
          ENDIF.
        ENDIF.
      ELSE.
        OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
        DATA : l_subrc LIKE sy-subrc.
        LOOP AT itab.
          MOVE itab TO xfer.
          TRANSFER xfer TO p_file.
          IF sy-subrc NE 0.
            l_subrc = sy-subrc.
          ENDIF.
        ENDLOOP.
        IF l_subrc EQ 0.
          WRITE :/ 'download done’.
        ELSE.
          WRITE :/ 'error occurred’.
        ENDIF.
        CLOSE DATASET p_file.
      ENDIF.
    ENDFORM

    Hi,
    Please check this sample codes.
    OPEN DATASET P_DOWN FOR OUTPUT IN TEXT MODE. " P_DOWN is the file to download
      IF SY-SUBRC = 0.
        CLEAR V_STRING.
    *-- Download to the file
        LOOP AT IT_DOWN.
          CONCATENATE IT_DOWN-DISTTYPE
                      IT_DOWN-O_CITY
                      IT_DOWN-O_REGIO
                      IT_DOWN-O_PSTLZ
                      IT_DOWN-O_CTRY
                      IT_DOWN-D_CITY
                      IT_DOWN-D_REGIO
                      IT_DOWN-D_PSTLZ
                      IT_DOWN-D_CTRY
                      IT_DOWN-DISTANCE
                 INTO V_STRING
                 SEPARATED BY '09'.    " here 09 is the tab delimeter
          TRANSFER V_STRING TO P_DOWN.
          CLEAR V_STRING.
        ENDLOOP. 
    Regards,
    Ferry Lianto

  • CFM files downloading instead of processing

    I have an IIS7 Windows 2008 server that was running ColdFusion 9 Standard just fine.  We're trying to update it to ColdFusion 10 Standard.  However, despite multiple re-installs, CFM files always download instead of serving properly.  Here are the things I have confirmed.
    All the necessary IIS services/features are installed per the Adobe documentation
    The ISAPI filter and handler mappings are getting added in IIS and pointing to the correct CF10 filter.
    We have run the Connector program, removed CF and re-added CF to the sites, with no change in behavior.
    If we remove CF10 from the site, and then run the CF9 connector and connect CF9 it works great.  As soon as we switch to CF10, though, it just will not execute CFM files.
    One other odd thing... I noticed that the MIME type of cfm file when downloaded in /msdownload.  Even if we manually enter a text/html MIME type for cfm files (which shouldn't be necessary) it still comes down as /msdownload.
    My theory on this is that some process is intercepting the request before it gets to ColdFusion/Tomcat.  Not sure why it happens with CF10 but not with CF9.
    Thanks for any advice you may have.

    Hi,
    It often depends on the website serving the videos. If they specify the wrong MIME type for the file then Safari will treat it as a regular binary file and download it.
    Can you give examples of sites where you see the differing behaviour?

  • Updating large pdf file on multi devices but do I have to download the entire file every time?

    So I have a pdf file that is 500mb (already on acrobat.com cloud) and I want to read this across tablet, desktop, and phone. I will be updating this file bit by bit on every one of those devices. Does this mean that every time I want to see the updated version I have to wait for a download of 500mb? Because that is just ridiculous!

    Hi salmanf76008405
    Yes, You would need to download the entire file, in order to see the updated version.
    Regards,
    Rahul

  • How to protect my jar file from being downloaded

    How can i protect my jar file from being downloaded by users by accessing it through the web site.
    Now everybody can just type the url www.mysite.com/applets/myApplet.jar
    And download it to his computer.
    I realize that anybody who really wants to download it he will get it anyway, but I want to make it harder.
    thanks in advance

    Your browser has to download the jar file if it's going to run the applet. That's applets work. The browser downloads the classes and then runs them locally.
    I suppose if you wanted to make something to make it difficult for users to explicitly download the jar, you could set some kind of permission flag when the HTML is page is rendered, and then unset it some amount of time (10 seconds?) later, and then only let the user download the jar when the flag is set. But this would be fragile and irritating and unhelpful. It would probably break more than you'd like and not prevent download very much (it wouldn't take long to figure out what was happening), and besides nobody is ever going to try to steal your code.

  • How to prevent swf files being downloaded

    People,
    I'm a teacher and I have some animations made in flash language (swf). I would like to publish these animations on my web site so my students could see, but I wonder if there is any way to prevent these animations being downloaded.
    Example: when I see an animation published on my web site, this animation is stored in Internet Temporary Files and I can save this animation anywhere. How can I prevent an animation is stored in the temporary folder? In other words, this animation can only be seen if the user is logged on the site.
    Urgent!!!
    Thanks.
    Alyson

    I think that's what I want. I found a site that has exactly what I need. It
    is done this way too?
    Plese take a look at http://www.edumedia-sciences.com/en/a559-scintigraphy
    <http://www.edumedia-sciences.com/>
    Thanks
    2009/11/16 moccamaximum <[email protected]>
    You could implement a kind of time-barrier, like in the trial versions you
    download from softwarecompanys.
    For the most users, that are not understanding actionscript and know how to
    read the code, even if they decompile it, that would prevent the swf being
    played after a certain date that you would have to implement in your code.
    In AS2 the code would be like this:
    >
    var now:Date = new Date(); //reads the user system date
    var release:Date = new Date(2009, 11, 16); //here goes the date, when you
    want to have the program deactivated
    >
    if(now <= release){
       playSwf(); // here goes your normal code
    >
    else{
       doNothing();
    >
    Like the most TimeBarriers this could be easily circumvented if the user
    sets back his system date, so do not give a message like "You trial period
    has expired"
    >

Maybe you are looking for

  • Cancel PO

    How to cancel a Purchase Requisition, Purchase order before Releasing and after releasing?

  • Oracle 10g - Chinese Charecter issue

    Hi All I have the following scenario and I need your valuable inputs solve my problem I am using Oracle 10g version and I have a database created and it contains around 9 tables and 25k records, as per my current requirement I need to add few more co

  • Machine authentication over Client IPSEC tunnel

    I am in the process of converting our existing remote access from Microsoft Threat Management Gateway to Cisco ASA.  Our security folks just made me aware that in addition to the Radius authentication against AD credentials that they also want me to

  • Can I safely delete the backup on my iPhone?

    I recently upgraded from an iPhone 4 to an iPhone 6. I backed up my 4 to my computer and then transferred all the info from it (contacts, etc) to my 6. But the backup of the 4 is still on my iPhone 6 and since it's taking up a lot of space I'd like t

  • Physical Column

    I'm trying to know the physical column for the prompt values in Dashboard's. But for prompts there are two logical table sources in turn they have two physical tables. How would I know which physical table value is using by prompt. Is there any log f