Professional Web Applications Themes

trouble with saveAS - Adobe Acrobat SDK

I am having a problem with a javascript function. I can save as a Tiff with no problem - but now I would like to have another option that allows my users to save data as a PDF file. I can't seem to get it to work for a PDF file. The save as TIFF syntax - works fine .. CODE SNIPPET HERE ! <this.saveAsFile,"com.adobe.acrobat.tiff"); > I have tried leaving out a conversion that doesn't work . I have tried preflight conversions - they don't work - bcause the preflight dll is non-existent . is there an easy solution that ...

  1. #1

    Default trouble with saveAS

    I am having a problem with a javascript function.

    I can save as a Tiff with no problem -
    but now I would like to have another option that allows my users to save data as a PDF file.

    I can't seem to get it to work for a PDF file.

    The save as TIFF syntax - works fine ..
    CODE SNIPPET HERE !
    <this.saveAsFile,"com.adobe.acrobat.tiff"); >

    I have tried leaving out a conversion that doesn't work .
    I have tried preflight conversions - they don't work - bcause the preflight dll is non-existent .

    is there an easy solution that I am overlooking ?
    smde@adobeforums.com Guest

  2. #2

    Default Re: trouble with saveAS

    Well, the syntax for saveAs in Acrobat JavaScript is actually

    this.saveAs(path, conversionID)

    So try that syntax, unless you have a folder-level function defining "saveAsFile", in which case we'd need to see that function to know what's going on.
    PDL@adobeforums.com Guest

  3. #3

    Default Re: trouble with saveAS

    I am actually already using htis command and it is working for the TIFF conversion - but in the case of saving as a PDF - I do not know what conversion to use -
    smde@adobeforums.com Guest

  4. #4

    Default Re: trouble with saveAS

    Typo in original post shoud read as :

    <this.saveAs(File,"com.adobe.acrobat.tiff"); >

    Sorry .
    smde@adobeforums.com Guest

  5. #5

    Default Re: trouble with saveAS

    Just using

    this.saveAs(file);

    with no conversion ID works for me. The file you're trying to save as a PDF is already a PDF, right?
    PDL@adobeforums.com Guest

  6. #6

    Default Re: trouble with saveAS

    Yes - thanks - PDL -
    apparently it is an overloaded function - and I was thinking that it always needed two arguments.

    It works fine - thanks

    Cheers
    smde@adobeforums.com Guest

Similar Threads

  1. Compression when SaveAs PDF to Tiff
    By Craig_Badorek@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 2
    Last Post: September 17th, 03:37 PM
  2. saveAs from JSObject in browser
    By daxmw@comcast.net in forum Adobe Acrobat SDK
    Replies: 0
    Last Post: January 11th, 03:30 PM
  3. SaveAs txt file with VB6
    By Keith_Vonborstel@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: May 19th, 10:51 PM
  4. COM excel SaveAs - Web Page?
    By in forum PHP Development
    Replies: 0
    Last Post: July 23rd, 09:07 AM
  5. Interop saveAs html automation
    By bracoute in forum ASP.NET General
    Replies: 0
    Last Post: July 8th, 01:03 PM

Bookmarks

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