Custom document properties accessible via Javascript?

I don't see any method in the Document Javascript object model to read custom properties that have been added to a document.
Is this not accessible to Javascript? I will resort to using a field in the document to store information about the file that I'd like to access if not, but I would prefer to put this info (which will not change, btw) into the custom properties if possible.

Under 'Document Properties' (where you can enter an Author, Subject, Keywords, etc.) there is an additional tab which allows you to define custom properties. What I want to do is store info (stuff like version, a document ID#, etc) in a common place that can be accessed by my script.
Edit - in Acrobat 7 the menu is 'Document Properties', in Acrobat 8, the menu is 'Properties'.

Similar Messages

  • How Do I Display Custom Document Properties On the Info - Properties Page

    Hi,
    I want to create a template using Microsoft Word 2010 that has fields similar to the Standard Document Property "Title" that can be used as a fillable form that repeats data throughout the document.  I need a custom document property field
    that you can fill out on the title page and will simultaneously change the same field that is in the header, footer, and file -> info -> properties page. 
    For example, I want to create a document property field called "Product ID #" that shows the title of the property on the file -> info -> properties page as "Product ID #" and the content to show up as the information
    a user entered into the field on the first page.
    Right now I have a standard document property that I am using as a field on the front page for the Title which has user defined content on the front page.  This field has default content I set up to be "Product Specification Template". 
    I inserted this field by using quick parts.  I want to be able to create a field that behaves like this called "Product ID #".  I understand you can create custom form fields that repeat using legacy fields, but I need a way for them
    to show changes instantly after you click away from the field, without having to "update field" where necessary.
    Anyone have any idea how to create custom document properties like this? Or even how to rename standard properties such as "Status" or "Subject"?
    Thanks

    What you're asking can't all be done without a macro. You can easily enough get body content to show in the header & footer via the judicious use of Styles and STYLEREF fields (and the changes are dynamic), but getting that info into the custom
    document property would require a macro. To that end, you might use a content control with a unique Style applied to it for the data input and a ContentControlOnExit macro to update the custom document property.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Linking Custom Document Properties to SharePoint

    We currently have a Microsoft Office Add-in that, among other things, reads and writes Custom Document Properties. Our add-in includes a user-dialogue through which these values are captured and subsequently displayed within the document.
    We now have a requirement to integrate this functionality with SharePoint 2010. In particular, we want our Office custom document properties to be co-ordinated with equivalent SharePoint server properties (i.e. site columns in Document Libraries) so that,
    when a given SharePoint property value is changed the equivalent custom document property is also changed.
    Users must be able to set the properties in either SharePoint or in an Office App (Word for example) and the changes be reflected in both places.
    Our solution must work with the desktop versions of Office 2010/13 and the non-Office365 versions of SharePoint 2010/13.
    During our initial prototyping we have looked at a number of possible approaches (including Document Property Promotion and Demotion) but are still not sure which appropriate to use.
    With regard to Document Property Promotion and Demotion for example, we found that, if we create a document outside SharePoint, then invoke our add-in to set document properties, then upload the document to SharePoint; the SharePoint properties and the
    Office Custom Document Properties are initially in step, any subsequent changes cause problems.
    If we now change the SharePoint properties by editing them in SharePoint and then open the document in Word, the Custom Document Properties are unchanged. Similarly, any change we make in Word is not reflected in the
    SharePoint properties when the document is saved back to the SharePoint library.
    Our properties are all of type string in Word and type Choice in SharePoint.
    For various reasons, our solution must not depend in any way on Office templates.
    We would like to know what would be the recommended approach to implementing this functionality.
    Below provides a basic diagram of our requirement:

    Hi,
    According to your description, you might want to sync the custom document properties between document and SharePoint Library.
    A solution can be like this: We can add an Event Receiver to this library, it will be triggered when there is a file is checked in or the item of list is updated, then we can
    read/write the specific document properties and sync between document and SharePoint Library.
    The whole scenario would be like this: When a document is uploaded and checked in, the method put in the Event Receiver will be triggered and update the related columns of library.
    When we updated these columns in library, we can capture the ItemUpdated event and update the corresponding properties of this document.
    Here is a step by step sample on creating a simple Item added event receiver:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    For about how to update the custom properties of an Office Document, it is recommended you post another question to the Microsoft Office for Developers forum, you will get more
    help and confirmed answers from there.
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

  • Custom Document Properties Don't Transer to Document Information

    I've got an MS Word 2003 document that I've added a number of custom document properties to. I converted the document to PDF using Acrobat Pro 8.1.2. The standard properties that were included in the Word file were transferred to the PDF file but none of the custom properties were transferred. I used the Standard conversion setting and the "Convert Document Information" checkbox was checked. Am I doing something wrong or does Acrobat only transfer the standard properties by design?
    Thanks
    Greg

    Thanks for the response. The properties I'm referring to in the Word file are those found under File > Properties. The dialog box that opens has a "Summary" tab that includes a set of standard properties (e.g. Author, Title, etc.). The dialog box also has a "Custom" tab where you can add custom properties in the form of name/value pairs. So if I want to add a custom property I enter the property name (i.e. "File Number") and the value (i.e. "VTD0123456789"). I am using PDF Maker and not printing to the Adobe PDF printer (although I tried that too this morning and the properties still didn't transfer).

  • How to manage custom document properties (e.g., company name, project name)

    Hi,
    How to manage custom document properties (e.g., company name, project name, event date...) in Apple iWork Pages like it is possible in Microsoft Office Word ?
    The idea is to simplify the management of multiple instances of same piece of information in a document by writing them once as a "properties" of the document that can be referencing in different places of the document. Changing the property value, will automatically change all its instances.
    Thanks in advance for your help

    Thanks for your help Peter.
    Search-Replace and Auto-Substitution are not requivalent for me since I'm looking for something more complex.
    Suppose you have a document about an Event which occur on a specific date (e.g., 11-09-2003).
    In your document, you may be interested in...
    - sometimes display the date as '11-09-2003',
    - sometimes display the date as 'Novembre, 2003',
    - sometimes display the date as 'Sunday, November 9, 2003'.
    With a document property, you would be able to define the EventDate as 11-09-2003, and then define different specific format (e.g., 'mm-dd-yyyy', 'mmmm, yyyy'...) for each reference to the EventDate document property.
    Using Search-Replace of Auto-Substitution, it will be painful since you will have to define as one token per format of a document property (e.g., EventDateAsMMDDYYY, EventDateAsMMMMYYYY...).
    More than that, suppose you have a Numbers table inserted in your Pages document.
    You may be interested in using some document properties in formulas.
    This can't be solved using Search-Replace.
    But its ok, I will wait until this feature will be supported in Pages.

  • Win Server 2008 R2 - FSRM is not able to view Office Word 2010 custom document properties

    Hi, 
    how to view custom document properties for office 2010 files on Win Server 2008 R2 - FSRM.
    Word 2003 custom document properties are reportable and also visible after: Right click on file/Properties/Custom
    Word 2010 there is no Custom menu after: Right click on file/Properties/Custom
    Any suggestion ?
    TH

    Hi Tomas,
    To view custom properties in Office 2010:
    1. Click the File tab.
    2. Click Info.
    3. Click Properties, and then select Advanced Properties
    4. Click the Custom tab
    Regarding this point, the following article can be referred to for more information.
    View or change the properties for an Office file
    http://office.microsoft.com/en-in/word-help/view-or-change-the-properties-for-an-office-file-HA010354245.aspx
    In addition, for this is more related to Office, in order to get better, we can also ask for suggestions in the following forum.
    Office Forum
    http://social.technet.microsoft.com/Forums/office/en-US/home
    Best regards,
    Frank Shen

  • How can i add custom document properties in Content Services?

    Hello guys.
    I have question. I need to add custom attributes of document uploaded in CS.
    I know about categories, and it will help me.
    But i need it on the properties page? in main tab, where docname, creationdate, etc. appears. Is it possible?
    Ideally it should appears in main window of CS, without any additional clicks.
    Is there any way organize it without development new Web Services?
    Thank you.

    One possible way of doing this would be to use the $A mapping in the send_access mapping table. see http://docs.iplanet.com/docs/manuals/messaging/ims52/ag/filter.htm#15965
    This will depend on what value you wish to use in the header and when and where during the message routing you want to add the header.
    You can use channel level filters on the send_access or orig_send_access mapping table to control at which point the header is added but without knowing more about what you wish to do and which conditions you wish to use to add the header it is difficult to say more. It is possible to use a "customer supplied routine (in the form of a shared object call) from the mapping process, but during the mapping process the only information available to the routine is the sender and recipient info so that probably isnt suitable for your purposes.
    Another method of header manipulation in IMS is channel header option files but these should be used with caution and will only operate on "known" headers and as a result are probably not of too much use to you either.
    The conversion channel does have access to the original message headers http://docs.iplanet.com/docs/manuals/messaging/ims52/rm/mta_conf.htm#1044412
    but Im afraid I cant point you at an example of where it has been used like this - perhaps someone else can.
    WRT moving the message to the top of the message list - I presume this is from the clients perspective - How did you accomplish this in NMS as message views and sorting are almost exclusively a client responsibility ?
    Also have you looked at the ENS service available with IMS?
    Sorry I cant offer anything more than that but without knowing what functions your previous SMTP plugin performed its a bit difficult.
    Ciaran

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Accessing Properties of Individual Tool Buttons via JavaScript

    Hi all!
    I am new to both this forum and scripting Acrobat so please excuse me if the question sounds naive.
    I am trying to find a way to access the properties of individual tool buttons via JavaScript (if there is one). I could not find it yet in JS API Reference. If anybody can help me or direct me to the right way, I will greatly appreciate that.
    For example, in 'Comment & Markup' toolbar one can right-click and change the 'Tool Default Properties' of various markup tools like Highlighter, Line, Rectangle etc. Is it possible to access these properties through JavaScript so that buttons can be added for dynamically changing these? Hope this makes sense!
    Thanks in advance for your interest and help.
    John.

    Hi Andy, thanks for the answer. It was pretty simple - I just added an authorization scheme to the report column, wehre the javascript is executed. Christof

  • Post Customs Document via /SAPSLL/API_CUSTOMS_DOC_CREATE

    Hi Gurus,
    We are trying to post Customs document Via FM /SAPSLL/API_CUSTOMS_DOC_CREATE. Is there a better way to post Customs document via program/manually?
    can any one provide a sample program to create/change Customs document via program?
    Regards,
    Abhi.

    HI Abhshk Bhatta,
    do you have any experience with the connection of a non sap system to sap gts?
    my idea is to use to call this function module e.g. via a web-service and post the customs declaration into gts....
    what do you think - may that be possible?
    regards,
    Ralf

  • Digital signature properties field name via javascript

    I am creating secure digital signature fields with random number names with similar prefixes.  The idea is to have multiple fields available in a single regular PDF (non portfolio).  So on each sheet we sign 3 fields.  One field is a name, another is a date and the last is a release.  This goes on every sheet and the PDF would contain up to 1500 pages.  Adding a random number to the end of each field name was the only way to make this work....now I have a problem of finding the particular fields for my script to sign the sheets. 
    I am guessing that there must be some way to identify how many fields I have on a sheet and return the name of all the fields.  If I can get the name of all the fields I can use that info to run my script to place the digital signature appearances in their correct field.  My field names all begin with either 'Date', 'Sig' or 'RFC' followed by a random number to avoid duplicate fields.
    So in a nut shell, how can I find the names of the fields via JavaScript?
    Thanks you!

    Are you able to add another prefix, specifically using hierarchical field names that include the page number? For example, on page one the fields could be named:
    P1.Date[random number goes here]
    P1.Sig[random number goes here]
    P1.RFC[random number goes here]
    You can then get all of the P1 fields like this:
    var fields = getField("P1");
    and then use the getArray method to get an array of the individual field references and iterate through the array.
    Otherwise, you can loop through the fields and look at the page property of each to determine which ones are on which pages. You can use the getNthFieldName document method and numFields document property to do this.

  • Resize an Object via javascript

    Resize an Object via javascript
    How do I...
    I want to select an object in my document, onscreen, (an image, or text) then run a script that will discern the object selected, and show a dialog box that will allow me to input a sizing percentage for that object (with anchor corner/center)(Press enter and object resizes).

    No they don't.
    Acrobat may be bundled with Creative Suite collections but the APIs has nothing in common other than the use of JavaScript. CS apps use the ExtendScript system, Acrobat has its own internal API and an SDK for inter-application control.
    PDF is an end-destination format - the page content is not designed to be edited, so while there are tools in the user interface to allow touchups and corrections to page objects those features are not available for automation. The JavaScript engine does not have access to the low-level document structure, it can only see markup (comments and form elements) and a limited range of document properties.
    bdmasha wrote:
    They are all part of a suite of tools that share a common access to internal api's via scripting/programming languages.
    InDesign is not Photoshop is not Illustrator, but they have much in common when accessing their api's that Acrobat does not allow--and Acrobat is part of that Adobe suite.
    Thanks again.

  • How to get elements in a multi-value field via javascript?

    The following will set variables.variable1 to variables.variable2 when the "Script Link" component is clicked...
    <Field>
    <Display class='Javascript'>
    <String>
    function myScript() {
    el=getElement(document.mainform,"variables.variable1");
    el2=getElement(document.mainform,"variables.variable2");
    el.value=el2.value;
    </String>
    </Display>
    </Field>
    <Field name='Script Link'>
    <Display class='Link'>
    <Property name='URL'>
    <String>javascript:myScript();submitCommand(document.mainform,%20'Recalculate');</String>
    </Property>
    </Display>
    </Field>
    My issue is, if variables.variabl2 is a list / multivalued, i get errors trying to traverse through the "array".
    How can i read and set an a list element via javascript function above? I've tried things like get() , and variables.variable2[0] .
    any help would be appreciated....
    is there an API somewhere i can reference?

    Hi,
    thanks for your reply!
    If I have the parameters in the URL and use the method GET it works all right.
    but I need the method to be POST. I suppose, I have the wrong way identifying the parameter name
    This is from VB
    varTarget = "http://localhost:9090/gm/getData" ' getData is my servlet
    xmlSendStr = "SQLStmt=SELECT TCPD_Cars.* From TCPD_Cars WHERE (((TCPD_Cars.CarIdent)=45));"
        xmlHttp.Open "POST", varTarget, True   'True means asynchronous
        xmlHttp.Send xmlSendStrthis is part of my Servlet
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              response.setContentType("text/html");
              PrintWriter writer  = response.getWriter();
              String SQLStmt = request.getParameter("SQLStmt") ;
            //make the database query and get the returns
            writer.println(GetSQLData(SQLStmt));
            //close the write
            writer.close();                    
         }I would appreciate any suggestions

  • Acrobat X - Automate document properties and thumbnails

    I have 2400 files (180,000 pages) of declassified military records I am converting to PDF using Print To PDF. The original data is read from a proprietory browser created by the Marine Corps 15 years ago and Print to PDF is the only way to access the data.
    1. Currently, I open the new PDF created, CTRL D to Document Properties, then have to enter Navigation Tab > Pages Panel and Page and Magnifaction > Fit Height on each record set.
    2. Then i go to Description and add a Description from a database I have live on my website in Coldfusion and Access.
    3. I then save the file and close Acrobat X and then repeat the Print To PDF.
    Questions to start.
    A. Are there settings or Plugins that would allow each of the PDF's created using Print To PDF to automatically have the Navigation and Magnification settings already set?
    B. Is there any way to inject the Description into the new PDF or must this always be added manually?
    C. Is there any way to automate the Fast Web View function as part of the above process?

    You didn't mention which version of Acrobat you're using, which is critical to the answers to these questions.
    If you have Acrobat Pro, then you can do A and C in a batch process (aka Action).
    B can be achieved using a custom-made script. If you have version 9 or earlier a directly link to the DB can be created and the data copied from it to the script's metadata. If you have Acrobat X this can also be done, but would require export the information from the DB to a file, reading that file with a script in Acrobat and then using it to populate the metadate fields. Again, if you have Acrobat Pro this could be done in a batch process. Otherwise, you'll have to do each file at a time.

  • Powershell Script to create "custom" Document Library

    I have a powershell script which creates a Document Library for every user in AD.
    This works, but rather than using the default Document Library I want it use a custom Document Library.  However this isnt working.
    My script to create the default Document Library is this...
    [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
    $site = new-object Microsoft.SharePoint.SPSite("http://servername/sitename");
    $siteweb = $site.OpenWeb();
    $webs = $siteweb.Webs;
    $strFilter = "(&(objectCategory=User)(name=accountname))"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = $strFilter
    $objSearcher.SearchScope = "Subtree"
    $colProplist = "samaccountname"
    foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()
    foreach ($objResult in $colResults)
    $objItem = $objResult.Properties; $objItem.samaccountname
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    $listId = $siteweb.Lists.Add($objItem.samaccountname, "", $listtemplate);
    $list = $siteweb.Lists.GetList($listId, $true);
    $roleDef = $siteweb.RoleDefinitions.GetByType("Contributor");
    $user = "domain\" + $objItem.samaccountname;
    $rolAssign = new-object Microsoft.SharePoint.SPRoleAssignment($user, "email", "name", "notes");
    $rolAssign.RoleDefinitionBindings.Add($roleDef);
    if(!$list.HasUniqueRoleAssignments)
    {$list.BreakRoleInheritance($true);}
    for ($i = $list.roleAssignments.Count - 1; $i -gt -1; $i--)
    { $list.RoleAssignments.Remove($i) }
    $list.RoleAssignments.Add($rolAssign);
    $list.Update();
    Now I have a custom Document Library named "TESTLIB" so if I substitute the line:
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    with
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::TESTLIB
    Then it errors with this...
    How can I script powershell to create a "custom" Document Library?
    Thanks

    The below link should help you in creating custom document library using powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/23/use-powershell-cmdlets-to-manage-sharepoint-document-libraries.aspx
    Vinod H
    Thanks for the link but I cant see anything to assist creating a custom library?  Was there something in paticular you saw?

Maybe you are looking for

  • Screen is frozen but I can hear music playing? Help, please.

    I bought an 80GB iPod Classic about two months ago. It was working fine until this morning. I noticed that the screen is frozen; meaning I can hear music playing but the screen is frozen. And I can't pretty much navigate. It looks like it became an 8

  • DVD OR BLU RAY DISK INTERFACE ADD AUDIO?

    IS IT POSSIBLE TO ADD AUDIO TO A BLU-RAY OR DVD DISK INTERFACE WHEN USING FCP X TO CREATE (SHARE) THE PROJECT TO DISK?

  • MRP/PP/Product Costing - Datasources

    Hi, Could you please let me know what are the datasources for MRP , PP and Product costing related information from ECC to BW.

  • Upload in ac03

    Hi all, i need clarification on long text upload for ac02 (display service. in this transaction i had to upload the following fields. asnum,astyp,bklas,meins,..etc. and also long text field. i developed seperate program for uploading asnum,astyp,bkla

  • Serious wifi problems with iMac after installing Mountain Lion

    After installing Mountain Lion, I'm experiencing serious trouble with wifi. I noticed that some people had this before with Lion. Can anybody help to solve this problem or should I downgrade to Mountain Lion? Please help Thanks in advance!