set document properties

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default set document properties

    How to set the document properties of pdf file like Author/Title using Acrobat IAC?

    I assigned the property GetJSObject to an object variable
    and tried using the property info.title. But it returns an error:

    Dim jso as object
    jso=gpddoc.GetJSObject
    jso.info.title="xx"

    The above code returns an error.
    Please let me know how to assign the title property.

    thanks,
    sashi
    [email protected] Guest

  2. Similar Questions and Discussions

    1. document array has no properties
      Why doesn't DW8 like document arrays assigned to variables? Using the syntax, formInput = document.getElementsByTagName("input") Returns an...
    2. Document Properties using cos method
      Hi, I want to get document properties like Page layout, Magnification and open number using Acrobat 6.0 SDK.I am able to get dictionary catalog....
    3. Changing the Document Properties
      Hi, I want to change the document properties like Page layout, Magnification... My code as shown below: AVPageView avPageView =...
    4. How to Save document properties
      Hi, I am working on a project in which I have to set the properties in coding for a pdf document i.e Magnification, Initial view, pagelayout ,...
    5. Document properties default
      Is there a way to have a custom set of document properties (initial view etc) applied to a set of PDFs - either by batch processing or just by...
  3. #2

    Default Re: set document properties

    There is a direct IAC method, SetInfo. Refer to table 10.2 in the PDF
    Reference for valid Info dictionary keys.

    Aandi Inston
    [email protected] Guest

  4. #3

    Default Re: set document properties

    I tried also the direct IAC method:

    pdDoc.SetInfo("Title","XX") - the value "XX" should be assigned as
    the Title name.

    But when i checked the TITLE in the document properties it was 'Title' instead of the value 'XX'

    Please let me know what the problem is..

    thanks,
    sashi
    [email protected] Guest

  5. #4

    Default Re: set document properties

    Read this:
    <http://www.adobeforums.com/cgi-bin/webx/.3bbc4001/0>
    Bernd Alheit Guest

  6. #5

    Default Re: set document properties

    Ok, if that's broken, let's look at JSO:
    >Dim jso as object
    >jso=gpddoc.GetJSObject
    >jso.info.title="xx"
    GetJSObject returns a JSObject. You seem to be assuming that this is a
    PDDoc; it is not. The "working with annotations" example in the VB
    JavaScript document shows an example of obtaining and working with a
    PDDoc object, given the JSObject.

    Aandi Inston
    [email protected] Guest

  7. #6

    Default Re: set document properties

    AS per your suggestion, i referred the VB Javascript document and altered the code, as seen below:

    Dim n as object
    Dim jso as object
    jso=gpddoc.GetJSObject
    n=jso.info
    msgbox(n.Title)

    This returned an error Public member 'Title' on type '_comObject' not found.

    Please let me know how to use this method.

    thanks,
    sashi
    [email protected] Guest

  8. #7

    Default Re: set document properties

    I take back my reply after more reading. This does look valid.

    Aandi Inston
    [email protected] Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139