Change default pdf file name

Hi,all
How can I change a default pdf file name from unknown.pdf to something else?
Regards,
Michael
Edited by: Michael Beilin on Feb 6, 2008 9:47 AM

HI Michael,
Yes you can do that,
Just do something like
     IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("PdfSource");
     ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
     IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
     binaryType.setFileName("TravelRequest.pdf");  // Set file name
     binaryType.setMimeType(WDWebResourceType.PDF);  // set the mime type
for example in the doInit() before providing the file for download 
Regards, Angel

Similar Messages

  • Is it possible to change the default PDF file name from 'LabVIEW Document.pdf'?

    My application uses the 'Automatically print front panel every time VI completes execution' functionality to print front panels.  When I have my printer set to 'Adobe PDF', a dialog pops up and the default file name is 'LabVIEW Document.pdf'.  Is there a way to programatically set the name to something other than 'LabVIEW Document.pdf'?
    I've already found a solution that manipulates the Windows registry, and I'm looking for another option.
    Brent

    Do a search, as this question has come up before. The solution centered on not using the Adobe PDF printer driver but one that is intelligent.

  • HT5826 How do I change the PDF file name and author?

    I can not seem to find how to change the title and author of a PDF file in ibooks on my mac.

    Assuming you are in Windows, you may find this useful:
    http://windows.microsoft.com/is-is/windows7/change-the-program-that-op ens-a-type-of-file

  • Ibooks ver1.5 pdf file name changed

    After updating to version 1.5 (700) of iBooks on my iPad (ver1, iOS version 5.01), almost all of my pdf file names in iBooks are changing once I open those items. Some of the files change to what appears to be a property of the PDF file such as "Microsoft Word - (orginal file name)print.doc(x)" and other just get blanked out all together. The files names in iTunes when I connect my iPad seem fine, but within iBooks on the iPad it is a mess. Any ideas? My understanding is that the way to manage files names for PDFs in iBooks is through iTunes, but right now they seem out of sync.

    Me too...I just filed a bug on the apple ipad support page. I guess after they see hundreds of filings of the same bug we'll have their attention :-) Obviously the latest IOS 5 iBooks update was not thoroughly
    tested...
    I've also noticed that not only are the names of my titles  changing back to the metadata names in the original PDF when I open the PDF in iBooks but that changes I make in iTunes to the category of a PDF never sync
    to my iPad 2
    Like others I have hundreds of PDF titles on my iPad2 ...when the document titles/names/categories become unintelligible or won't update I can'tmanage my library and it makes iBooks almost useless. I tried but
    don't seem to be able to correct the problem by updating the PDF book "Info" in iTunes and forcing a re-sync.
    -Rocky

  • Excel 2010 missing default suggested file name in Save As dialog box

    I’m using Excel 2010 running on Windows 7 (32 bit).  When I open a certain file which produces the following message: "A file is in a different file format than its extension indicates", and then go to “Save As” (or “Save”) the
    file, the default suggested file name is missing (blank).  This didn't occur in previous versions of Excel. 
    In previous versions, Excel would automatically populate the original file name in to the File Name field.
      I have searched all over the net, looking for a way to change Excel so that it will once again populate the file name in this situation. 
    To reproduce:
    Create a new blank workbook
    save as type “Web Page”, (i.e. File name:  “Blank Example.html”)
    Close workbook
    In windows, rename file from .html to .xls  (i.e. rename “Blank Example.html” to “Blank Example.xls”)
    In Excel open renamed file (i.e. “Blank Example.xls”) and click “Yes” when prompted with the “A file is in a different file format than its extension indicates” message.
    Do a “Save As” and you will notice that the File Name is blank. In previous versions, this field would contain the current workbook file name
     (i.e. “Blank Example.xls”)
    Any help will be greatly appreciated.

    Hi Jaynet,
    In order to re-produce this, you need to answer "yes" to the rename file prompt and then continue with step 5 (above).
    The reason for this is not an exercise in futility - I assure you.  At my work and elsewhere, when web developers have created features to permit the end user to save web data in Excel format, often times the Excel files are saved locally in Excel's
    html format (but with the .xls
    extension). 
    (I actually prefer the .xls
    extension, because it is easier to just double-click the file to open in Excel, rather than to select the open-with and then select Excel. a file with the .html extension will default open in your default browser. Now, I could change my default program
    for the .html extension, but that would only solve a part of the problem and would not really address the bigger issue and that being that Microsoft changed a behavior in Excel and may not even be aware that it was a much used feature. )
    To continue, when I go to open the resulting Excel file, I am prompted with the message that the file type does not match the extension (which is fine and not bothersome to me).  It's at this point when I go to save the file that I get really annoyed.
    In previous versions of Excel, the default file name would be pre-filled with the current name of the file and the default file type would state that it is a Web html file.  I would just change the file type to Excel Workbook and hit enter to save.
    I would be prompted with "Are you sure you want to overwrite your existing file?" message and I would click "yes" and that would be that.
    However, in Excel 2010, because the default file name is blank, I then need to re-type the name into the field to save the file. 
    Any help is greatly appreciated.
    Thanks

  • How to chante the PDF File Name in Broadcasting

    Hi Team,
         Could you help me?, I am in a project where the customer need  the Following requirement with the PDF File Name in the Broadcasting:
    I am configuring one distribution Job in Broadcasting configuration Tab this Job need send a report via E-Mail in  PDF Format, but the customer requirement is that the file name is sent with the description name and not with the technical name from report.
    Then, some of you know "How change the name to the PDF File that is sent in the Distribution Jobs, I need the Description name, because actually the E-mail send the PDF File with the Technical Name, and the user does not want in that way".
    Thank you very much.
    Leslie Denise.

    Hi,
        Thank you for your answer, but that parameter i added in the content of the email. But I need change the name from the file not to add the description in the subject or in the content.
    And if there are somebody to know if is possible to change the name from the PDF File I will apreciate your comments and answers.
    But Thank you so much for your answer voodi.
    Regards
    Leslie Denise.

  • How can I CHANGE A pdf file to word or excell

    how do I change a pdf file to word or excell

    Hi Alfonzo,
    Here is a great 'getting started' guide that may help!
    Let me know!!
    Kindest regards, Stacy

  • How can i change a pdf file type to another file type

    how can i change a pdf file type to another file type

    You can copy the contents and paste it into a Word file. Just don't expect everything to transfer or to retain all of the formatting.

  • Can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF

    can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF?

    No, there isn't. The way you're using the file is not recommended. You
    should use a review tracker to avoid getting in the way of one another.

  • How to change the RPD file name without deploying on EM

    Is there a way to change the RPD file name so it doesn't have BI0002 or BI0003 on the end of it? I can delete my BI0002 file and point the NQSConfig.ini file to my new FileName.rpd but when the BI services restart the BI0002 file reappears in the repository directory and the NQSConfig file changes to reflect this. It's like the only way you can change this is in the Enterprise Manager, but that always adds the suffix to the file.
    Any suggestions?
    Here's what the docs say:
    When you upload a repository, it is copied to the local repository directory for each Oracle BI Server component, located at:
    ORACLE_INSTANCE\bifoundation\OracleBIServerComponent\coreapplication_obisn\repository
    If you have published the repository in shared mode, then the repository is also copied to the shared network location.
    After the repository is uploaded, it is given a version number suffix (for example, SampleApp_bi001.rpd). This version number is incremented each time that the repository is uploaded. To revert to a previous version, you must re-upload the specific version of the repository to use.
    Note that you can delete older versions from the repository directory or shared network directory to reclaim disk space.
    What does that mean? I have to use an old rpd file in order to get rid of the suffix?

    Hi,
    It can be changed, although I do not no exactly how. You have to take a look at the MBeans which are used to deploy a new repository. The suffixed is used to insure you do not overwrite an existing RPD
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • How do i change a pdf file to word

    How do i change a pdf file to a word document

    Using Adobe Acrobat you can use Save As -> Microsoft -> Word file

  • How do I change a PDF file to a MSPowerpoint File?

    How do I change a PDF file to a MSpowerpoint file

    Please see my reply to this question here: http://forums.adobe.com/message/5171167#5171167
    Thanks!

  • When i am done creating an account what do i do in oder to change a pdf file to a word document?

    how do i change a pdf file to a word document?

    Hi ladyl123,
    Please check out this document for instructions on converting a PDF to Word format.
    Let us know how it goes.
    Best,
    Sara

  • How do I change the Home file name back to Home?

    Help! - How do I change the Home file name back to Home? My supplier changed it to Demo. I've tried pressing return, control click and Get Info but none gives access to change the name. Any ideas?

    The Home folder isn't named "Home." It is named for the user account it represents.
    Who is your "supplier?" Sounds like they're not terribly bright.
    Can you provide some details on why they "changed" it. Is this a brand new Mac? Were you having information transferred from another computer?
    It sounds like you just need to create a new account and get rid of "Demo."
    While logged into the "Demo" account, go to System Preferences in the Apple Menu.
    Click on Users & Groups
    If the padlock is locked, click on it and enter your password.
    Click the + button at the bottom of the list of users. This will create a new account. Fill in the information you'd like to use for your account. The account name is what will be used for the "Home" folder.
    Once created, select it from the list and check the box to "Allow user to administer this computer."
    You can then log out of "Demo" and log in as your new user. If there is nothing in the Demo account that you want, you can delete it from the Users & Groups System Pref.

  • How do I change the .php file name for a page of my site?

    how do I change the .php file name for a page of my site? The only link to the page is the nav. button link for it in the global nav. The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.

    The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.
    I don't understand this reason. How would changing the file extension solve your breadcrumb issue? Why don't you explain the issue in more detail.

Maybe you are looking for