PDF Filename is entire path

I am outputting a report to PDF and its all working fine
except for one thing, and that is that the pdf's filename is the
entire path to the file instead of just the filename. This is the
code I am using in the cfdocument tag:
<cfdocument format="pdf"
filename="#request.baseRefTempFile#\#form.collectorLongName#_AssignedSamples.pdf"
fontembed="yes" overwrite="yes"
saveasname="#form.collectorLongName#_AssignedSamples.pdf"
scale="100">
request.basereftempfile is a variable pointing at the folder
where the pdf is saved. Its saving it there correctly. Its just the
filename is the entire path but it omits the directory slashed and
replaces them with underscores.
Any help would be much appreciated .Thanks very much

I am currently using the same method and the working code is
below. I do not use the saveasname. Have you tried without?
<cfdocument
filename="#application.reportPath##dateFormat(todaysDate,'yyyymmdd')#-#UserKey#.pdf"
format="PDF" pagetype="letter" margintop="0" marginbottom="0"
marginright="0" marginleft="0" orientation="portrait"
backgroundvisible="yes" overwrite="yes" fontembed="yes">

Similar Messages

  • [b]HOW TO:[/b]  Copy and Paste THE Filename AND its PATH from Finder

    HOW TO DO THIS: Copy and Paste THE selected Filename AND its entire PATH from Finder to another application as in document footer reference, or document database which has a path field to aid in locating the file later.
    Finder, Spotlight and File Info (can be used to display Path) or using Command F, command I, etc. but user is not allowed to copy the path to clipboard.
    This is rudimentary, yet the word Path, is unknown to Mac Help.
    Message was edited by: jbov

    AJ,
    Isn't it amazing....There is no Command Key for this action? Apple Care was confounded too. And thanx, it'll be a help....
    Jim
    its tedious, but this should work:
    open a terminal window.
    Drag and drop the icon for the file in the terminal
    window.
    This will put the full path including the filename on
    the command line.
    Copy the path from the command line, and paste
    (wherever).
    Close the terminal window.

  • Trying to return filename, not file path

    I'm trying to set up an automator app that will create a folder with a matching name to the input. I was able to find an Applescript (below) which copies the file path to the clipboard. I can get the rest of it to work, if I can figure out how to copy only the filename and not the entire path.
    on run {input, parameters}
              set thePath to quoted form of POSIX path of input
              do shell script "basename " & thePath
      set the clipboard to the result
              return input
    end run
    My appologies if this is obvious or if I'm going about it the wrong way, I know nothing at all about AppleScript. Any help that anyone can give will be appreciated. Thanks

    on run {input, parameters}
            set thePath to quoted form of POSIX path of input
            set theResult to  do shell script "basename " & thePath
            set the clipboard to the theResult
            return theResult
    end run
    I think you want the applescript to return the basename of the path you pass.
    I made the changes to do this.  I have not tested the applescript.  If you do not want the result on the clipboard get rid of:
    set the clipboard to the the_result
    Robert

  • How to auto add in pdf filename (shown in footer) by using Java Script?

    In order to have nice tracking a document, I want to print the file name as a header or footer when printing the documents. 
    How can this be done?  
    Found a perfectly nice post related to same issue
     http://forums.adobe.com/thread/302996 
     (Many thanks on every contribuitors inside that posts)  
     In the above post,  found that ##Reinhard had shared some well nice scripts for "enable to put in filename in the footer for every document, just by 1 simple click in each documents"  
    For the time being, 
    if i would like to generate a script that allowing 
    1) Only adding / showning the pdf filename in the footer
    2) Auto Run/Execute on this script for all documents, which means without any click but it will auto showing the "filename at footer" when any document opening.  
    Hope any experts can give a help on this.   
    PS: Currently using Adobe Acrobat 10 & Reader 11 // OS = Windows 7 
    Many thanks ^^

    My code for above method is Floor #2
    var FileNM = this.documentFileName;
    for (var p = 0; p < this.numPages; p++)
    var fd = this.addField("xftDate", "text", p, [30,15, 290,30]);
    fd.textSize=5; fd.value = " (" + FileNM +")";
    It works for me & my PC, however I unable to applied same things into a JavaScript.js file
    Hope any experts could help and advice.
    Many thanks.

  • Open a pdf file from a path with GetFileFromPathAsync

    Hi, I'm trying open docxs and pdfs files from her path on Windows Phone 8.1. I could achieve this with images with the next line:
    await StorageFile.GetFileFromPathAsync(path);
    The problem is that when I try bring other type of files as the docxs or pdfs I have a exception E_ACCESSDENIED. The capabilities of de app are well configured to acces a the files of phone but I don't know because
    El problema es que cuando intento traer otro tipo de archivos como los docx o pdf tengo un problema de E_ACCESSDENIED . Las capacidades de la aplicacion estan bien configuradas para acceder a los archivos pero no entiendo porque no puedo get this others
    files.

    I have addressed a similar issue in this
    forum post. You need to add the File Type Associations for the file types your app needs to access. This is required when accessing files from DocumentsLibrary and RemovableDevices.
    Abdulwahab Suleiman

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • FM10 Book to PDF - show title (not PDF filename) in Reader header?

    FrameMaker 10.0.2.419 + Distiller X Pro 10.1.438 -> Adobe Reader X
    I have a FM book file with a title along the lines of 'Worked Examples'. When I save it to PDF with Distiller and view the PDF in Adobe Reader X, the reader's header bar shows the PDF filename e.g. wex.pdf, but I want it to show the book title Worked Examples.
    I assume there's a setting in Distiller that forces Reader to show the book title not the file name, but having trawled through the settings/help/forums I can't see it. It's probably blindingly obvious (when you know the answer!), but can anyone tell me how I can get Reader to show a book's title in its header?

    Note: I have partially solved this issue by loading the PDF into Acrobat X Pro and going to File > Properties, and on the Doc Properties > Initial View tab selecting 'Show = Document Title', and then saving the PDF. I'm hoping to figure out (or get told!) a way of achieving this from my FM10 book file though.

  • "Access Denied" opening PDF from network UNC path.

    Can't open pdf file from network path when opening from Adobe Reader any versions. Opening other files such as word, excel etc that is not opening in Adobe Reader works just fine.
    Steps to reproduce bug:
    Create a shared folder with three folder deep. \\Servername\SharedDrive\FolderLevel1\FolderLevel2\FolderLevel3\
    Give user explicit access to "FolderLevel3" with read and execute rights
    Enabled "Protected Mode at StartUp" on Adobe Reader X or XI
    Make sure there are some PDF files in FolderLevel3
    On the user windows session "do not map the share drive", open explorer to "\\Servername\SharedDrive\FolderLevel1\FolderLevel2\FolderLevel3\" directly.
    Double click the PDF files in the folder and it will be blocked with an error Access Denied.
    Turn off Protected Mode at StartUp and it load fine
    Map the location to a Drive Letter and it load fine
    Use Adobe Professional and it works fine
    Use Nuance PDF reader and it works fine
    Not the ideal solution but if we gave users access to read at "SharedDrive" folder, FolderLevel1 and FolderLevel2 then they are able to read the PDF file. We would rather NOT DO THIS. They are blocked from the lower level for a reason......
    Results:
    Expected results: If it works on PRO it should work on Reader...

    Hi Ayenoy,
    Please provide the following information:
    1) Adobe Reader version on your machine.
    2) OS you are using.
    3) Is your machine or the shared drive a part of any special file system like DFS etc.
    4) Is the user a normal admin/standard user or a special user with roaming profile and folder redirections?
    Thanks,
    Shakti K

  • 6i PDF filename while saving

    Hi all,
    I have report6i and we are generating reports in PDF format.
    While saving the PDF file name contains url, how
    to format PDF filename?
    Please help urgently.
    thanks

    Hi,
    When you use destype=CACHE, the desname is disregarded. The reason is that the PDF file name does not matter when it is opened in the browser. It only makes sense for users to specify the filename when you are "saving" the file. So that is why desname value is taken when you use destype=FILE.
    If you want the PDF to first appear in the browser, and then you want to save it with a particular name, just choose File > Save As from the browser or from the PDF toolbar.
    While saving the PDF file name contains urlI guess you just need to manually overwrite this with the file name you want.
    Navneet.

  • Managed Metadata fields using "entire path to the term" - how can I access this data?

    We are trying to make it easier for our users to enter metadata, so the hierarchy is really useful and we can display it as the "full path to the term".
    eg. country, region, town
    But there are times when we need an individual piece of data like region.
    Calculated fields do not work. :-(
    So I have been trying to access the data from a SharePoint Designer Workflow.
    But - I can only get to the leaf node element - the last value from the selection.
    Does anyone know a trick to get the full hierarchy string of Country-region-town???
    Many Thanks
    Ruth
    Ruth, UK

    Hi Ruth,
    Per my knowledge, there is no OOB way to retrieve the entire path of the managed metadata column value.
    However, you can use the code sample to get the Managed Metadata Hierarchy, please refer to the link below:
    http://msdn.microsoft.com/en-us/library/ff823725.aspx
    More reference:
    http://zimmergren.net/technical/sp-2010-introduction-to-programmatically-working-with-taxonomies-in-sharepoint-server-2010
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Deleting anchor point, deletes entire path

    Need a solution...when I create a path with the pen tool I am unable to delete anchor points without deleting the entire path. Using the Pen tool + option reveals the white arrow (Direct Selection Tool) - I click and drag a box around the desired anchor point - the selected point is then black - all other points along the path are not filled with black - hence they are not selected - I hit the delete button - instead of the single selected point being deleted, the path is deleted. In the past I would have to quit and reboot PS to clear the problem - that fix is no longer working.
    Any suggestions. Thanks.
    CS4
    Mac 10.6.4
    4GB RAM

    Had another look at this and I will try to be as brief as possible.
    I forgot to point out in my first comment that I had auto add/delete points selected and with that selected the pen tool autmatically shows the delete point tool when the tool is over a point. Clicking would then remove the point and the path direction will be modified. It is not possible to remove a point from a bezier path without modifying the paths direction, or to remove an end point from a path, this is the mathmatical law involved. If you need a gap in the path, place a new point either side of the required gap the delete the path between them. T modify the end of a path, ie. shorten it, you will still need to place a point where you desire the path to end. If as you suggest the whole path is deleted I can only imagine you may be accidentaly double deleting, as the whole of the path becomes selected when you have deleted a point and a second click will delete the rest of the path.
    I have tried to reproduce your problem and so this is what i can come up with. I have been using Adobe Illustrator an Photoshop since 1990 and I have not come across this before.
    Hope you find a solution as i do appreciate the frustration it can cause.
    Mac Pro 2 x 2.8 GHz Quad Core, OSX 10.5.8, 6 GB Nvidia 8800GT, PS CS5.
    Regards

  • Display the entire path to the term in the field option programmatically

    hi,
     I am having hundreds of doc libs with a  taxonomy column .now i want to change the property diaplay format:
    Display the entire path to the term in the field option, programmatically.
    can anyone pls help how to achieve this. i am thinking of writing  a consoel appln which iterates through all the sub sites on my site collec and  all doclibs and want to access this taxonomy columns and change this  display format .
    but i am stuck with whats the property responsible for this.
    help is appreciated! 

    hi Benjamin,
    Please try IsPathRendered Property of the taxonomy field. It is a Boolean field which related to display format of a taxonomy field.
    FALSE - Display term label in the field
    TRUE - Display entire path of the term in the field
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomyfield.ispathrendered(v=office.14).aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Retrieving entire path of metadata column

    To emulate document permissions based on metadata, I'm trying to create my own document routing logic through a workflow retrieving the value from a metadata column and moving the file to the appropriate folder. It works fine except for the fact that I'm
    using a hierarchical term set for my metadata so I need the folder system to be two levels deep. Therefore I need to retrieve the full path for the metadata term. But I haven't found a way to do it!
    If I have a document tagged Economics:Reports I need it to be moved to the Reports folder inside of the Economics folder, but I can only retrieve the term name "Reports". I've tried using the "TaxonomyHiddenList" and the Rest API, but
    I guess I'm too ignorant to understand how to do it.
    Can anyone please help me out or guide me if there is another way to solve it?

    Hi,
    How you are fetching info? and what is the display format of taxonomy field you are using?
    i.e have you set taxonomy column setting to "display the entire path to the term in the field".?
    Refer following link to set this option:
    http://office.microsoft.com/en-in/sharepoint-server-help/site-column-types-and-options-HA010302196.aspx#_Toc277149837
    Thanks,
    Avni Bhatt

  • Get pdf filename during initialize:

    I wonder to get the pdf filename during initialize, may i know is it possible?
    Thanks your concern.
    Tham

    ASFileSysOpenProc is not suitable. It is used for the opening of all
    files, not just PDF files, and you do not provide it for the standard
    filesystem: it is a standard part of Acrobat.
    Since it is documents you are interested in, rather than files, you
    would want to look at the document related callbacks (CosDoc, PDDoc,
    AVDoc). I can see why you wouldn't find it though, the Acrobat API
    documents are breathtakingly awful, ever since someone had the bright
    idea of replacing a human editor with a programmer generated file.
    You need to use the PDDocDidOpen notification (notification is the
    buzzword here, not callback), registered with
    AVAppRegisterNotification. Try documents from an older version of the
    SDK, the Acrobat 8 SDK is beyond a joke.
    Aandi Inston

  • Extract filename from a path

    Hi folks!
    Anybody knows if there is a MF to extract the filename from a path...
    for example, if i have a path like:
    server\filename.ext
    c:filename.ext
    c:\>filename.txt
    i want to extract the filename: 'filename.ext' (or just, 'filename')
    Thank's in advance!
    Xavi.

    Hi,
    You can use the FM <b>CACS_SPLIT_PATH</b>
      Import parameters               Value         
      I_PATH                          C:TEST.TXT                                                                               
    Export parameters               Value         
      E_PATH                          C:           
      E_FILENAME                      TEST.TXT      
      E_PSERVER                       X  
    Regards
    vijay

Maybe you are looking for

  • Random blackout atfer upgrading to xorg 1.6?

    OK, I'm not very sure if this is related to xorg, here is the situation: After upgrading to xorg 1.6, I restart X and start firefox to surf the internet, atfer a few hours of usage, my screen suddenly blackouts, and it seems like a hard crash, I can'

  • How to use a .gif file in authorware

    Dear community, My wish is to use an animated .gif file to run visible during the task which I have programmed. I would be very grateful if somebody could explain how I could do this. Thanks in advance!

  • Using bind variables in HTML Region source

    <nl> http://apex.oracle.com/pls/apex/f?p=49417:1   workspace: SVK demo/demo I am having problems incorporating an item variable into a string of embedded html that should popup a modal video when the button is pressed. Item 1 works fine and that is w

  • How to get legal

    Wwe bought several fujitsu scanners a few years back that came with Adobe standard7,8. We have since bought several Adobe standard X full and upgrade licenses. What was the legal upgrade path feb 2013 from adobe syandard version 7,8,9 to version X? W

  • ADF 10.1.3.4 Memory Leak

    I can re-produce a ADF memory leak in jdeveloper. The problems seems to be when I am running the application locally in the memory profiler, the memory usage keeps growing until the application halts with a outofmemoryexception. The main problem seem