Extract only last page of the PDF - batch document

Hello

I need to extract the last page of about 100 documents in a batch process.  I need only the last page, and the number of pages in each document varies (i.e. can be 30, it could be 200).

Is it possible to do this without having to enter each document and extracting the last page?

On discussion forums, I found a javascript script to enter the Action Wizard, allowing you to delete the last page, but not to extract it or remove the pages in front of her.

Thank you!

No, you can't do it. You cannot replace a file with a file you are currently editing.

What you can do, however, is to remove all other pages of the file, and then save it under the same name.

To delete all the pages, but the last, you can use this code:

this.deletePages (0, this.numPages - 2);

Then just add a step to Save your action and you're done.

Just keep in mind that this process is NOT reversible. Then maybe make a backup of your files before you run it.

Tags: Acrobat

Similar Questions

  • How to extract non-consecutive pages of a pdf document. I can highlight in thumbnails but only extract consecutive.

    How to extract non-consecutive pages of a pdf document?

    I see its easy to do with the consecutive pages highlighting the thumbnails can "extract", but this does not allow for non-consecutive pages.

    Thank you

    After you select the pages, you can drag and drop them somewhere,

    as on the desktop, and a new file will be created with only the pages.

    Highlighting the pages if not achievable, or too complicated to do, then a

    script can be used where you specify which pages from script

    extract them to a new file.

  • Can I print the last page of a PDF document using the command line?

    Hello

    I'm in a situation where I constantly have to deal with several documents in PDF format, and I need to print the last page in each of them and ONLY the last page. The total number of pages vary for each file, so the page to the last page number will also vary.

    I really prefer to not do it manually, to open each file in the visible window of Adobe Reader, and then print.

    Question:

    Is it possible with Adobe Reader (perhaps with the help of another Adobe product) to print only the last page of a PDF document using some sort of command line without having to open the PDF file in the Adobe Reader window visible?

    I use Windows.

    Thanks in advance,

    Kind regards

    Emil

    Hey, I've just set up a measure of inquiry by accident. That's really bad thinking. Here's what to do.

    When the "Create new Action" checkbox is shown...

    Choose Start with: a file open in Acrobat

    DO NOT CLICK on add a step statement

    Open tools more

    Click once on run JavaScript

    A blue line to run JavaScript must appear on the right side.

    Click on the small box under Options inside the blue line

    A JavaScript editor should appear; Enter the program, and then click Ok

    To save in: select do not save the changes.

    Click Save

    Give a name; you don't need to enter a description (although it won't hurt if you do).

  • Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Yes, you can do it using a script. This code should do the trick:

    this.movePage (this.numPages - 1, -1);

  • required solution: how to put some text on account of the position of the last page in the form?

    Hi friends,
    I need your suggestions of urgency the problem described below. Long story somehow. Appreciate your interest & suggestions.
    ==============Clip==============
    I have a requirement of form design some text content to appear only on a fixed position of the last page.
    The form will be multi-page.

    Here's the way I tried

    (1) on the master page:
    Add text object lblEnding (w = 176mm, h = 45mm)
    Wrap lblEnding in subform (frmEnding)
    Do frmEnding on on-call position (x = 20 mm, y = 200 mm, l = 176 mm);


    (2) on bodypage:
    Add text object lblBlank; (without border & transparent). He used to occuping the area of the page to the bodypage flow
    Wrap lblBlank in the frmBlank subform, sank, from top to bottom.

    (3) Note: The last mandatory content of the form template is a subform, called frmInfoBlock.

    OK, so for my part script here.
    ---------------------------------------------------
    (1) on the master page:

    For configuration frmEnding only appear on the last page
    To control the presence of frmEnding based on pageCount()
    use of scripts on frmEnding
    //
    FormDeliveryNoteNotification.. mstMasterPg1.frmEnding::ready:layout #pageSet [0] - (JavaScript, client)
    If (xfa.layout.page (this)! = xfa.layout.pageCount ()) this.presence = "hidden";

    (2) on Bodypage:
    To control the presence of frmBlank based on its position (property 'y')
    use of scripts on frmBlank
    //
    FormDeliveryNoteNotification.bdyPage1.frmBlank::ready:form - (JavaScript, client)
    var y1 = this.y;
    var y2 = frmInfoBlock.y;
    H2 var = frmInfoBlock.h;

    var yNum1 = parseInt (y1);
    var hNum2 = parseInt (h2);
    var yNum2 = parseInt (y2);

    This.Presence = "visible";
    If (yNum1 < = "200")
    {
    If (yNum2 + hNum2 < "200")
    This.Presence = 'hidden ';
    }

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

    Later, I found that it worked as expected.
    With regard to the property 'y '.
    > > > >
    Specifies the y of the anchor point of a container compared to the upper left corner of the parent
    container of when placed with square layout.
    Container whose content has flowed do not use contact information.
    > > > >

    As subforms Inc. frmBlank & frmInfoBlock that all are flowed, variable above scripts, always have value as below (according to my result of debugging)
    Y1 = 0 in
    Y2 = 0 in
    H2 = 0 in

    As a result, yNum1 Inc., yNum2, hNum2 are always 0.

    As a result:

    frmBlank will be always hidden

    If only 1 page, bodypage County can be superimposed with the page master frmEnding.

    ==============Clap==============
    Hope I described things clearly. : PEI

    Can you give your suggestions as another suggestion.

    -VickyX

    Hi Vicky,

    See if this helps you: https://acrobat.com/#d=Qjw-* ATV-gNdWjP * rlx2HA

    Find the line that serves as a marker for coordinates. The script is located in the spacer subform.

    Good luck

    Niall

  • OfficeJet J6480 continue to feed the blank sheets after the last page of the print document then blocks.

    When you print a document on my OfficeJet J6480, once the last page printed, the cradle of the cartridge moves back several times, then one or two white sheets feed through the printer. Sheets then another feeds and jams, requiring the duplexer to be deleted to clear the jam. This happens on 95% of the print jobs sent to the printer.

    Windows XP SP3

    Unfortunately, the troubleshooting steps a false paper jam and find a real fundamentally the same.
    I included a link to a document that is for a paper jam error. However, I'm sure you did 1st two solutions and if you please go above them, I want you to try, is the cleaning of the rollers and the duplexer and reset the products and checking the firmware to ensure that it is up-to-date. These solutions are listed in the order and you can find instructions step by step in this link for each step. Reset will be particularly important because it is one of the most effective tools to correct the problems of material with a printer. Here is the link: http://support.hp.com/us-en/document/c01312792

  • repeating nodes using loop but when XML string concating then concating only last iteration of the loop FOr?

    I stuck with a problem that I use FOR loop to generate expandable nodes.
    Now when I concat the node generated in the primary node and then I only last iteration of the loop FOR.
    can someone suggest me a way to manage this error...
    BECAUSE me IN 1.pl_phone_tab. County
    LOOP
    SELECT xmlelement ("phone"
    , xmlelement ("PHONETYPE", xmlattributes ('01' AS "dmnADRP_PHONETYPE"), pl_phone_tab (i) .p_phtype_tab)
    , xmlelement ("PHONENUM", pl_phone_tab (i) .p_phnum_tab)
    , xmlelement ("PRIMARY_CONTACT", pl_phone_tab (i) .p_prcon_tab)
    )
    IN p_phone_xml
    DOUBLE; END LOOP;
    SELECT xmlelement ("PhoneInfo"
    xmlconcat (p_phone_xml))
    IN p_phone_info_xml
    DOUBLE;
    Here, I'm a single node, but there must be two nodes for node of PHONE
  • I'm trying to merge a page of the PDF to another pdf file, but I don't have the adjustment TOOLS

    I'm trying to merge a page of the PDF to another pdf file, but I don't have the adjustment TOOLS, how can I combine without this feature

    Hi abbyg96242574,

    You have the application Acrobat or Adobe PDF pack to use the PDF feature combines?

    Kind regards
    Nicos

  • Sticker PDF not showing first page of the PDF

    I have Adobe Reader DC installed on my PC under Windows 7 64-bit. The PDF files on this machine says PDF on the thumbnail instead of show me the first page of the PDF as the thumbnail. Is there a way to fix this? Thank you!

    This feature is no longer a part of the CD player.

  • How to sort the order of the pages in the pdf file

    How to rearrange the order of the pages in the pdf file

    Hi rainbowbowral,

    To reorder pages, you need the full version of Acrobat. If you wish, you can download a free 30 day trial of www.adobe.com/products/acrobat.html.

    Best,

    Sara

  • How to remove a page of the PDF document?

    How to remove a page from the PDF?

    Tools > Pages > delete

    Select that range from the page to remove

    Click on the OK button

  • When I download a PDF in iBooks app Apple´s always displays the first page of the pdf.

    When I download a PDF in iBooks app Apple´s always displays the first page of the pdf. So, how can I change this first page to another page in the pdf file? We want to download a PDF file in the iBooks app. iBooks still displays the first page of the pdf, but the fist of our pdf page is always the same (black color). And we want to differentiate each other pdfs.

    There is no standard to do this, in particular no standard method to store in a PDF file, a preview map. Is iBooks entirely to Apple, but as most of the software that he will probably use the first page without condition.

    If iBooks can show something different (and it does its not useful), you will get this information to Apple.

  • Go to a specific page in the PDF file

    Hello

    I'm trying to understand how to link to another page in the PDF doc.

    I tried with a button, but can not specify the number of page where I want the link.

    Can someone help me to make a link to a specific page in my doc?

    Thank you

    This article should be useful: http://acrobatusers.com/tutorials/how-do-i-link-button-specific-page-my-pdf-document

  • Impossible to print the first and last pages of a pdf of the 8 page?

    I have a pdf of 8 pages exported from an InDesign document. I can print it without any problem on my MAC, but when I will forward it to a partner, she is unable to print the first and last pages. Any ideas?

    Hi jimr67163466,

    Could you please let us know the version of Adobe Reader is installed on the machine?

    What operating system is installed on the machine-Windows/Mac?

    The pdf is printing via a network printer?

    This phenomenon happens with a specific document only or with other documents as well?

    Try to print the pdf as image, launch Adobe Reader, click Print > select your printer from the drop-down > click on advanced > check the print as Image > and then click OK.

    Let us know if it worked.

    Thank you

    Shivam

  • Automate the process of extracting specific page of the PDF document

    Example: 10 pages PDF > user opens the PDF to page 1, on this page, there is a form field > user enters '3' in the field and select a "submit" button.

    Here's the question: can the submit button Activate a script/action to extract the page 3 of the document and allow the user to record a new PDF of just page 3?

    Of course, it is possible. Copy the following code excerpt page 3 to a new (temporary) file:

    this.extractPages ({start: 2, nEnd: 2});

    Note that the page numbers are zero-based.

    Of course, this will work in Acrobat, not in the free player.

Maybe you are looking for

  • Overclocking graphics card on Satellite L650

    Hello IM really looking forward by overclocking my GPU (ATI 5470 M) when trying to install ATI catalyst in my laptop (L650 series psk1ja-ofno17), but it keeps getting an error that says that it is not compatible. I also note that the CCC is delivered

  • AC adapter / CC EliteBook 8530

    We know how many wats the ac adapter must have for a HP elitebook 8530p some sites say 90 watts, others say thank you 120 watts, I bought a 90-Watt adapter to charge the phone, it will work or shoud I return it for version 120 watts?

  • How Lock/disable fields during the loading screen?

    Hello I'm looking to 'lock' or 'disable' everything on the screen whenever I call setStatus(). The concept behind this is I want to use setStatus() to tell the user when loading the screen is. While it is loading, I don't want the user to be able to

  • How can I get my documents point to reset everytime I open a document?

    I tried the below but it does not work.  I want to reset the PAGE_ORIGIN of sovereign origin when a document is opened.  How can I accomplish this?  app.documents[0].zeroPoint = [0,0]; and I'm wishing that it is (RulerOrigin.PAGE_ORIGIN) on each page

  • 5.7 Lightroom will not read my cards compact flash / cards cf

    Hello.5.7 Lightroom will not read my cards compact flash / cards cfAnyone else having this problem and know the answer?