Export PDF with beaches by using the user interface

Hello

Request:

PDF export with all or Pages in line with the concept of the user interface.

We need user interface with the concept of dialogue or the Palette.

So far,.

myDlg = new Window('palette', 'XXX Export Option');
myDlg.orientation = 'column';
myDlg.alignment = 'left';
//add drop-down
myDlg.DDgroup = myDlg.add('group');

var DialGroup = myDlg.DDgroup = myDlg.add('group');
DialGroup.add("statictext", undefined, "Choose Page Nos.");
DialGroup.orientation = 'column';
DialGroup.alignment = 'left';
var myRBAll = DialGroup.add('radiobutton', undefined, "All "); //1


var myRBRange = myDlg.DDgroup.add('radiobutton', undefined, "Range");   //2
var myList = myDlg.DDgroup.add('edittext');
myList.minimumSize.width = 150;
myDlg.DDgroup.orientation = 'row';

myDlg.show();


with(app.pdfExportPreferences){
pageRange = mypageRange;
}

var myPDFFilePath = File("~/Desktop/abc.pdf")
app.activeDocument.exportFile ( ExportFormat.pdfType, myPDFFilePath, false);


myRBAll.addEventListener('click', function(event) {
});

myRBRange.addEventListener('click', function(event) {
    myList.enableBehavior = true;
////~ alert("Clicked RadioButton: " + this.text + "\nValue: " + event.target.value);
});

Screen Shot 2015-10-13 at 13.44.01.png

Thanks in advance

Siraj

Try this,

var doc = app.activeDocument;

var myPDFFilePath = File("~/Desktop/abc.pdf")

If (myRBRange.value)

{

app.pdfExportPreferences.pageRange = myList.text;

}

on the other

{

app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;

}

doc.exportFile (ExportFormat.PDF_TYPE, myPDFFilePath, false);

Tags: InDesign

Similar Questions

  • Is it possible to add a hard drive to a VM running via a script or a program without using the user interface

    I'll try to ask this question clearly, but I ask that read you it carefully, because I can't do a great job of setting out clearly what I'm looking for.

    I know how to create a virtual disk in a batch file or a script.  I know how to have a running virtual machine to detect a newly added hard drive and format it in Linux, BACK, and NetWare. I do not have scripted this part, but I did it manually by adding records via the UI and then by doing the steps manually to make the operating system to detect and format the newly added drive. In each case, these steps are scriptable with the exception of the addition of the drive in the user interface.

    The only way I know to add a new hard disk to a virtual computer running is through the user interface. I don't know in a way that can contain script (for example vmrun or an API call) to make.

    I guess that maybe I can have the virtual machine to go into sleep mode and then add the HDD in the vmx file while the machine is in standby mode, then put the computer to sleep mode, although I have not tested this.

    My question is, ' can a virtual drive be added to a virtual machine running without using the user interface and without put the machine to sleep, or in other words in a script any?

    Have you tried VI SDK?

  • deployment of a BPM Application large Oracle with several projects of the user interface

    Hello world
    I'm working on a large application with Oracle BPM 11.1.1.5.0.

    I use JDeveoper 11.1.1.5.0 to build the application.
    The application has many tasks user with a lot of the UI (one for each task of the user).

    My problem is, whenever I make a small change in the project, I need to deploy this, which includes a master project and five or six projects UI (for now) for tasks of the user.
    As demand grows, I'm sure that this will certainly become a problem.

    So my question is if I do this the good sense? or should there be a more effective way?

    Thanks in advance

    Published by: luke on April 17, 2012 12:16 AM

    Hi Luke
    1. as a general rule, there is NO need to have a user interface project for an individual task. As initiator, approver, reviewer, LegalApprover etc etc, you have like 10 tasks (.task files). You can have just a single project of TaskForms UI and have taskDetails.jspx generated for each of these tasks. This is appropriately.

    2. any Application workflow must have only 2 deployers. Deploy resources are for real Workflow stuff that will have the main BPEL or process, BPM, human tasks etc. Basically, everything that goes into the workflow project. And another official of the deployment is that the REST of things means that the UI TaskForms project and other project support as useful projects, WebServices, EJB projects (if you have Web services). All this will be deployed as a SINGLE EAR.

    Lets take an example JDeveloper IDE point of view.
    1. application Name: SalesOrderApp
    2 workflow project name: SalesProcess (he is a a project jdeveloper project SOA or BPM Project type and has all human tasks, bpels, process bpm, rules etc.).
    3 interface user Project: SalesTaskForms (it is a form generated automatically for the first task you choose. Then for the rest of the tasks you can use this same project, to generate jspx for all others. WORK files. VIEW documents online on how to do it. I'll see if I can compile this list of URLS for you).
    3. support the EJB projects: MyEJBProject1 (some EJB project that connects to some specific to your back-end database project)
    4. support another Service EJB project: MyExtServiceProject1 (as another project EJB that uses data from an external source)
    5. some WebService project: SalesCreditCardValidationWebService (some WebService project to be deployed as. WAR file that performs a service).

    Try to apply the Concepts of SOA for each Service your application needs. Instead of putting all the EJBs and everying in one giant project, try to split their need logically commercial/sage and geenrate separate projects so that they can maintain as it is to other projects and other applications.

    Anyway, coming back, in the example above, you should have deployment just 2: 1 is the JAR file of SCA in the Workflow and another complete of the EAR file.
    (a) for the workflow project, right-click and generate a deployment profile to deploy all the workflow and NOT on the other projects of the user interface.
    (b) for each project individual genereate a profile of deployment such as MyEJBProj1, MyEJBProj2, MyWebService1, etc etc.
    (c) for TaskForms project, generate a deployment as SalesTaskForms profile. It is a WAR file.
    (d) at the level of the Application, create a new profile of deployment of the EAR type and now assemble all the projects in this EAR, with the exception of the Workflow project.

    First of all, you deploy file JAR of SCA of the Workflow. You need to redeploy this again only when you make changes to the workflow, humantasks etc etc.
    Deploy the full blown EAR file that has all the stuff (EJB JARs, TaskForm WARs, WebService wars etc.).

    At any time, you change your code taskforms or redeploy a java, ejb, EAR file.

    You should have a POT and an EAR to deploy at the end of the day. Infact this is how it should go into UAT, and production. They may not have many pots, multiple wars deployed. The reason why we have separated Workflow SCA Jar file is, because the workflow will not change frequently. And also older versions of SOA/BPM (before 11.5 FP) have a huge disadvantage. Whenever we deploy a workflow project, it will make existing processes VITIATED, unless you deploy a different version. This isn't a problem anymore for 11.5 + FP (Feature Pack applied). Therefore, be careful when you redeploy workflow project.

    Thank you
    Ravi Jegga

  • BlackBerry app with no icon of the user interface

    Hi ppl,

    I was digging around for him for some time. I want to have a blackberry application that should be invisible to the user. This application will log the activities of the user as call made, n/o switches etc. and send them to some dedicated url.

    I want this app to have no icon on blackberry Ribbon and this app should not be easily installable.

    I tried many things, but the I'm not able to do. Just what I always do have an icon on blackberry.

    Can you guys suggest something to this subject.

    Thank you

    I don't think Matty is here... It does not constitute a request, it can be UiApplication, it will not appear in the Ribbon if it is defined in the module system... The only thing is it will appear in the Application Switch for this, you can override acceptsForeground to return false ...

    But still, I suggest to extend the Application rather than UiApplication...

    See you soon...

  • using the user interface

    Hi, I have a RechTextField and an EditField.

    I put like this:

            g_Output = new RichTextField( Field.FIELD_TOP );
            screen.add(g_Output);
    
            screen.add( new SeparatorField() );
    
            g_Input = new EditField( Field.FIELD_BOTTOM );
            g_Input.setMaxSize(1024);
            screen.add(g_Input);
    

    But I need that "EditField" be static on one line at the bottom of the screen. But still show.

    I have now on the layout, but not with Java. with Qt a Yes from WxWidgets, but is in C++.

    If anyone can help me.

    If your screen is a screen, you can achieve using setStatus (...)

  • Impressive transformation slow due to the updating of the user interface

    Hello

    I feel a huge slow down in my test as engine

    I update the display after each test. It consists of a rather

    "simple table" with a subtle change of color and bold

    to indicate the failure or success of the test:

    I have also tried several things to determine what routine was

    make the program almost crawling like a snail, here's my

    results:

    No UI refresh: 0m48s (same as Teststand with no updates of the user interface)

    The discount but no page table switch: 1m06s

    Bay of refreshment and switch page: 1m26s

    There are 314 tests, up to 314 redraw and possibly

    switch page 314 to reposition the view. Which gives the

    following user interface refresh costs:

    Update of the table: 18 years/314 = 57ms (replacing just a single line, Center to top)

    Switch to page: 20 s/314 = 64ms (bottom right corner)

    Is this really the case? Is there a way to make the refresh of the user interface

    faster? Create two separate loops/threads, one to make

    the test, one for updating the UI asynchronously?

    I understood for an overall picture about different

    widgets, but here I'm 'just' display of channels...

    David Koch

    Well, multi-listbox control is a problem if your change causes access to the muliple property node. For each property node LabVIEW normally does a refresh of the user interface which is very quickly. Fortunately, there is a fairly easy way to fix this.

    Use a node of property for the current VI (just drop a property node and change its class type VI Server-> VI reference) to get the reference of the Panel. Then use another property node connected to your reference of the Panel and select update from the Panel to postpone. Set this value to true before your Listbox (and any other updated user interface) and set the value to false then.

  • How to use the user with event loop event

    Hello

    I want to communicate between 2 VI, so I have a global variable (boolean) who gives the order to an event tool to run. The problem comes from the fact that event loop accepts no global variable, I found on the forum that I can use the user event. Of course, the second VI works normally when I push the button (boolean) in there to run the event loop. Please can someone explain me how to do this, I am a chemist.

    Thank you.

    You enter the receiver structure of event for the event you want to receive.

    To do this in two screws, you will have to share the user between them event reference.

  • How to use the Shell of the user interface with multiple applications (ear)

    I use 11.1.1.6 JDeveloper.

    I want to modularize the functionality in applications (ears) and use the Shell of the user interface as a navigation mechanism between applications and single entry.

    Is this good?

    What is the use of Shell of the user interface best practices.

    What about security (2 AA)? Security of the ADF?

    Thank you

    Hi user,

    You can use the shared library ADF function if you would like more information

    http://andrejusb.blogspot.AE/2010/07/deploying-ADF-applications-as-shared.html

    use the adf security

  • VIX file in the user interface designer receives the data from the Web service application that communicates with the SQL server database

    I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.

    This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.

    Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?

    There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")

    Please help me ASAP!

    Thank you

    Ivan

    I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.

    It's important to create the system DSN if you want your VI of web service to communicate with the database.

    PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.

  • Slow response from the user interface with acquisition of data of type long time

    Hi all

    I have a question to ask more out of curiosity than necessity right now. I've built a program that acquires data from the accelerometer and the Treaty in a number of ways: filtering, FFT, FRFS, things like that, but the answer of the UI is still slow, because I need a resolution of frequency of 0.2 Hz for my data domain, which means that the sample acquisition time is 5s and all this awaits before execution.

    My question is this: is there a way to completely isolate the user interface of data acquisition so that it responds immediately?

    I tried a design model of producer consumer with queues, but found everything to be always waiting for samples to be taken. Maybe it was exactly as I did.

    Thank you

    Phil

    If you need to sample for 5 seconds in order to have enough data to analyze, so unless you can "predict the future" and "knowing" the five seconds of data, simply wait for the data that arrives.  Using parallel loops of producer-consumer will allow data acquisition to proceed (for the next 5 seconds of data) while you do the analysis, but you still have to wait for the data to be analyzed.

    Note that the previous paragraph assumes you are collecting data in 5 seconds 'chunks' and analyze each "chunk" (independent) on arrival.  You could also do something like having a "second 5 sliding window" which moves, say, a second at a time, giving your FFT a finer resolution of 'time' (at the expense of their independence).  This would be a (slight) change in your loop of producer (you want to taste in 1 second pieces, accumulate 5 these pieces) and the consumption loop (start analyzing, spewing a FFT every second, while replacing the older "chunk" with the most recent - a queue with loss can do for you).

    Bob Schor

  • Need help with this code to update the user interface example

    I'm triying to understand the differences between the three methods to manage UI interactions.
    I'm really confused with these three terms when triying them figure out in a real case.
    Basically, I know that I should use invokeLater, invokeAndWat, or getEventLock() to avoid
    This exception: java.lang.illegalStateException: engine access UI without holding the lock on the event

    The code below illustrates the function of the invokeAndWait method, but if I replace it with
    invokeLater or getEventLock() the program will work exactly the same way.
    Could you please change the code to show the differences between the three
    methods of updating the user interface?

    / public final class HelloWorldMainScreen extends form {}

    private LabelField labelField;
    public HelloWorldMainScreen() {}
    labelField = new LabelField ("Hello World");
    Add (labelField);
    Thread MainScreenUpdaterThread = new MainScreenUpdaterThread (this);
    thread. Start();
    }

    {} public void appendLabelText (String text)
    labelField.setText(labelField.getText()+"\n"+text);
    }

    }

    SerializableAttribute public class MainScreenUpdaterThread extends Thread {}
    HelloWorldMainScreen screen;

    public MainScreenUpdaterThread (screen HelloWorldMainScreen) {}
    this.mainScreen = screen;
    }

    public void run() {}
    for (int i = 0; i)< 10;="" i++)="">
    try {}
    Thread.Sleep (5000);
    } catch (InterruptedException ex) {};
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    mainScreen.appendLabelText ("Update");
    }
    });

    }
    }
    }

    These three concepts are very confusing for a lot from people so all explanatory source code
    describing their functions will be highly useful for everyone, I think.

    Thanks in advance!

    With respect to the effect, there is no difference between methods.  The difference is the way in which the result is achieved.  So we can't change the code to show you the difference.

    As we are unable to demonstrate the difference, you have to do with an explanation.  To understand the explanation, you'll need to understand the thread of events, so if you have not already, please consider this:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    If the three options are differentiated by the processing order:

    (a) invokeLater executes the update on the thread of events.  The transformation takes place at a later stage and the code which is in order after the invokeLater will actually run before the code within the invokeLater.

    (b) invokeAndWait also manages the update on the thread of events, which means that all other events that await on the thread of events will be run before this code.  But any code after the invokeAndWait will not be executed.

    (c) the synchronized option, like invokeAndWait, runs the update of the UI before moving on to the following code.  The difference is that the code to run on the event Thread is not executed before code in the synchronized block.

    If this is meaningless, so that probably does not matter too much.  in general, you should use invokeLater, except if you need to update the user interface occur in the order with your background processing.  If so, use invokeAndWait. It has synced are very few occasions where you must use the block, and it should be very small updates to the user interface and you should understand the implications this could have on the wire events.

  • a reminder of the user interface will have a function with arguments?

    some ScriptUI quirks... I have a function (cut in this example) that I can call very well by itself of the extendScript window or if I set directly to the onClick callback, but when I try and call the function from a reminder and analyze arguments, the onClick is not working and the service runs once when the script runs first? what I am doing wrong?

    It works using the extend script window

    Nudge (23,77)


    function nudge (offset, distance) {}

    var L = app.project.activeItem.selectedLayers [0];

    L.startTime = (shift * distance);

    Alert ("Done")

    }

    This works when the button is clicked in the user interface


    myButton.onClick = function() {

    var L = app.project.activeItem.selectedLayers [0];

    L.startTime = (23 * 77);

    alert("done")

    }

    This also works when the button is clicked in the user interface


    myButton.onClick = boost


    function nudge() {

    var L = app.project.activeItem.selectedLayers [0];

    L.startTime = (23 * 77);

    alert("done")

    }

    but when I try and pass arguments (kind of functions) that does not


    myButton.onClick = nudge (23,77)


    function nudge (offset, distance) {}

    var L = app.project.activeItem.selectedLayers [0];

    L.startTime = (shift * distance);

    Alert ("Done")

    }

    OK, in the case where someone is interested... the solution with the permission of Mr. Lloyd Alvarez is to nest the function in another function call, why, I have no idea, but it works a treat...

    myButton.onClick = function() {nudge (23,77)}

    function nudge (offset, distance) {}

    var L = app.project.activeItem.selectedLayers [0];

    L.startTime = (shift * distance);

    Alert ("Done")

    }

  • I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEAS

    I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEASE PROVIDE ME WITH A

    Deleted file recovery can recover incomplete files, i.e. the part of these files may be missing.  Recover deleted files is much more reliable if recovery of a backup, instead of using recovery software.

    These things depend on the operating system and the file system.

    One thing, you can see: open one of these files damaged with a text editor, and then make sure that the constant % PDF is somewhere in the first 1024 bytes.

    PS please do not post ALL uppercase; It is very difficult to read!

  • How to integrate a pdf document in a pdf existing file so that the user double-clicks the pdf object in the PDF and openness? I looked everywhere on various forums and tried to spare part - but still does not. Thank you

    I have tried different methods but in vain. I have a pdf document and in the pdf, I want to incorporate some pdf documents so that all the user has to do is double click on the pdf inside pdf file object and it will open in a new window. I tried to use attachments for making and connecting... but nothing helps. Someone knows how to do? I use Acrobat Pro Version 11. Thank you

    The common MS Office applications "embed" functionality is not applicable to PDF (for the why and that's why PDFS make uncomfortable and read the ISO standard for PDF - ISO 32000-1: 2008).

    You can insert pages from other PDF files in any given PDF.

    You can attach files to formats supported in PDF format (of course a PDF is supported).

    You can not 'embed '. So, nothing is broken.

    Be well...

  • Try to update the user interface with another thread

    Hello

    Start a class JavaFX from another application, and then I want to change the UI of it components. I tried to use Platform.runLater to do.

    But the GUI crashes at the start (does not display anything) for the first 5 seconds (sleep time) changes and shows.

    I want to display the GUI at first, and then after 5 seconds the GUI should be updated with the message, but with the code it hangs just first and screens below everything after 5 seconds.

    Here sampleGUI is a an application javafx with inside text fields.

    + / public class StartGame extends Application {+
    +@Override+
    + public void start (steps) riser Exception {+
    final sampleGUI gui = new sampeGUI();
    GUI. Start (training);

    + Platform.runLater (new Runnable() {+)
    +@Override+
    + public void run() {+
    + try {+
    System.out.println ("sleep now...");
    Thread.Sleep (5000);
    System.out.println ("sleep above!");
    gui.updateText ("new message");
    +} catch (InterruptedException ex) {+
    System.out.println ("exception" ex); +
    +}+
    +}+
    +});+
    +}+
    +}+
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
       // ...
      }
    });
    

    causes the run method of the executable to run on the Thread of the FX Application. Since you put Thread.sleep (5000) inside the run method of your executable, sleep occurs on the Thread of the FX Application.

    The call to runLater (...) can be called from any thread, including the Thread of Application FX.

    So, if you are not in the FX Application thread, you want to:

    // any long-running task, for example
    System.out.println("Sleeping now");
    Thread.sleep(5000);
    System.out.println("Sleep over");
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
        // update UI:
        gui.updateText("New Message");
      }
    });
    

    If you are on the thread of the Application of FX, which is the case in your Application.start (...) method, you must create a new thread to run your code of long duration. You can do this "manually", creating a Thread and a workable for it to run, but it is probably best to use the simultaneity of JavaFX API, which has many hooks useful for updating the user interface on the Thread of the FX Application.

    In this case, the code would look like this:

    public class StartGame extends Application {
      @Override
      public void start(Stage stage) throws Exception {
        final SampleGUI gui = new SampleGUI();
        gui.start();
        final Task waitingTask = new Task() {
          @Override
          public String call() throws Exception {
            System.out.println("Sleeping");
            Thread.sleep(5000);
            System.out.println("Sleep over!");
            return "New Message" ;
          }
        };
    
        waitingTask.setOnSucceeded(new EventHandler() {
          @Override
          public void handle(WorkerStateEvent event) {
            gui.updateMessage(waitingTask.getValue());
          }
        });
    
        ExecutorService executor = Executors.newSingleThreadExecutor();
        executor.submit(waitingTask);
      }
    }
    

    There are (probably of dozens of) other ways to use a task to do. See the API documentation [url http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html] for the task for more information.

Maybe you are looking for

  • "' I want that the old" see all bookmarks "so that I can copy / paste

    In my bookmark menu folders for the different categories of bookmarks and favorites that have not been categorized there. You people has changed the user interface. I want to 'see all bookmarks' before I can move the bookmarks not classified in their

  • I do not understand the iTunes libraries.

    Can someone please explain how to use the libraries of iTunes for me? I have a folder music on my mac with all the 23 GB of my music from my old computer inside. But iTunes makes a new folder named "iTunes 1" and stuck 15 GB of my music in there. Not

  • (8.1 to Windows 64-bit) of J112tx HP ENVY beats audio volume varies automatically

    Hey,. I recently bought the HP ENVY J112TX and there is a problem with the audio beats in that volume continues to change (decrease and increase) when playing a song.  I downloaded the latest IDT drivers from the HP support Web site, which fixed the

  • HP Pavilion dv7 Freeze random/Lockup

    My computer freezes randomly. What is happening is that I'm doing something that I do as usual check Facebook or some other normal Web site and it just randomly freezes. I have no idea what is the cause, and he never blue screens. What happens is: Al

  • Link to typedef enum?

    Hey Gang, I have a few enum controls that will use all the same choices.  It would be wastful to create a typedef for each of them.  So far, I have not found a way to change what typedef enum is connected to. Someone would clue me on how to connect a