Acrobat Pro XI Java: Removal of Page is very slow

Hello world

Here is a set of code that I had working in Acrobat XI to pull up a popup window which, when the user selects Yes, is able to search a keyword hidden on some pages in the PDF file and then delete the corresponding pages.  It works, but the problem is that it takes almost a minute to treat.  I'd love to someone entered for what might slow the process down.  I am very new to Java specific suggestions would be greatly appreciated!

Thank you in advance,

Christian

CMSG var = "continues with the current action will delete the TASKS application and its data."  This may take a few minutes to complete. « ;

CMSG += ' \n\nDo you want to continue?

var nRtn = app.alert (GSMC, 2, 2, 'Question Alert Box');

if(nRtn == 4)

{/ / A yes answer}

Code to do the thing you can do on a Yes

Console.println ("the answer is Yes");

for (var p = this.numPages - 1; p > 0; p--) {}

for (var n = 0; n < this.getPageNumWords (p); n ++) {}

If (this.getPageNthWord (p, n) == 'CHESDELETE') {}

this.deletePages (p);

break;

}

}

}

}

Another yew (nRtn is 3)

{//No response

Console.println ("the answer is no");

}

on the other

{//Unknown response

Console.println ("the response was something other than yes/no:"+ nRtn ");

}

Hello world

After review of this topic, I realized a solution.  So I hope that someone in my situation can benefit in the future!

* A brief summary, I had an interactive PDF application where multiple pages are "generated" when some options (check boxes) are selected.  When the items are deselected, I needed a way to get these pages on the document.  Research of the approach of the nth Word worked, but it is become very slow, especially as the PDF has grown larger.  The approach below you will remove the pages having engineered very quickly a document based on a button/field value and can be adjusted accordingly.

As follows:

  1. Somewhere in the document (not on the template, unless you make sure that the domain names are static when created) create a field text and format to store the numbers with decimal places to zero .  It's your container (so, for example, I named it CHES container).
  2. Then go into the model that needs to be created at a later date. In the page toolbar, right click on your model page and go to properties > Actions
  3. For select trigger, choose "Open Page"; For select Action, choose "Run a Java Script"
  4. Paste and modify the following script:

-----------------------------------------

var p = this.pageNum;

Console.println (p);

this.getField("CHES_Container").value = p;

-----------------------------------------

5. This action will say your model page, when, created to identify its own page number and place it in the "container", which once again, for me, is called "CHES container.

NOTE: Check to be sure your container shows a number, and that it is accurate.  Later, you can hide this field, but for now, it is useful to find errors that may occur.

6. click OK and click on the button (checkbox etc.) that will trigger the removal of these specific pages.

7. go in field properties > Actions.  For select trigger choose "Mouse Up"; For select Action, choose "Run a Java Script"

8 paste and modify the following script:

-----------------------------------------

var p = this.getField("CHES_Container").value;

this.deletePages ({start: p, nEnd: p + 2});

-----------------------------------------

NOTE: nEnd: p + 2 adds just 2 pages to the start range.  So just change accordingly based upon the number of pages given birth there are requiring deletion.

As a tip, my relaxation complete box script was:

-----------------------------------------

Var SHEETS = this.getField ("CHES Check");

var CHES1 = this.getTemplate ("CHES Pg1");

var CHES2 = this.getTemplate ("CHES Pg2");

var CHES3 = this.getTemplate ("CHES Pg3");

var p = this.getField("CHES_Container").value;

If (ches. Value is "Yes")

{

CHES1. Spawn();

CHES2. Spawn();

CHES3. Spawn();

}

on the other

{

this.deletePages ({start: p, nEnd: p + 2});

}

-----------------------------------------

Please let me know if I missed something or if you have any questions!  Thanks again to everyone for your feedback and patience.

Tags: Acrobat

Similar Questions

  • I've updated to Adobe Pro and when I try to use ADOBE Acrobat Pro DC to extract certain pages in the right part of the screen it apears a box more information, I press it and it takes me to the adobe page to buy the same package that Im using again and I

    I've updated to Adobe Pro and when I try to use ADOBE Acrobat Pro DC to extract certain pages in the right part of the screen it apears

    When this happens, check the TITLE bar (the top of the document). What should I know about the name of the product - Acrobat Reader or Acrobat Pro (or something else)?

  • I want to cancel my membership for Acrobat Pro D C.  You all make it very difficult to do.

    How should I do to cancel a membership?  I want to cancel my membership for Acrobat Pro DC.

    Hi Robert,.

    Please refer to the procedure described in this document KB Contact Customer Care. to cancel the subscription.

    Kind regards

    Nicos

  • Page Web VERY slow to load

    I created a Web site in Dreamweaver CS3, but the gallery page is loading very slowly.  I think it's from the images, but they want to keep all these pictures and this size.  I used IrfanView to compress images, but for me, the page still loads slow.  Here is the page web http://www.kmmcement.com/gallery.html.  Is there anything else I can do to help load web page faster?  Thank you!

    I think you are missing the point.

    You must resize every image in fact full size to make a smaller image that will be your vignette. Then compress.

    for example,http://www.kmmcement.com/gallery/DSC00486.JPG is 3264px x 2448px.

    1. you must resize the image in Irfanview to 240px x 216px then compress him.

    2. then insert the miniature 216px x 240px into your page. (Not the image full size that takes too long to load)

    3. then link each thumbnail with its version fullsize (3264 px x 2448px which is still too big for the size of a Web page)

    4. the same steps are required for all images in full screen.

  • LDAP authentication integrated and now BAM start page is very slow to load

    Hi, all ~

    I have a new installation of BAM with the 10.1.3.4 10.1.3.3 applied patch.

    I went through the installation of BAM and the note of LDAP integration technique guide and have been able to successfully integrate BAM with our LDAP, where "successful" means that I am able to provide my own LDAP credentials and connect to BAM.

    However, BAM splash screen now always somewhere takes on the order of 1-2 minutes to load... so I guess I am wondering if there is a common cause for this kind of mistake?

    Suggestions for things to check would be appreciated.

    Thank you

    -Nathan

    For what it's worth, the solution in our case was to separate the BAM (10g) of LDAP.

    User administration becomes a little more manual process in this case, but BAM pages to load almost instantly to users now, while prior to some users, should be as much as 10 minutes for a page to load as a result of their record in.

    Another advantage of the decoupling of LDAP is that IIS is able to make the connection integrated Windows for users, which means that users must provide a login and a password longer.

    The "witch hunt" that was encountered had to do with IIS kingdoms and create connections to the BAM server after the decoupling in JDeveloper. In our tests, under IIS-> Web Sites-> default Web Site-> properties-> Directory Security (tab)-> "authentication and access control" Edit button, the following must be specified:
    Check only "Login Windows integrated" and "Basic authentication".
    Specify a field 'default' by pressing the selection button and choosing an appropriate area
    From there, your JDeveloper BAM connection, be sure to include the domain selected in the properties of your connection.

    -Nathan

  • URGENT: OAF Page runs very slow in the Production Instance

    Hi all

    page works fine in the instance of Test and Development Forum (it showing the Data Quickly).


    But in Production it is running very slowly.



    It is urgent.please help me as soon as possible


    Thanks and greetings
    Vinay

    Hi vinay,

    Please turn on the option to track on your page via the link of Diagnostics.
    The trace, you can find what query is the cause of the performance problem.

    Steps to get the link Diagnostics Trace
    --------------------------------------------------

    View the journal
    Set Trace level

    Select "Set Trace Level.
    Click OK.
    It displays a page with a set of options.

    Disable the Trace
    Trace (regular)
    Draw with links
    Draw with expected
    Plot with ties and expected

    Choose the Trace with dregs
    Click Save.

    Run the self-service process.
    This will put the sql trace in the usual log directory.

    Stop the Trace.
    Select the icon for diagnosis.
    Click the option: Set Trace level
    Click OK
    Letter: Disable Trace

    To determine where the raw trace file.
    From SQLPlus:
    SELECT value
    THE PARAMETER $ v
    WHERE name = 'user_dump_dest.

    You will need to perform a procedure TKPROF on the raw file.

    TKPROF ora53269.trc ora53269.prf EXPLAIN = apps/apps SORT = (PRSDSK, EXEDSK, FCHDSK)

    Thank you
    Prasanna

  • What do I need to install Adobe Acrobat Pro to edit PDF files?

    I'm subscribed to Adobe PDF Pack.

    I want the ability to drag-and - drop to insert, remove, and reorder pages. So it appears I need Adobe Acrobat Pro. Is this correct?

    If I've updated to Adobe Acrobat Pro, should I install something on my PC? Where can I I simply drag-and - drop to insert, remove, and reorder pages online (in my browser) with the same login that I use now for Adobe PDF Pack?

    I don't want to install anything. Where my question.

    Thank you!

    Bob

    Hi robertm33760217,

    Yes, you would need Adobe Acrobat Pro to insert, remove, and reorder pages.

    Yes, you need to install the software on your computer as Acrobat software Acrobat will not work with your browser.

    You have any other question?

    Kind regards

    Rahul

  • Acrobat Standard installation... I have a serial number but you can install acrobat pro. Where can I download Standard?

    Where can I find the download of Acrobat Standard XI?  Acrobat Pro only comes in my research

    Hi bettys18479351,

    You can download Acrobat Pro and Standard from this page: download Acrobat products | Standard, Pro | XI, X.

    But please note that Acrobat Standard is only available for Windows.

    Best,

    Sara

  • Scrolling Web page very slow on the second monitor

    I have two monitors. When I move the window of firefox for the second monitor - scrolling of web pages is very slow. Sometimes he computer freeze (I can't move the mouse cursor).
    I checked the other applications such as MS Word, Chrome.
    This problem is only firefox problem.

    This problem apears when the part of the firefox window shows on the second monitor (or even 50 pixels)

    Hey, I had the same problem and I solved it:
    1. - in the Firefox menu, display the Tools/Options.
    2. - unselect the checkbox "use hardware acceleration when available.
    This should work better now. Apparently the hardware acceleration makes the problems only when the windows of Firefox appears in a non-primary screen (don't know why). I suppose you know, but if you want to change your primary monitor you can do it from settings (right click on the desktop, then properties).
    Good luck!

  • Can split ONE PDF page down to the middle in TWO new pages (XI of Acrobat Pro), be done?

    I scan a lot of pages of books on my work, and I have to be able to cut the individual PDF files, in order to get a book on each PDF page.

    I'm too lazy to scan each page individually-Acrobat Pro XI do?

    It should... I mean, it s very expencive :-o

    There is no built-in feature that allows you to do it directly in Acrobat. You can use the harvest tool Pages to remove (or rather, hide) half of the page, but this is a manual process.

    Alternatively, you can use a script like this, I developed: Scripts custom Adobe: Acrobat - Pages to Split into 2 parts and combine into a new file

  • Cannot delete pages with Acrobat Pro DC

    Hello

    I can't remove the pages of a PDF with Acrobat Pro DC

    I checked the properties and full control is thus authorized to change. I can actually change the text within the document, but I don't see how to remove some pages. The Edit function is accessible but not delete it.

    I'd be in a specific mode to delete the pages and if so, how access?

    Thank you

    Michael

    Process of

    1 tools > organize Pages

    2. select relevant thumbnails page (s) you want to delete

    3. click on the trash icon.

    4. in the 'Adobe Acrobat' dialog box message that says "are you sure you want to remove the page from the document?", click on the OK button.

    5. now, you can save the file or to continue working with the file.

  • How to resize a page file of pdf with Acrobat Pro?

    Acrobat Pro, how can you resize a page to PDF (21.38 x 26.75 mm ") into a single measure 6" x 9 ", which will be submitted as the trim size? Is there a feature that allows it to be? How does set an all printing options in the print Application dialog box to adjust the size of a page of custom file?

    Pages wide you need to tax a plugin or script in Acrobat.

    Alternatively, you can print them on the Adobe PDF printer using the desired page size, well that which will remove all the file contains metadata (bookmarks, fields, comments, etc.).

  • Can I remove crop with Adobe Acrobat Pro XI benchmarks

    Can I remove crop marks using Adobe Acrobat Pro XI?

    Yes. You can use the pages culture feature, then sanitation to remove data outside of the cropped region.

    Mylenium

  • I am running Acrobat Pro DC under MacOsSierra and when I want to scan a dokument I can´t choose the option request to the digitization of additional pages. Why?

    I am running Acrobat Pro DC under MacOsSierra and when I want to scan a dokument I can´t choose the option request to the digitization of additional pages. Why?

    Lars Andrae

    If I'm not mistaken you use ICA scanner. This 'Still Prompt pages' option is not available for ICA scans from now. But we are working on that, and will soon be available. I'll put you once its available.

    For now please try the TWAIN driver.

    Thank you.

  • How to create the Adobe Acrobat Pro DC page template?

    I'm looking to duplicate a dynamic page based on the value of a text box. For example if the text box has the number 3 as a value, there will be 3 copies of this page. I suppose that this would be using page templates, but I can't find a way to create them in Adobe Acrobat Pro ms. If this is not possible, is there another way to achieve what I want?

    It's hidden: Tools > organize Pages > more (drop down menu) > Page templates

    In the future if you have trouble finding something, select Tools and in the search box, type what you are looking for and he should be among the results.

Maybe you are looking for

  • Satellite Pro A30 replace hard drive

    I have an A30 Pro Satellite, which is out of warranty which has developed a hard disk failure. I looked below can all be deleted components i.e. PCMCIA card Bay, memory, Processor heatsink heat bay. but can't find how to access the hard drive. Please

  • x 360 s102nu 13: 13-s102nu replacement of Ram and SSD

    I can't find the maximum installable Ram or SSD specification for this model. D and I know if I lose my warranty if I do the replacement. Help, please.

  • The computer hangs loading microsoft updaet

    Have a Dell Windows Vista laptop. at startup, it is trying to load the microsoft updates, nothing happens and then it stops and restarts again, enter an endless loop. I can't find microsoft Dell disk and when I try a Windows 7 recovery disk, he compl

  • Defective Pavillion dv2000

    HP has sold thousands of faulty laptops and instead of doing the right thing and fixing the defective machines through a callback, HP concocted a warranty service enhancement that limits their liability to repair the defective product.  Good for busi

  • My Windows XP laptop will not connect to my wireless printer or other computers.

    I have a home network, an xp connected to a router, an xp the top with wireless and a wireless printer.  Until recently all worked OK.My the top now connect not to do anything, not to the printer, the top or the i'net.  In network connections on the