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

  1. #1

    Default pdDoc.Save()

    I am having trouble saving a pdf. I'm using the SDK in C#. My project just grabs a bunch of pdf files and merges them.

    I have added a COM reference to Acrobat.
    I open the first one manually using avDoc, then with pdDoc.
    Then I loop through the rest of the files and append them to the first doc.
    After I am done merging, I try to save by using pdDoc.Save(), but for the first argument nType, I can't get any value to work in there. I tried putting PDSaveFull, but that didn't show up in intellisense and it gave me an error, then i tried to put 1, but that just returned false.

    Am I missing some other reference? Or am I just doing something completely wrong?
    Krishan_Khandpur@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Duplicate AVDoc for the same PDDoc
      Is it possible to duplicate an AVDoc and show it in an external Window? According to API Reference, „“Starting with Acrobat 7.0, it is possible to...
    2. PDDoc usage in OLE and DDE mix environment
      Hi Leo and Andy, I use both OLE and DDE in my application to communicate with acrobat. I open a PDDoc for a pdf document through OLE (OLE PDDoc) and...
    3. How to get a valid PDDoc after call PDDocSaveWithParams ()
      After PDDocSaveWithParams() the original PDDoc is not valid and API Reference said that user can reacquire PDDoc from PDDocDidSave notification,but...
    4. PDDoc.Save problem
      Example of VBScript: ==Script begin Function Execute(infile, outfile) On Error Resume Next Dim avdoc, pddoc Dim saveOk Set avdoc =...
    5. PDDoc.Close() fails
      I have a problem where at random (more so than not) times the PDDoc.Close() method fails. This leaves Acrobat in a state where it keeps the file...
  3. #2

    Default Re: pdDoc.Save()

    After playing around with it more, I got it. Thanks =)
    Krishan_Khandpur@adobeforums.com Guest

  4. #3

    Default pdDoc.Save()

    How do you define the first parameter of the save methos.

    when I put in ODOC1.save(PDSaveCollectGarbag,filePath) it crashes and says that variable PDSaveCollectGarbage is not defined
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may 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