Acrobat JavaScript Doc.SaveAs using "CHTTP", SSL, and PKI Authentication

I'd like to load a client PKI certifricate into a Doc.SaveAs() SSL URL.  IE and Firefox do this fairly easily.  How can Acrobat do it?
Thanks for reading.

HI, Irosenth,
from the API document, it does say
saveAs
5.0
S
S
Saves the file to the device-independent path specified by the required parameter, cPath. The file is not saved optimized for the web. Beginning with Acrobat 6.0, the document can be converted to another file type (other than PDF) and saved as specified by the value of the cConvID parameter.
Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
(Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
What does the underlined sentence mean? does it mean it should work on reader as well?

Similar Messages

  • How to use Digital Signature and PKI in SharePoint Server 2013

    Dear Expert,
    My company will plan to use Digital Signature and PKI document in SharEPoint Server 2013.
    Can you guide me what's the concept and how to implement and develop?
    Please suggestion.
    BR,

    Hi BR,
    Based on your description, my understanding is that you want to use Digital Signature and PKI in SharePoint Server 2013.
    You can use digital signatures in forms ,then use these forms in you SharePoint site.
    In InfoPath form ,you can change the form to allow signature here: File>Info>Advanced form options >Digital Signatures .You can choose to sign the whole form or a field .
    https://social.technet.microsoft.com/Forums/en-US/0ed54d57-d67d-41cd-bd1b-9e5a4be10d0c/use-of-digital-signature-in-sharepoint-2010?forum=sharepointcustomizationprevious
    Or you can use any tools such as the ADSS Connector for SharePoint which allows enterprise users to "click and sign" on a document in SharePoint.
    http://www.ascertia.com/
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • Web Service, SSL and Client Authentication

    I tried to enable SSL with client authentication over a web service. I am using App Server 10.1.3.4.
    The test page requires my certificate (firefox asks me to choose the certificate) the response page of the web service returns this error:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
    Has anyone used web services with SSL client authentication?
    Any clue why?
    Regards

    Any comment?
    Thank you.

  • SSL and LDAP authentication

    I have installed Iplanet dirserver (5.1 sp1) on Solaris 8. I have Solaris 8 clients which should authenticate every user ssh connections with this ldap server.
    I have done everything as described in LDAP setup and Configuration Guide (found that in sun.com website) and everything works fine if i don't use SSL.
    What should i do to make SSL work?
    I have installed ssl ceritficates etc. and when i make dir server to use ssl it works fine with iplanet console (in access log it says SSL connection) But i can't get it work from my clients.
    My default port is 5001 and i have set ssl port to 5002 but everytime that i change client profile (and configuring client with ldapclient command) to use port 5002, authentication don't work anymore. Actually that ldapclient command doesn't work either. I can see in access log that client tries to take SSL connection, but server doesn't respond to it.
    Can anyone help me on this?
    Jani

    I recently setup an iDS5.1 LDAP server as a naming service to a couple Solaris 9 clients. You must use the default SSL port (636), see http://docs.sun.com/db/doc/806-4077/6jd6blbdd?a=view .
    In my case, I used a self-signed cert on the Server. I then copied the cert7.db, key3.db and secmod.db files from the server to the /var/dlap directory on the clients. The files you want from the server are in the SERVER_ROOT/alias directory. Specifically, the slapd-id-cert7.db and slapd-id-key3.db are the ones you want. Where id is the slapd server instance name, typically the host name of the computer.
    HTH,
    Roger S.

  • Read xml file using Acrobat javascript

    Please let me know if a XML file can be read using Acrobat javascript.
    I need to read and store the xml data in a string.
    thanks,
    Sashi

    STEP - 2
    SQL>
    SQL> DECLARE
      2    l_ctx dbms_xmlsave.ctxType ;
      3    l_xml CLOB :=
      4  '<?xml version="1.0" encoding="UTF-8" ?>
      5  <NewDataSet>
      6      <ROW>
      7          <DEPARTMENT>BA52</DEPARTMENT>
      8          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
      9          <LOCATION>Australia</LOCATION>
    10          <MAY_2006>21668</MAY_2006>
    11      </ROW>
    12      <ROW>
    13          <DEPARTMENT>BA501</DEPARTMENT>
    14          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
    15          <LOCATION>China</LOCATION>
    16          <MAY_2006>8166</MAY_2006>
    17      </ROW>
    18      <ROW>
    19          <DEPARTMENT>BA522</DEPARTMENT>
    20          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
    21          <LOCATION>Australia</LOCATION>
    22          <MAY_2006>21668</MAY_2006>
    23      </ROW>
    24  </NewDataSet>' ;
    25  BEGIN
    26      l_ctx := dbms_xmlsave.newContext(targetTable => 'XML_INSERT');
    27      dbms_output.put_line(dbms_xmlsave.insertXML(ctxHdl => l_ctx,
    28                                                  xDoc   => l_xml) ||
    29                           ' rows inserted.');
    30      dbms_xmlsave.closeContext(l_ctx);
    31  END;
    32  /
    3 rows inserted.
    PL/SQL procedure successfully completed.Regards.
    Satyaki De.

  • Creating 508 Adobe Acrobat Accessible Docs from various sources and formats

    Note: I have no 508 training, except for perusing of documents on the web.
    I need to create searchable 508 Compliance report documents for Adobe Acrobat (not for the web at this time) from merged PDF files. 
    To create these reports, I do not have originals, all I have been given are PDFs, some of which have been created from Word and others scanned (some with OCR and some not).  Some of the reports are converted directly from Word but may also be a combination of electronic and scanned pages (signature pages, graphics, appendices, etc.)  Often the scanned pages have not been scanned to actual letter size (8.5 x. 11), but are smaller.  Sometimes they are larger or A4.
    In preparing the final report, I take all of the PDFs and merge them into one document.
    I add watermarks and headers/footers to the whole document. 
    In order to get all of the watermarks and headers/footers to align on the page with ease, I need all of the pages to be the standard letter size of 8.5 x 11 without losing any information.
    The only way I can figure out how to achieve this is to take the pages (usually scanned pages) that need to be enlarged (sometimes reduced) and Print to a PDF. 
    This will create a new PDF of the existing PDF; making it the standard letter size of 8.5 x 11, without cropping.
    I can then replace the odd-sized pages with the new PDF pages, creating a document where all of the pages are now the standard letter size of 8.5 x 11.
    Once my document is all the same size, I can add my watermarks and header/footers.
    I still need to make the whole document a searchable 508 Adobe Acrobat compliant document.
    I believe I need to run the OCR Text Recognition to convert/capture scanned pages and pictures to make this document a searchable 508 Adobe Acrobat compliant document.
    I tried running the OCR text recognition on the current merged (160 pages) PDF document (before adding my watermarks, headers/footers) to capture the scanned text, and I receive the following errors:
            This page contains renderable text.
            This page has graphics other than images or text on it. It cannot be captured.
    When I ran the Adobe Acrobat Accessibility checker, I get the following errors:
           The first page is a scanned signature page: the error says
    1 image with no alternate text
                1 element(s) that are not contained within the structure tree.
    1.     Inaccessible page content
         Most of the remaining detailed report errors are:
    Inaccessible page content
    1 element(s) that are not contained within the structure tree.
    I tested one page and used the Touch Up Reading Order tool and added alternate text to a signature block, ran the accessibility checker again, but still came back with alternate text errors.
    I am open to suggestions.  Feel free to advise me from beginning to end in regards to what I’m trying to accomplish. 
    THANK YOU!

    You do have a boat load of work.
         This page contains renderable text.
         This page has graphics other than images or text on it. It cannot be captured.
    This isn't an "error". Acrobat's OCR cannot process  PDF page content that is not exclusively an image.
        1 image with no alternate text
    When properly tagged, an image or graphic in a PDF is identified by the PDF element "Figure"
    (<Figure>).
    All Figures shall have an Alternate Text Description.
    You may have images/graphics that are tagged as Figures but should be Artifacts.
    OCR - The hidden layer of OCR output provided by Searchable Image or Searchable Image (Exact)
    is, for practicable purposes, not something one can effectively created Tagged PDF from.
    Prior to Acrobat 9 one would use Formatted Text and Graphics. With Acrobat 9 one would use
    ClearScan. Alternatively, one might just re-key the content in an authoring application and output Tagged, accessible PDF.
    Watermarks & Header/Footers -
    Oh boy; well, once you have everything else in a "green board" line up you'd add these and manually
    "fold" them into the structure tree via proper tagging.
    So, the first step is to gain at least a fundamental understanding of what an Accessible PDF is and
    how to create it. Then you'd want to become familiar with Section 508 1194.22.
    As each of the paragraphs are correlated to WCAG 1.0, you'll want to review it to understand what
    the correlation is and how it relates to PDF.
    However, Section 508 will be changing.
    The Draft Updated Standards and Guidelines are on the street.
    The window for public comment closed a few weeks ago.
    PDF - What it is: An ISO Standard (ISO 32000-1:2008)
    Obtain a free version of this ISO Standard to study what "Tagged" PDF is (Accessibiity is just one facility associated with Tagged PDF).
    http://www.acrobatusers.com/blogs/leonardr/adobe-posts-free-iso-32000
    Section 508, 1194.22
    http://www.section508.gov/index.cfm?FuseAction=Content&ID=12#Web
    The "change" that is pending - at the Access Board's site:
    Section 508 Homepage: Electronic and Information Technology
    http://www.access-board.gov/508.htm
    Download the PDF of the Draft Updated Standards and Guidelines for review and study.
    Note that, in part, this more closely aligns Section 508 to WCAG 2.0.
    WCAG 1.0
    http://www.w3.org/TR/1999/WAI-WEBCONTENT-19990505/
    WCAG 2.0
    http://www.w3.org/WAI/intro/wcag.php
    Start with the Overview and work through the technical, educational, and transition to 2.0 information.
    "How To"
    Still relevant in an Acrobat 9 world:
    Creating Accessible PDFs using Adobe Acrobat 7.0 Professional, Greg Pisocky
    http://www.appligent.com/adobeaccessibility
    (Download to PDF file and exercise files (ZIP file).
    For Acrobat 9:
    http://www.adobe.com/accessibility/products/acrobat/
    For links to an accessibility overview and FAQ.
    Acrobat accessibility training resources
    http://www.adobe.com/accessibility/products/acrobat/training.html
    Yes, review - study all.
    A resource listing at Acrobat Users Community
    (PDF Tags Books thread)
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=15622
    I've not checked all the links recently - some destinations of the URLs may be gone
    (floatsom on in the deep blue of the web <g>).
    Regardless, much "how to" was in PDF documents Adobe published for earlier Acrobat releases.
    It is still relevant.
    Accessibility on demand eSeminars:
    http://www.acrobatusers.com/learning_center/eseminars/on_demand
    Scroll through the pages of links to the recorded eSeminars to locate and view -
    --| David Mankin's "Scanning and OCR"
    --| Duff Johnson's "Tech Talk: Making PDF files comply with Section 508"
    Transcript, PDF of PowerPoint file, other information for download at Lori Kassuba's AUC Blog -
    http://www.acrobatusers.com/blogs/lkassuba/making-pdfs-comply-section-508-tech-talk-0
    --| Charlie Pike's "Accessibility"
    "Q&A" transcript at Lori Kassuba's AUC Blog -
    http://www.acrobatusers.com/blogs/lkassuba/top-questions-june-accessibility-eseminar
    Accessibility Forum at AUC - Accessible PDF related posts
    http://www.acrobatusers.com/forums/aucbb/viewforum.php?id=18
    Read through Duff Johnson's AUC Blog and Talking PDF articles related to accessible PDF.
    --| AUC Blog  http://www.acrobatusers.com/blogs/duffjohnson
    --| "Talking PDF" http://www.appligent.com/talkingpdf
    Visit Adobe TV
    --| Ensuring Your PDF is Accessible
    http://tv.adobe.com/watch/acrobat-tips-and-tricks/ensuring-your-pdf-is-accessible/
    --| Navigating an Accessible PDF Document (Part 1)
    http://tv.adobe.com/watch/acrobat-tips-and-tricks/navigating-an-accessible-pdf-document-pa rt-1/
    --| Navigating an Accessible PDF Document (Part 2)
    http://tv.adobe.com/watch/acrobat-tips-and-tricks/navigating-an-accessible-pdf-document-pa rt-2/
    Getting underway from cold iron shutdown takes time and effort.
    Be well...

  • CF8 Use of clientCert and cfhttp

    Dears,
    In coldfusion 8, we are trying to implement a web service
    call in secured mode (use of ssl and client certificate).
    we used therefore new elements clientCert and
    clientCertPassword into cfhttp command.
    we received a Connection Failure as a result (coldfusion
    side).
    At web server of producer side (Apache), we receive an error
    HTTP 400:
    172.21.160.124 - - [04/Feb/2008:13:18:23 +0100] GET / 400 472
    Any idea / hint would be welcome ;)
    code page is attached

    Hi,
    yes we went further. But this is not so easy.
    Explanation:
    Before an SSL connection can be established with CFHTTP to a
    server the certificate of that server needs to be imported as a
    trusted certificate in the ColdFusion truststore with the keytool
    command. The command to do so is:
    keytool -import -trustcacerts -keystore cacerts -storepass
    <password> -noprompt -alias <alias> -file
    <certfile>
    If you use another CA certificate authority, then you also
    have to import the CA into the ColdFusion truststore.
    Before a client certificate can be used it needs to be in a
    specific format, pkcs. Of course this client certificate must
    contain the private key.
    You also have to import the client certificate into the
    Windows Certificate Store (if you run under a windows
    desktop/server).
    In your ColdFusion cfhttp tag, use this .pkcs certificate
    file.
    Tell me if it works like this :)

  • Connect - SSL and certificate chain

    Hi,
    is it possible to place a certificate chain somewhere, so
    that Adobe connect users dont have to manually install the
    certificates from the chain?

    Hi cj63, why isn't your cert accepted automatically? We're
    using hardware SSL and encountered an issue with our cert. We ended
    up changing the cert chain on the F5, I believe. I'm not sure of
    the "how" other than to know we did it with hardware SSL, so it
    should be possible.

  • Using javascript to save a pdf to a different directory and generating a new filename based on form fields in the document.

    I have built the following script in an attempt to create a submit button that will automatically save the document in a different directory on my computer. It will also use the form field data "customer" and "date" to generate the filename. I printed out the variable myPath and it looks like it printed the correct string. I keep getting the following error:
    TypeError: redeclaration of const path
    any help would be much appreciated.
    var customer = this.getField("Customer").value;
    var date = this.getField("Date").value;
    var path = "C:/Users/awilliams/My Documents/Test/"
      var reg = date.match(/(\d+)\/(\d+)\/(\d+)/);
    var myPath= "C:/Users/awilliams/My Documents/Test/" + customer + "_" + reg[1] + "." + reg[2] + "." +
    reg[3] + ".pdf";
    this.saveAs(myPath);

    "path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
    Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
    Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
    The notes following the description:
    Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
    (Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
    How to Save a PDF with Acrobat JavaScript

  • How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    Hi hasvi,
    Need Template(.indt), textframes etc for the following script:
    var myFolderInd = Folder.selectDialog();
    var myFile = myFolderInd.getFiles("*indt");
    app.open(myFile)
    var myDoc = app.activeDocument;
    var myDocName = myDoc.name;
    var mySaveFile = app.activeDocument.save(myFolderInd.fsName + "/" + myDocName.split(".indt").join(".indd"));
    var myFolderDoc = Folder.selectDialog();
    var myFile1 = myFolderDoc.getFiles("*doc");
    mySaveFile.pages[0].textFrames[0].place(File(myFile1))
    //~ mySaveFile.place(File(myFile1))
    app.activeDocument.textPreferences.smartTextReflow = true;
    var myPDFFile = new File(mySaveFile.filePath + "/" + mySaveFile.name.split(".indd").join(".pdf"))
    myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/abc.pdf"));
    alert("Process Completed")
    Regards
    Siraj

  • Doc Save As and Trusted Function

    I have been reading over the forum and the adobe help files regarding this. I think I am close but since I need to get my IT department to assist in placing the js files where they have to go, I thought I might ask the forum if I am on the right track
    I still have to make sure the field values will not include an illegal characters. They wont be empty as the forms will be coming directly from our system -prefilled
    Currently these forms automatically email (although staff still have to hit the actual send button) when staff go to print the document.  The people who get these forms are just finding it a bit hard to keep up with the emails and have asked to just have the files save to a folder so they can look at when they have time
    This is what I have for my trust propagator function.  I assume this is the only js file I will need as it incoporates the trusted function?
    mySaveAs = app.trustPropagatorFunction(function(doc,path)
      app.beginPriv();
       doc.saveAs(path);
      app.endPriv(); })
    myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path)
      // Privileged and/or non-privileged code above
      app.beginPriv();
       mySaveAs(doc,path);
      app.endPriv();
      // Privileged and/or non-privileged code below });
    I got this code from the Adobe Help
    then I want to have this code in the Document Did Print area
    var name = this.getField("FormValues.accountNames_0").value
    var folio =this.getField("FormValues.folioNumber_0").value
    myTrustedSpecialTaskFunc(this, "/w/Public/AccountOpening/" + name + " " + folio,pdf);
    I have to read where to put the js file as I have seen some comments on the forum that where you place the js file has changed for those with Adobe X and Windows 7
    Would anyone be be able to let me know if I am on the right path before I get IT involved.  I suppose I could test the code on my own laptop to see if it would allow me to save the form.....
    Thank you

    Read this: The Acrobat Ninja: Acrobat 10.1.1 JavaScript changes
    You have to manually create the folders that aren't present, and they must be named correctly.
    It's a good idea to use the valueAsString property instead of the value property to get the field values, since you're using the results as strings. It probably won't make a difference here, but it's a good habit to get into. You also have a typo in that last line of code. It should be:
    myTrustedSpecialTaskFunc(this, "/w/Public/AccountOpening/" + name + " " + folio + ".pdf");
    It would be a good idea to make sure those field value aren't blank if there's a chance that they could be.
    Also, consider using a try/catch block for the doc.saveAs call, and look at the return value so you can give the users a more helpful error message than what the default will be if something goes wrong.
    If you need help with any of this, post again.

  • Doc.saveAs() and filenames with commas

    Using Acrobat 9,  I have convinced myself that commas confuse the innards of the doc.saveAs() function. For example, from the console, the following throws an error:
    this.saveAs("john, jimmy.pdf");
    the error: "UnsupportedValueError: Value is unsupported. ===> Parameter cPath."
    I am more than a little stunned. It's been more than 10 years since the major operating systems allowed commas in the path.
    Am I overlooking something trivially obvious?

    Thanks for that link to the "wish forum".
    I have reported failure to accept commas in the path as a bug.
    I'll keep this question open for just a little longer.
    Does anybody know of any tricky escape character sequences that might solve the problem? I have failed with "\," and various ideas for nested quotes.

  • How to use FSO(FileSystemObject) in acrobat javascript?

    Okay, so here is my problem:
    I wanna retrieve the file name list from a HardDisk folder.
    After a while of google, I am aware that FileSystemObject could help to achieve what I what.
    You see, how could I use fso in my acrobat javascrip?
    Any feedback is appreciated.
    Regards,
    - gavin

    Thanks for your reply.
    I am aware of that acrobat javascript is just a part of javascript language.
    My code is now specialized for opened docs, and is added to Batch processing...
    Thanks
    - gavin

  • Hi, We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1. When we try to download a file(.pvw file) in that application safari throws "Download failed" error. Please suggest what needs to be done.

    Hi,
    We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1.
    When a file url is clicked instead of asking for Save or Open or Cancel options, the file gets opened on IPad by default.
    Is this default behaviour which cannot be changed or can it be configured to ask user preference?
    When we try to download a file(.pvw file -> a model file) in the above application, safari throws "Download failed" error.
    Please suggest what needs to be done.
    Regards,
    Pramod

    Safari on an iPad in general does not allow downloading of files. That's a safety precaution in the iOS SDK to keep unauthorized content off of iOS devices. Safari will open from the web site file types that it can handle, but direct downloading isn't normal behavior, and I don't believe the behavior can be changed, though you can try asking in the developer forum, either here or the one to which you have access as a member of Apple's iOS developer program.
    Regards.

  • Acrobat Reader X : Error using javascript with ProtectedMode on

    Stumped with an issue.
    I have a PDF with a mouseup event to trigger the PDF to SAVE to a network location and it works fine in v9 but with Reader X and enable Protected Mode turned on it throws the following error:
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.saveAs
    I get the above error even though the NETWORK PATH has been added in Reader preferences as a trusted PATH and the web site is listed as a trusted site.
    What am I missing here?

    According to the documentation, I am supposed to be able to setup a POLICY file "ProtectedModeWhitelistConfig.txt" and add parameters to it such as
    FILES_ALLOW_DIR_ANY = c:\tempfiles\*
    FILES_ALLOW_ANY = c:\tempfiles\*
    I want the ability to save to a UNC network path...it worked fine in Acrobat 9 and now with sandbox security and protectedMode in "X" nothing works.
    In Acrobat X, if "enable protected mode" is on, NOTHING works and an error is thrown.  If it is unchecked, the saveAs works fine.

Maybe you are looking for