Is it possible to leverage InDesign Server templates in a custom web app?

Hi there,
I am building a custom web app and was hoping to leverage our existing InDesign Server templates within our web app. What I would like to do, is based on user input, show my template with the user's input in the browser. I have looked through the API guides for InDesign Server CS6, but I haven't been able to conclusively find anything that will allow me to use the APIs to call the server, send the data points the template requires, and then get an image back from the server.
I believe this is possible, I am just not sure how to achieve it! Any ideas or articles that help push me in the right direction would be extremely helpful!
Thank you!
Marshall

Yes it's completely possible. There are two parts to making something like this work:
1. The scripts themselves. You can generally script InDesign Server and desktop InDesign exactly the way using ExtendScript. So that's the part of the process where your script receives variables and passes them into the template and replaces something you've identified as variable, whether text or an image or something else (perhaps a color theme, etc.). You should get your scripts running on desktop before playing around with server.
2. The messaging between your web app and the server. Whatever language you are using (i.e. PHP, .Net, Java, Ruby…) there is a way to make a SOAP call to InDesign Server to tell it basically "run this script with these parameters". You should get the "hello world" script running from a SOAP call on the server before using your real variable-driven document.
The documentation of these things is available here:
http://www.adobe.com/devnet/indesign/sdk.html
You need to download the InDesign Server SDK (don't worry if you're on CC and it says CS6, almost nothing changed) and the InDesign Scripting SDK. The Server SDK deals with part #2 above, the Scripting SDK with part #1.
It really isn't that hard. I should warn you, though, that it is addictive and once you do your first one you will become all-powerful and want to do nothing else. :-)
Good luck and don't hesitate to ask questions.
Max
http://blog.siliconpublishing.com

Similar Messages

  • How to FTP an elaborate template into a BC web app making use of dreamweaver cc?

    I need to provide my web app creation in Business catalyst with a better template through 'FTP' which is possible with dreamweaver CS6 as it is integrated with BC, But I have the creative cloud version'DREAMWEAVER CC' Is there a plug-inn? or should I venture to another FTP route to upload more elaborate templates to my BC web app? I'm creating this BC site purely as a database which I would plant into a site.
    I have done the cs6 trial period before I opt into the creative cloud, so that option is out of the window. DREAMWEAVER CC as part of the cloud just as BC should really be connected even more so than cs6! What can I do?
    Thank you in advance
    Sem

    Roxpat wrote:
    I'm beginning to consider learning other applications (Dreamweaver and/or specific languages), so feel free to offer those up as well.
    roxpat ~ Since your web site content is community oriented, you may be interested in this free, web-based site builder for social networks:
    http://about.ning.com/product.php
    ...Their Events feature lets members know about upcoming playgroups, coffee mornings, etc. related to your social network's theme. Read more here.
    You may want to consider hyperlinking from your iWeb site to a Ning site to provide some specific feature that iWeb doesn't offer.

  • Is it possible to create a custom web app for online quotes?

    is it possible to create a custom web app for online quotes?
    Any advise greatly appreciated.

    Hi there,
    You really need to expand a lot more on what you want to achieve. That really is nothing to go on there .

  • Is it even possible to dynamically apply view criteria in an ADF Web App?

    This is one of those situations where something that should take an hour ends up taking days.
    * I have a view.
    * The view has Bind Variables associated with it.
    * The view has View Criteria associated with it.
    * Each of the View Criteria use different Bind Variables.
    * I have a search criteria input page that receives from the user what will ultimately be used to set the bind variables.
    * I have a search results page that uses the view to display a table.
    * I have the code that dynamically sets view criteria and parameters. It is based on the following:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#BCGFHAGA
    * This code works great, until the iterator associated with the table binding to the view is initialized. At that time, the view is reset to its defaults, and all of my code's doings are discarded. How do I know this? Because I have gone so far as to run my code that sets view criteria and binding variables dynamically in a phase event handler for the search results page in the render response phase. There is no other point at which to dynamically modify the view.
    This is turning into a situation where it seems I will need 5 different views and 5 different pages in order to show a single set of query results. I cannot get dynamically applied view criteria to work in an ADF web app. Has anyone else done it? Can anyone relate to this? Are there any other suggestions before I conclude that it's not possible for this framework to handle this simple scenario?
    Thanks

    There must be a setting or something that I am still missing here. If I write code just like this and make sure it is executed, I still only see the results of my view executed without the view criteria applied using the default bind variable values that I supplied in the view object.
    It's like the fact that I set the bind variables, the view criteria, and executed the view query programmatically is lost on the iterator -- it's like it never happened. What setting is used to ensure that the iterator uses the outcome of what I executed programmatically? There has to be a critical set or setting that I am missing.
    Here is the iterator and search region definitions defined in the page def "executables" section:
      <executables>
         <iterator Binds="CustomSearchView1" RangeSize="25"
                  DataControl="AppModuleDataControl"
                  id="CustomSearchView1Iterator"/>
        <searchRegion Binds="CustomSearchView1Iterator"
                      Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
                      id="CustomSearchView1Query"/>
        </executables>Here's the "tree" binding in the page def file:
      <bindings>
       <tree IterBinding="CustomSearchView1Iterator" id="CustomSearchView1">
          <nodeDefinition DefName="Model.CustomSearchView" Name="CustomSearchView10">
            <AttrNames>
              <Item Value="CustomId"/>
              <Item Value="CustomProjectNumber"/>
              <Item Value="CustomName"/>
              <Item Value="CustomStatus"/>
              <Item Value="CustomStatusDate"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
      </bindings>In an effort to take page flow out of this mess, I had modified this to include the search criteria and search results on a single page. So, I now have a "Search" button. When the "Search" button is clicked, the action method does the following:
        public String searchActionListener ()
              // Get search criteria from select one choice and text input controls.
              AppModule appModule =
                    ( AppModule ) Configuration.createRootApplicationModule (
                        "Model.AppModule",
                        "AppModuleLocal");
              appModule.customSearch( searchCriteria1,
                                                   searchCriteria2,
                                                   searchCriteria3 );
        }In my application module this translates to:
        public void customNoticeSearch ( String searchCriteria1, String searchCriteria2, String searchCriteria3)
           CustomSearchViewImpl searchViewImp =
               ( CustomSearchViewImpl ) this.getCustomSearchView1 ();
           searchViewImp.customExecuteQuery ( searchCriteria1, searchCriteria2, searchCriteria3);
        }Finally, in my custom view object implementation code:
        public void customExecuteQuery ( String searchCriteria1, String searchCriteria2, String searchCriteria3 )
            // Set-up the parameters that are part of the core query.
            this.setp_searchCriteria1( searchCriteria1);
            this.setp_searchCriteria2( searchCriteria2);
            if ( searchCriteria3 != null )
                ViewCriteriaManager vcm = this.getViewCriteriaManager();
                ViewCriteria vc = vcm.getViewCriteria ( "WithLastCriteria" );
                this.setp_searchCriteria3( new Number ( searchCriteria3 ) );
                this.applyViewCriteria( vc );
            System.out.println ("This is fun.");
            this.executeQuery();
        }This code executes, but the results table is empty, and I know that there are results, because I can execute use execute with params to execute the base query and get the correct results back.
    Thanks for taking a look at this.

  • Windows Server 2008 (TS) and Lync Web App installation failure

    Hey folks,
    I've run into a little big problem due the Lync Web App installation via mstsc on a stand alone Terminal Server 2008 SP2 64 Bit. When I tried to install the Lync Web App Plugin via
    mstsc and standard user I get the message:
    "The system administrator has
    set up a policy that the installation
    prevents"
    Till that it's just fine.
    The next thing I did is to disable the UAC and DEP, but same problem as above. I also tried to extract the install EXE for the MSI packages to allow the installation. But did not work.
    After I searched the internet for an answer relating to this problem I've had to create or change a RegEdit entry. So I switched to the registry to:
    HKEY_Local_Machine\Software\Policies\Microsoft\Windows\Installer
    and created a DWORD entry DisableMSI and set it to 0. Then I tried the installation of Lync Web App Plugin via
    mstsc and standard user again and this message appeared:
    "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755"
    Now the curious thing is, that when I am logged on locally, the standard user is able to install the Lync Web App Plugin. And it works fine. After the installation is complete I can switch to mstsc again and it works.
    The only thing what doesn't work is to install Lync Web App Plugin via mstsc into the user profile.
    Any suggestions?

    Before you install the application, change your user mode to installation mode.
    You can run the following command with Prompt Command:
    Change user /install
    After the application is installed, change back to execution mode, you can do so by running the following command:
    Change User /Execute
    Lisa Zheng
    TechNet Community Support

  • Is it possible to use commerce server with netscape webserver and weblogic app server

    Hello,
    We want to use Netscape webserver using NSAPI plug-in with WLS 5.1.
    In this scenario can we get full functionality of Weblogic Commerce server
    2.0.1 if we wnat to use above setup.
    This is urgent please.
    surya

    Surya,
    The NSAPI plug-in with WLS 5.1 should not adversely affect the way the
    Commerce Server works. Although this platform is not 'certified', the product
    is J2EE compliant and should work without error.
    Hope this helps!
    surya chavali wrote:
    Hello,
    We want to use Netscape webserver using NSAPI plug-in with WLS 5.1.
    In this scenario can we get full functionality of Weblogic Commerce server
    2.0.1 if we wnat to use above setup.
    This is urgent please.
    surya

  • OSX Server mountain lion Run python web app wsgi

    I'm using OSX Server.app of mountain lion. I want to run python web application on my Server.
    How can I add wsgi application to my Web sites?
    I think I must edit /Library/Server/Web/Config/apache2/httpd_wsgi.conf and /Library/Server/Web/Config/apache2/webapps/com.example.mywebapp.plist.
    How should I edit these files?

    Server.app already includes the mod_wsgi module and a default mod_wsgi webapp example at /Library/Server/Web/Data/WebApps/hello.wsgi. It's best to leave these as-is and duplicate the files to add additional sites just in case you mess up the config.
    Decide where to store your site preferably in the Sites folder. You are right about editing the files you mentioned, however copy and rename them to something like httpd_wsgi.maasaamiichii.conf. Edit that file to set your own WSGIScriptAlias, for example
    WSGIScriptAlias /WSGI /Users/maasaamiichii/Sites/WSGI.wsgi
    Also edit the .plist file changing 3 keys to your own stuff to match the .conf file. This file should be edited in XCode and remember the ownership has be root:wheel 644 to run. After adding these files you may need to restart the server and/or Server.app.
    Next edit the file at /private/etc/hosts to include an entry like
    127.0.0.1 maasaamiichii.dev
    This so your browsers know the domain is on your devbox machine.
    With these steps done, open the Server.app and select Websites in the sidebar. Invent a website name, let's say maasaamiichii.dev is your devbox name and maasaamiichii.com is your internet name. Path needs to match the WSGIScriptAlias path above. Select "Advanced Settings" and enable the middle 3 options (htaccess, folder & cgi). In the bottom box select the Python WSGI webapp to run on that site. Save and you are finished. Back on the front window you can see your website by clicking the lower right corner link.
    Please note that the default mod_wsgi as included at
    /Applications/Server.app/Contents/ServerRoot/usr/libexec/apache2/mod_wsgi.so
    runs the included Python version 2.6? and as such is outdated. Python 3 scripts may not run without custom building mod_wsgi. In addition, the included mod_wsgi is built for "embedded mode" and so the example script forgets all data between threads. To make it remember values persistently the module needs to be compiled for "daemon mode". So depending on what your purpose is for this website, the default config may not be enough persistence.

  • InDesign server export .pdf, AND save .indd

    Hey all,
    Just a quick question. Is it possible to script InDesign server to export a .pdf to a certain folder location AND save the original .indd file to another folder location all automatically?
    Cheers,
    Steve.

    Sure. I suppose the typical way to tell it where to put the files would be to pass the paths as parameters to the script and retrieve them with app.scriptArgs.get(). See the SDK for more info.
    Jeff

  • Office Web App Server 2013: cannot edit word document with own WOPI Server

    Hi all,
    I tried to build our own WOPI Server to connect to Office Web App Server 2013 SP1. Viewing documents
    in IE was possible quite easy to achieve. Now it comes to editing.
    When I try to edit a document, I got a german message “Sie verfügen leider nicht über die Berechtigung zum Bearbeiten dieses Dokuments“.
    This means something like „Sorry, you do not have any permission to modify this document”.
    I enabled editing on the OWAS-Server while setup procedure
    (Until now, I only have an InternalUrl but no ExternalUrl.)
    PS C:\ > New-OfficeWebAppsFarm –InternalUrl “https://win-owas...” 
    –CertificateName "win-owas…" –EditingEnabled
    ULS log shows
    BaseDocument says editing is not supported [WebEditingEnabled: True] [SupportsEditing: True] [PinnedUsersRights: Read] 
    So far, I implemented these three REST service methods:
    [OperationContract]
    [WebInvoke
    "GET":"api/wopi/files/{name}?access_token={access_token}"
    "GET":"api/wopi/files/{name}/contents?access_token={access_token}"
    "POST":"api/wopi/files/{name}/contents?access_token={access_token}"
    Office Web App Server was downloaded from “Microsoft Volume Licensing Center”. I installed latest updates from Microsoft.
    Did anybody succeed in writing to own WOPI an can give me some hints?
    Thank you in advance.

    Hi,
    The discovery xml contains many lines. The one for editing docx is:
    <action
    name="edit"
    urlsrc="https://win-owas.cado.camos.de/we/wordeditorframe.aspx?"<ui=UI_LLCC=""&><rs=DC_LLCC=""&><showpagestats=PERFSTATS=""&>"
    ext="docx" requires="locks,cobalt,update"/>
    I am calling it this way:
    <iframe
    src="https://win-owas.cado.camos.de/we/wordeditorframe.aspx?WOPISrc=http%3a%2f%2fpc-ms.cado.camos.de%3a8000%2fWOPI%2fapi%2Fwopi%2Ffiles%2FAbout_Keyboard_Input.docx&access_token=5268690b-19c6-496d-8ae6-b694f8e7bd0c"
    I’m not sure whether or not I implemented "locks,cobalt,update" correct, but I do not see any ‘edit-’network traffic from OWAS-Server to WOPI-Server. So I cannot debug anything. I will (re)check the articles you mentioned.
    Thank you for your help.

  • Using Office Web Apps Server with SharePoint Foundation 2013

    I want to know whether I can configure Office Web Apps server to edit Excel documents on a SharePoint Foundation 2013 site.
    I came across a TechNet article that states that "When used together with SharePoint Server 2013, Office Web Apps Server provides updated versions of Word Web App, Excel Web App, PowerPoint Web App, and OneNote Web App".
    However, later in the same article, it states "If your organization licenses Office 2013 through a Volume Licensing program, you can enable Office Web Apps editing for SharePoint 2013 on-premises" (without mentioning Foundation or Server).

    Hi Lemesnil,
    The Office Web App server should support the Edit licenses for SharePoin Foundation 2013, Office Web App is free to
    download, you can also try installing and configuring in a test environment, see more from the below article applied to SharePoint Foundation 2013.
    http://support.microsoft.com/kb/2886404/en-us
    http://blogs.technet.com/b/speschka/archive/2012/12/31/enabling-licensing-and-editing-for-office-web-apps-in-sharepoint-2013.aspx
    Anohter useful article aobut how to license Office Web App server, you can take a look.
    http://blogs.technet.com/b/volume-licensing/archive/2013/05/22/how-to-license-office-web-apps-server.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • How many enterprise projects we can create in a single project web app site in project server 2013 enterprise?

    I have MS SharePoint 2013 Enterprise and MS Project Server enterprise installed in the same server,
    I have created project web app site 
    can anyone tell me that how many enterprise projects I can create in a single Project web app site
    what is the recommended number of enterprise project per project web app

    As I remember each project site is a sub site in a project Web app site collection.  That means you can have a maximum of 250,000 project sites before you run out of space in the site collection.  That's the boundary for sub sites in a single
    site collection for SharePoint 2013.  Project server doesn't have a specific limit.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • InDesign Server (via SOAP) -- Returning Binary Data: Possible or Not?

    is it possible to return binary data to soap client?
    given: myFile = File('MyFancyJpeg.jpg');
    I want to return either a base64 encoded, or hex result back to the SOAP client. (filetype, above, is totally arbitrary, by the way)
    Is InDesign server capable of something like this?

    I think so. See ww-ids-soap.pdf in the SDK. You can return to the client any value you want; the value is typed in the SOAP response. An example from that pdf of a mixed-type array response:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:IDSP="http://ns.adobe.com/InDesign/soap/">
        <SOAP-ENV:Body>
            <IDSP:RunScriptResponse>
                <errorNumber>0</errorNumber>
                <scriptResult>
                    <data xsi:type="IDSP:List">
                        <item><data xsi:type="xsd:string">1</data></item>
                        <item><data xsi:type="xsd:string">2</data></item>
                        <item><data xsi:type="xsd:long">10</data></item>
                        <item><data xsi:type="xsd:long">12</data></item>
                    </data>
                </scriptResult>
            </IDSP:RunScriptResponse>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Jeff

  • Update InDesign Server CC not possible

    Hi,
    I'm using an InDesign Server CC in Version 9.0 with Windows Server
    When i will update to 9.2 or 9.2.2 i got error message:
    This patch is not suitable for you. Looking over the menu "Help" of the product to check for updates to get a list of available current updates.
    But the InDesign Server is an command-line program without the Help-Menu.
    anyone knows the problem?

    Post here:
    InDesign Server Developers

  • Getting the default font - possible? (default fonts problem in InDesign Server CS5)

    Is there a way to decide whether a font is used as "default font" for a document?
    Or a simple way to see whether a font is used at all?
    The actual problem is that InDesign server (CS5 ver. 7.0.3.533) returns the "default font" along with all other used fonts, when looping through the document.fonts collection. This becomes a problem when the default font is never used in the document, and is also not present. Then the (name of) the default font may also become meddled by a style that does not even exist for that very font.
    This is indicated as a problem in our application... as a missing font, just as the call to InDesign server reports back. But the font (with that style) doesn't even exist.
    Running the same script on an desktop InDesign CS5 (ver 7.0.4) the unused default font of the same document is not returned at all.
    Thanks,
    Andreas

    To get the default font, just check:
    app.activeDocument.textDefaults.appliedFont
    Obviously this didn't solve the problem, since InDesign server has made up a font name that is reported as missing... and it's not equal to the default font. So there is some lack of logic in my previous description.

  • InDesign Server as a reporting service

    Hi, Im looking for help/guidelines regarding InDesign. I'm a software architect working on a line-of-business application that will eventually require printing about 5 hundred thousand personalized report (of about 20 pages each) over a couple of days (and many other smaller jobs), and my client requires that this job be executed by a third party. Think of the document as a fairly standard financial report printed once a year for each participant. The application is built in .net, backed by a sql database. Once a year, the data is mined, computed, and outputed in a format acceptable by the supplier (who is chosen through a public tendering process).
    So from what I've learned thus far, to be complient with most suppliers, I must use some file format like postscript or eps, and to do this, it looks like InDesign Server might be what I'm looking for.
    So here is what I've figured out so far (and where I will need your help if I'm not making sense) :
    - Create a kind of IDML template using InDesign on a desktop computer
    - in our .net application, modify the IDML for each participant to personalize it (a lot of conditional code to remove sections of text, and inject numbers, etc).
    - Send each (or a batch is feasable) to the InDesign Server to prepare for publishing into postscript/eps files
    - and if feasable, also create a PDF of each because we need to keep a digital version of the document on the client's corporate SharePoint (for legal reasons).
    Is this how InDesign should be used? Am I making any sense?
    Thanks in advance for all the answers.

    Hi, JP43.
      For what it's worth, your question is on the boundary between the scripting forum and the general forum.
    So from what I've learned thus far, to be complient with most suppliers, I must use some file format like postscript or eps,
    This seems a bit peculiar. The obvious format for your document output would be PDF. PostScript and EPS seem weird choices, though certainly conceivable (well, I don't think you can have multi-page EPS files, but you can certainly have 20 EPS files and you can have multi-page PostScript files, but they tend to be output-device specific, though they need not really be).
    What is your supplier doing with the file? Are they a printer? A specialty industry auditor? Or something else? If they're a printer, they should be asking for a PDF, I think.
    Though it's also possible what they want is a less final output format that humans can deal with in other applications, such as Microsoft Word. A lot depends on the workflow. Anyhow, back to the main question:
    and to do this, it looks like InDesign Server might be what I'm looking for.
    Note that it's not a requirement that you use InDesign Server, and at $22,000/license, depending on your volumes, it may make sense to just use InDesign Desktop. The standard InDesign EULA doesn't let you drive its automation remotely, but if you have a human being walk up to a computer and start a script that reads 500,000 input files and produces 500,000 output files, I think that is in compliance.
    Replacing your bullets with numbers:
    1. Create a kind of IDML template using InDesign on a desktop computer2. in our .net application, modify the IDML for each participant to personalize it (a lot of conditional code to remove sections of text, and inject numbers, etc).
    3. Send each (or a batch is feasable) to the InDesign Server to prepare for publishing into postscript/eps files
    4. and if feasable, also create a PDF of each because we need to keep a digital version of the document on the client's corporate SharePoint (for legal reasons).
    #2 is definitely one way to do it. If you are comfortable manipulating the IDML XML in .NET, and it's not important for you to leverage InDesign's object model in your conditions (e.g., you do not need to know how many pages InDesign would set a particular table at, and that does not effect your decisions of what objects to place where), then this is fine.
    If your batch data is fairly simple substitutions, you could use InDesign's Data Merge feature. But that's really just a mail merging feature and it sounds like you have large tables of data and it is probably not sufficient.
    The way I would probably implement it is to write code for InDesign's scripting that starts with a template (INDD or IDML or whatever), and then instructions InDesign to place various items in various places, replace/remove conditional items, etc. This allows you to leverage InDesign's knowledge of how the page is laid out and to make layout-continent adjustments in your script. If you tried to do this in IDML, you would have to replicate InDesign's layout engine in your software which is essentially infeasable and at which point you might as well throw InDesign out the window and just use something like iText to produce a PDF directly.
    That said, #'s 1,3 and 4 are all trivial.

Maybe you are looking for

  • New-SPWOPIBinding throws "WARNING: The server did not respond".

    Hi,     I have installed the office web apps in another server. Which is in another domain, sharepoint server is in another domain. Both were in various Lan. I am now trying to configure the office web apps in sharepoint. When i enter the command New

  • Regarding BW topics

    Hello Gurus!!! Presently I am into BW since 1month. I would be working on BW archiving. I finished with basics of BW from Fu Fu . I have practically implemented extraction of data from flat files,R/3 etc etc. Cud U all please suggest me which concept

  • HIDING COLUMNS ISSUE

    Hi Gurus, Experts, Friends, i need help from you in this scenario. we have a "4 dayprocess" where it will be done every month and by this we get ESTIMATE values for the very next month what we run up to. The values what we actually get in the particu

  • Open external link in new window

    Hi, I am designing a sort of useful links page on Dreamweaver, where I need to make a text link to another website. I know how to link to a different website, but my problem is that I don't know how to make the new site open in a new window rather th

  • How to wipe/overwrite corrupted xmp/rdf in jpeg/tiff file

    Is it possible to wipe/overwrite corrupted (incomplete, wrong format, etc) xmp data in the file using XMP SDK only? I mean, is there any way to wipe/overwrite corrupted xmp packet data if I got kXMPErr_BadXMP, kXMPErr_BadParse, kXMPErr_BadXML, kXMPEr