Executing iDocScript from Java – Page Merger

Sep 16, 2008

There are several ways to execute iDocScript from Java, but in this quick example we will use a PageMerger object. There are several ways to get ahold of a PageMerger object. If you are executing in a context where a service object is readily available you may be able to get a PageMerger object reference with code like this:

PageMerger pm = m_service.m_pageMerger;

If that doesn’t work for you I would try something like:

PageMerger pm = PageMerger(databinder, executioncontext);

Now that you have your merger object you can execute all kinds of iDocScript code, an example of which might be:

© 2019 Jason Stortz