Using Acrobat Object in InDesign Javascript Script

Hi there,
for a current job, I would like to replace pages in a PDF document right after I have exported the pages from InDesign. The export works well, but now I need to instantiate an acrobat object in my InDesign Script. At the moment, I only have Photoshop and Bridge objects available in my ExtendScript IDE. Is there any way to instantiate a Acrobat object in InDesign Script?
I use InDesign CS3 and Acrobat 8 on a Macintosh computer.
Any help would be great!
Thanks a lot in advance!
Greetings
Mimi

I do not believe this can be entirely done from within JavaScript. You could use doScript to call a script in a different language that is capable of interacting with Acrobat.
Dave

Similar Messages

  • How do I open a pdf book cover file using Acrobat XI into Indesign CC?  Everytime I try, it says I am trying to open a file that has been saved wrong.

    How do I open a pdf book cover file using Acrobat XI into Indesign CC?  Everytime I try, it says I am trying to open a file that has been saved wrong.

    PDF files cannot be natively opened in InDesign. They can only be placed as graphics.

  • Acrobat reader print with javascript script

    Hello,
    I read the documentation for printing silently using javascript, but it does not work as not all COM objects are installed.
    A code example:
    <body>
    <object id="examplePDF" data="DFWCRT133735.PDF" type="application/pdf" title="SamplePdf" width="100%" height="100%">
       Your browser does not support PDF, Please install Adobe Acrobat.
    </object>
    <div id="pdfprop">
    </div>
    <script type="text/javascript">
        var pdf = document.getElementById("examplePDF");
        var divProps = document.getElementById("pdfprop");
        if (pdf) {
    // Attempt 1: Works, but shown printing dialig which I do not want
    //        pdf.print();
    // Attempt 2: Does not work. Shows an exception about parameters when printing
            //var printParms = { bUI: false, bSilent: true, bShrinkToFit: true };
            //pdf.print(printParms);
    // Attempt 3: Does not work as can't instatiate unexistent progid, class AcroExch.PDDoc. COM object is not registered
            var srcDoc = new ActiveXObject("AcroExch.PDDoc");
            var jsObj = srcDoc.GetJSObject();
            var pp = jsObj.getPrintParams();
            pp.interactive = pp.constants.interactionLevel.automatic;
            pdf.print(pp);
    </script>
    </body>
    I read in google something about the Acrobat Pro version will have the missing COM object, but I can't force all my clients to buy that product. Is it possible with the reader version.
    I'll appreciate any help.

    I am trying with Reader 9.
    I am not trying to print from the server. The printing will happen on the client computers that is why I am trying to print using javascript from an html page. My clients do have different versions of Reader from 6 to latest
    Is there any way to achieve it with out installing anything else on the computers?
    Thanks,

  • Problems using Acrobat 9 with InDesign CS2

    We have just upgraded from Acrobat 7 to version 9 but are still using CS2 for everything else(don't ask!!!). However, when we use the Adobe pdf presets, they still seem to be using the version 7 job options. I've tried to load up the new job options (from C:\Documents and Settings\All Users\Application Data\Adobe\Adobe PDF\Settings) but it says 'cannot import presets from this file'.
    IT are not being very helpful with this, so I need help please! Microsoft office seems to be using version 9, and I can make a postscript file using version 9 in the print window of InDesign, but for some reason I can't get the programme to recognise the new presets.
    Thanks v much

    David,
    When you print to PDF (or Distill in two steps), your transparency gets flattened BEFORE the PDF is made, so the transparency is not really there, just the "appearance" of the transparency. Exporting to PDF 1.4 (Acrobat 5) or later keeps the transparency "Live" in the PDF so that flattening can be handled in the RIP, as well as eliminating flattening artifacts (referred to as stitching, which appear as thin white lines along the borders of transparent regions in front of a colored background) during on-screen viewing.
    Although Illustrator is not a general purpose PDF editing tool, it can be instructive to do a little demonstration of the difference in the structure of the same file exported and printed to PDF. Start by placing a photograph as a background, then use one of InDesign's shape tools to put a filled shape in front of the photo, and apply a drop shadow to the shape. Export and print using the Press Quality preset (which will keep the transparency live in the export, but the printed PDF will be flattened, despite its PDF 1.4 compatibility).
    First, you'll probably see stitching in Acrobat on the printed version, and it may be lighter in appearance overall than the exported version. Now open the two version in Illustrator. Open the layers panel and keep expanding the groups until you are able to isolate the shape and drop shadow elements (in the exported version the shadow will probably be grouped with a clipping mask, while in the printed version the shadow may be in several pieces and has been burned into a copy of the background photo). Try to select the shape and shadow and move them relative to the background.
    Mostly, though, I was referring to the fact that you can't use bookmarks, buttons, or other interactive elements in Printed PDF.

  • Need to bind people picker with group members in AD in office 365 using Client object model in javascript

    Hi,
    I need to create a form in SharePoint designer so that it can display and save selected users. Users should be selected for particular group. Group and users are in AD. Form would look like below:-
    Group1                            People picker with users of Group1 only
    Group2                            
    People picker with users of Group2 only
    Save button to save this mapping in some List for selected users and groups
    I need to do this using CSOM/Javascript in office 365.
    Thanks a lot!
    Arvind
    arvind chamoli

    Hi Venu,
    check those options
    http://www.thesharepointblog.net/Lists/Posts/Post.aspx?List=815f255a-d0ef-4258-be2a-28487dc9975c&ID=135
    http://paultavares.wordpress.com/2012/04/28/sharepoint-ui-widgets-upload-and-pickusers/
    http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups&referringTitle=%24%28%29.SPServices
    http://spservices.codeplex.com/wikipage?title=UserProfileService&referringTitle=%24%28%29.SPServices
    http://blog.vgrem.com/2013/03/27/different-ways-of-extending-people-editor-in-the-client-side-sharepoint-2010/
    this one for 2013 but worth that u check it
    http://msdn.microsoft.com/en-us/library/office/jj713593(v=office.14).aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Using Acrobat 6 with inDesign CS2

    Hi,
    Recently purchased CS2 Standard (inDesign, Photohop, Illustrator), and need to add on Acrobat. Can I add on 6.0 instead of 7.0, and still get easy exporting of pdf's from inDesign (seems like I just need to adjust my preferences and/or print dialog box selections within inDesign)?
    THANKS

    John:
    You don't need Acrobat in order to "Export" or "Save As" a PDF from inDesign, Photoshop or Illustrator.
    But, in order to view them properly in Acrobat 6 you may have to adjust your export settings to make them Acrobat 6 (PDF 1.5) compatible.

  • How to place a word document in a TextFrame with InDesign CS2 scripting (JavaScript)?

    I´m newbie with InDesign CS2 Scripting (JavaScript). I need some help to understand the way to place a Word document in an indesign template, using JavaScript(.jsx).
    Thank you for the help,
    Peter

    //PlaceTextFileInFrame.jsx
    //An InDesign CS3 JavaScript
    //Places a text file in a text frame.
    var myDocument = app.documents.add();
    //Set the measurement units to points.
    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    //Create a text frame.
    var myTextFrame = myDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myDocument, myDocument.pages.item(0))});
    //Place a text file in the text frame.
    //Parameters for TextFrame.place():
    //File as File object,
    //[ShowingOptions as Boolean = False]
    //You'll have to fill in your own file path.
    myTextFrame.place(File("/c/test.txt"));
    function myGetBounds(myDocument, myPage){
    var myPageWidth = myDocument.documentPreferences.pageWidth;
    var myPageHeight = myDocument.documentPreferences.pageHeight
    if(myPage.side == PageSideOptions.leftHand){
    var myX2 = myPage.marginPreferences.left;
    var myX1 = myPage.marginPreferences.right;
    else{
    var myX1 = myPage.marginPreferences.left;
    var myX2 = myPage.marginPreferences.right;
    var myY1 = myPage.marginPreferences.top;
    var myX2 = myPageWidth - myX2;
    var myY2 = myPageHeight - myPage.marginPreferences.bottom;
    return [myY1, myX1, myY2, myX2];

  • Examine Document... using Acrobat javascript

    Hi,
    I am using Acrobat 9 version.
    I have a pdf which has some hidden text. I am using Acrobat menu  Document -->Examine Document... to find if the PDF has any hidden text or not.  If the Examine Document... shows the Hidden text (1 page), then I remove the hidden text using Remove button at the bottom of the examine status window.
    My question is, it is possible to do this task using Acrobat Javascript.
    I am having more than 500 PDFs, so opening each and evert PDF and examining the documnet takes more time. If there are options in Javascript, please let me know.
    Thanks,
    Gopal

    Thanks for your reply.
    The preflight option "List invisible text objects" does not generate the report saying that the PDF has invisible text objects.
    Also, "PDF names"means name of the PDF document (Ex: sample.pdf). Is there any way to achieve this using Javascript code?
    Thanks,
    Gopal

  • Acrobat Javascript scripting reference required?

    Does anyone know where to get a javascript scripting reference for Pro X?  I have got one for Acrobat 7.0, but cannot find one for pro X.  All help gratefully received.

    Developing Acrobat Applications Using JavaScript
    JavaScript for Acrobat API Reference
    JavaScript for Acrobat 3D Annotations API Reference
    Acrobat Tracker
    Batch Sequences
    Send me an e-mail when comments are added to this page | Comment Report
    Current page: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JavaScript_SectionPage.70.1. html
    Add Comment
    this is what it looks like. for each of the links and pages

  • Using Delphi, and the InDesign automation object ("indesign

    Using Delphi, and the InDesign automation object ("indesign.application"), I need to open a indd file, move to a bookmark and insert text or picture at that exact location. Any examples of such code I could start with?

    Hi Bill,
    Sorry to be so late getting to this thread!
    If you want to add something to a page, or find an object that's on a page, you need a reference to the page. Simply displaying the page with ShowBookmark won't give you a reference to the page--InDesign scripting, for the most part, doesn't rely on the selection and current view in the way that Word scripting does (this is a good thing, but that's a topic for another day).
    You had to have a reference to a page to create the HyperlinkPageDestination that you used to create the bookmark--but, if not, you can get a reference to the page using (VBScript form):
    Rem Given a reference to an instance of InDesign "myInDesign"...
    myInDesign.Bookmarks.Item("Description").ShowBookMark
    Set myPage = myInDesign.ActiveWindow.ActivePage
    In general, though, you probably don't need the bookmark and the whole "ActiveWindow" construct--just use the reference to the page itself.
    Now that you have a page, you can put things on the page.
    Rem Create a rectangle
    Set myRectangle = myPage.Rectangles.Add
    Rem Size and position the rectangle
    myRectangle.GeometricBounds = Array("6p", "6p", "24p", "24p")
    Rem Place a graphic in the rectangle
    myRectangle.Place "c:\test.tif"
    If you have a text frame on the page that has the label "myLabel", you can get a reference to the text frame and add text:
    Set myTextFrames = myPage.TextFrames.Item("myLabel")
    Rem myTextFrames will return an array--get the first item
    Set myTextFrame = myTextFrames(0)
    Rem Replace the text in the text frame:
    myTextFrame.Contents = "This is some text."
    Rem Or add text to the end of the text frame:
    myTextFrame.InsertionPoints.Item(-1).Contents = "This is some additional text."
    If you know that there is only one text frame with the label "Description" in the entire document, you can even say:
    Set myTextFrames = myDocument.TextFrames.Item("myLabel")
    Rem myTextFrames will return an array--get the first item
    Set myTextFrame = myTextFrames(0)
    ...to get to it directly. If, at that point, you want to get at the page containing the text frame (and assuming that the text frame is not in a group, pasted inside text, or pasted inside another page item), you can use:
    Set myPage = myTextFrame.Parent
    Have you looked through the "Working with Documents" chapter of the InDesign CS3 Scripting Guide: VBScript and the associated scripts archive? I realize that you're using Delphi, but it doesn't look too difficult to convert from one to the other.
    Thanks,
    Ole

  • Rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()

    I am trying to find whether each page in PDF document is color or monochrome.
    For doing this I am rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()
    Once after rendering the PDF page, I am using GetPixel() to read each pixel value to decide about color or Monochrome.
    Problem:
    When I read the pixel to decide about the page color or monochorme, in some XP machines it is showing the PDF page as color and in some PC it is showing it as Monochrome.  Color quality in both the system is kept as 32 Bit.
    After this I tried copying the PDF page directly into clipboard and then take the clipboard image to decide about color and monochorme, but even this also behaves in the similar way.
    Question:
    Why rendering the PDF page to Bitmap object using DrawEx() or CopyToClipboard() is behaving differently in each machines.
    If required I will send my sample project.
    With regards,
    Rajeshrv.

    In SDK documentation, there is no methods are defined for getting the color of the page.  In color spaces and color values, we can set the color for drawing operations. A method AVPageViewSetColor is used for setting the color. 
    But there is no methods defined for getting the color in the page.  Please let me know , is there any alternative way.
    Thanks in advance.

  • Using a request scope object in a javascript function

    Hello,
    is there a way to obtain a reference to a request scope attribute in a javascript function?
    or after using <jsp:useBean id="myBean" ...>, how do I pass the "myBean" object to a javascript fuction?
    Thanks for any help.
    E-

    ok, thanks...this is working for a string property of a bean... but I get an 'invalid character' error when I want to create an actual reference to the bean object itself.
    here is the jist of what I need to get working... myBean has a property 'listItems' that is a Vector of listBeans.
    function buildList() {
    var myBean = <%=request.getAttribute("mybean")%> ;
    // get referenence to the Vector property listItems
    var list = myBean.getListItems();
    // now I want to iterate the list and use the properties of the list beans
    for (x = 0 ; x < list.size() ; x++ ) {
    var listBean = list[x];
    var foo = listBean.getFoo();
    // need to use foo to populate a hierarchical list
    can I do this in JavaScript??? do I need to cast the classes to the variables?

  • How to execute preflight profile using Acrobat Javascript

    Execute a pre-flight profile using acrobat javascript and  call that function in VB.Net.

    See: http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=Acrobat10…

  • Remove all the hidden objects in PDF using acrobat SDK

    Hi Friends
                   How to remove all the hidden objects in PDF using acrobat sdk 11

    Sorry if I re open this old thread, but I am interested in the 'Remove Hidden Information' command.
    Which is the AVCommand to run this feature?
    Thanks

  • Sechs-Ecken-Objekt mit InDesign CS3-Script / JavaScript ???

    Hallo.
    Können Sie mir evtl.  helfen? Siehe Bild im Anhang.
    Wie kann ich dieses Sechs-Ecken-Objekt (Kontur 1 Pkt nach innen) mit Indesign-Script erstellen ? (InDesign CS3-Script / JavaScript)
    myPolySCHATTEN = myDocument.pages.item(0).polygons.add();   ???
    oder mit
    myPath = myDocument.paths.item(0).add();                                  ???
    Oder... ????
    Freundliche Grüße,
    AndreasRoe aus Germany

    Piece of cake.
    You can either create a default Rectangle or Polygon, and add and move the points around, or -- my preferred way -- add a GraphicLine and add the other points to that path, until you are nearly done. Then set the path type to "Closed", and you are really done.
    For starters, let's create a regular rectangle the hard way:
    var hoehe = 10;
    var breite = 20;
    newrect = app.activeDocument.graphicLines.add ();
    newrect.paths[0].pathPoints[0].anchor = [0,0];
    newrect.paths[0].pathPoints[1].anchor = [0, hoehe];
    newrect.paths[0].pathPoints.add({anchor:[breite,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,0]});
    newrect.paths[0].pathType = PathType.CLOSED_PATH;
    Run this and experiment with breite / höhe.
    If you look at your drawing, you can see you need an inset value for the chopped off corners. You can also see where to add the new points, when you start counting at top left. That results in this -- notice how breite / höhe are adjusted one by one:
    var hoehe = 50;
    var breite = 100;
    var inset = 4;
    newrect = app.activeDocument.graphicLines.add ();
    newrect.paths[0].pathPoints[0].anchor = [0,0];
    newrect.paths[0].pathPoints[1].anchor = [0, hoehe - inset];
    newrect.paths[0].pathPoints.add({anchor:[inset,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,inset]});
    newrect.paths[0].pathPoints.add({anchor:[breite-inset,0]});
    newrect.paths[0].pathType = PathType.CLOSED_PATH;

Maybe you are looking for