Code to merge two PDF files of the scanned book: one of the odd pages and the other pages even.

I'm looking for an effective way merge two PDF files: one with all the odd pages scanned a book, one with all even-numbered pages. This question has been posted several times in many different forums.  I am unable to get the Javascript code that is given in the following forum to work.  https://forums.adobe.com/thread/286654.  Generally, the responses to this question are not useful for me because 1) they provide instructions that apply to an older version of Adobe (I use Adobe Acrobat Pro DC), or 2) they involve software purchase that I found to be ineffective. One post step by step to complete code that can do bonded labor and be registered as a custom through the command Wizard command (see the post from 11:27 January 13, 2016 to https://forums.adobe.com/thread/2063936, for an example of a good response to a different question) would be much appreciated.  Thank you, Carl

You can use a large part of the script that was posted in the other thread and create a personalized out of it. In fact, it makes the script easier to understand, because all the "stuff" that is about adding menus and elevate the rights of scripts is no longer necessary.

See here for instructions on how to create a custom in Acrobat DC command:

Create orders customized in Adobe Acrobat DC Pro - KHKonsulting LLC

Instead of the sample code of the blog post, you would use this (which is really just a copy & paste of the original script):

    // create an array to use as the rect parameter in the browse for field

    var arRect = new Array();
    arRect[0] = 0;
    arRect[1] = 0;
    arRect[2] = 0;
    arRect[3] = 0;

    // create a non-visible form field to use as a browse for field
    var f = this.addField("txtFilename", "text", this.numPages - 1, arRect);

    f.delay = true;
    f.fileSelect = true;
    f.delay = false;

    // user prompted to select file to collate the open document with
    app.alert("Select the PDF file to merge with")

    // open the browse for dialog
    f.browseForFileToSubmit();
    var evenDocPath = f.value;

    var q = this.numPages;

    var t = app.thermometer;
    t.duration = q;
    t.begin();

    // insert pages from selected document into open document
    for (var i = 0; i < q; i++) {
        var j = i * 2;
        this.insertPages(j, evenDocPath, i);
        t.value = i;
        t.text = 'Inserting page ' + (i + 1);
    }
    t.end();

    // remove unused field
    this.removeField("txtFilename");

Given the instructions in my blog, you should be able to create this custom command and run it. To run it, the important part is that you load the 'weird' part of the document first, then launch the custom command and then select the item "same" document.

Tags: Acrobat

Similar Questions

  • How can I combine two PDF files on the same page?

    How can I combine two PDF files on the same page? Please share any ideas you may have. Thank you.

    The term for what you want to do is called "page imposition.  There are third party tools that can do it for you like this: quite large: home page

  • Newbie question: how to merge two pdf files?

    Hello, I have two PDF documents, and I'm putting one right in the middle of the other. Can someone guide me through this process? Thank you.

    Hello

    Please see the following link for information on how to merge PDF'.

    Acrobat help. Combine or merge files into a single PDF file

    Concerning

    Sukrit diallo

  • Can I combine the contents of two PDF files?

    Hello

    I want to merge two PDF files with the first pdf data.

    Please look in the photo below.

    This isn't just I wnt to merge two PDF files, but also I want to remove the white space of the high pdf.

    can do us. Please let me know if we can do it.

    Concerning

    Sunil Gupta

    You can merge two PDF using LiveCycle assemble files, but you will not be able to "sink" PDFs together unless they are both XFA forms. If this is the case, then you'd called 'formula couture' to add two models together, so the model that should be activated in a PDF file.

    Make sense?

    Paul

  • problem w / script to merge 2 PDF files

    Hello

    Is anyone please tell me what is the problem with my JavaScript?

    var newDoc = app.newDoc ();  create a new doc PDF

    newDoc.insertPages ({nPage:-1, cPath: "/ c/doc1.pdf",});    Insert doc1.pdf

    newDoc.insertPages ({nPage: newDoc.numPages, cPath: "/ c/doc2.pdf",});   Insert doc2.pdf

    newDoc.saveAs ({cPath: "/ c/myNewDoc.pdf"});     Save the new doc

    newDoc.closeDoc (true);    close the doc

    I fell on the batch processing of Adobe Pro 9.0 - he gave me the invalid argument type.

    Undefined Doc.insertPages:13:Batch: Exec = > nPage parameter.

    I'm trying to merge 2 PDF files using the Acrobat JavaScript Scripting Guide script sample, but it does not work for some reason any.

    I can has merged the 2 PDF files manually, but not by script.  I hope that in a script I can forced Adobe XFA forms that I created LCDesigner with the AcroForms.  Merge AcroForms and XFA forms.  I know that in manually may not merge. I wonder if it can it be done through JavaScript?  The doc1 doc2 I have are regular AcroForms

    Thank you 1 million for your help & suggestions

    Trang

    Hi Trang,

    XFA forms (created in the LC Designer) and AcroForms (created in Acrobat) are completely different animals!

    The XFA form is wrapped in a wrapper that runs in Acrobat/Reader. You cannot merge (AFAIK) an XFA form and a PDF (or AcroForm).

    The best that you will achieve is to attach an XFA form into a PDF file.

    Alternatively, you can group the XFA and PDF forms in a portfolio.

    Good luck

    Niall

  • CANNOT OPEN TWO OR MORE PDF FILES AT THE SAME TIME

    Since Adobe Acrobat is released, I could double click on any PDF and it will open a new window.  I use six monitors so I could open and compare six different PDF files at the same time.

    Then all of a sudden about two years, all PDFs started tile in the same window.  This made side by side comparisons is impossible.    What's crazy is not a single person I contacted can understand it.  Even the most intelligent guy (even Adobe technicians) cannot understand how the do-but it was something he always did in the past.

    This is such an obvious feature and the answer should be easy.  Someone on another forum suggested this, but there is no button or option checkbox "Display each document in its own window" - which is what I'm actually trying to do.  The person who asked this question is in the graphic industry told me that she never found an answer after more then 3 years asking.

    What the devil?  Nobody really knows the answer?  Wow.  If I had to open a MS Word window and click on the program again, it would keep opening more and more windows side by side, so I can compare, cut and paste.

    Nobody knows the answer to this simple problem?

    I use Adobe Acrobat 7 and 7 Professional.

    Edition > Preferences (ctrl + k), under Show place settings check "display each document in its own window" and for good measure, clear check to "open interdocument links in the same window.

    Hi Julia,

    Acrobat 7 is not supported by Adobe & its not even compatible on Windows 7. It is not possible to predict how the application on an unsupported environment will behave.

    Kind regards

    Nicos

  • Hi, I want to compare two pdf files, so I need to make them in different windows. Adobe Reader DC has all PDFs behind the tabs. Is it possible to have multiple windows?

    Hi, I want to compare two pdf files.

    So I need to do them in different windows.

    However, Adobe Reader DC has all PDFs behind the tabs.

    How can I get different windows?

    Or, drag the tab to a new window.

  • pdf creation of the SAME SIZE of two pdf files

    I'm probably not follow instructions very well, and I'm not finding an explanation in the documentation so I hope someone can help me here.

    I have two pdf files. one is a cover of a magazine page, and the other is a page within the magazine where my work is mentioned. I want to combine these two PDF in a SINGLE pdf, but in a way that both the pdf is the same size. I feel like I am missing a setting somewhere for it as whenever I do this inside page is printed on the pdf document to half the size of the cover page.

    I tried to save out in png and making sure they are the same size and resolution, but it prints (except Preview) with white around the borders.

    I tried recording outside in optimized PDF and affecting the sizes 8 x 11 and 72 dpi but this then prints out Acrobat as a very pixelated in the document that are not readable.

    can someone help me with a step by step on how this can be done? It seems that I should just be able to open two random pdf files in the menu CREATE and then tell Acrobat to print to a specified size (this would be easy!), but I must be missing something.

    TIA

    Hotwheels 222,

    It might help to think that PDF is a container that can have many things such as texts, photos, graphics, vector elements, etc. all wrapped up in it.

    Normally, the content is created in another application such as InDesign, Illustrator, MS Word or many other applications. In the application you create a blank document and add or place images, type text in any font you want to place or create some elements of vector (if the application has actually vector tools)and even other multimedia such as audio and video as long as the application supports,

    Photos can all have a different resolution, vector elements have no resolution (I'll explain), the text can be in many different fonts, and they all keep their distinct characteristics within the PDF file.

    A PDF file created from an application like Photoshop will be just a resolution, because the PS is a pixel in the image editor and a PS document can have only one resolution.

    .. .the idea that two adobe products cannot communicate Acrobat to photoshop in terms of a resolution of pdf in photoshop seems very awkward... Once again, as a PDF file may have a lot of pictures with different resolutions, even if the PS could get this info (which may not) what PS resolution would decide to use? PS sheets it is up to the user to decide based on what they want their final production can be.

    You mention a document you have this "seems no inserted images" and "it appears as if there is an image"?

    The pdf of the cover are you referring?  The PDF producer is "Adobe Acrobat Image Conversion plug-in 10.0" is a tip out of 'Test Name screen' and thought it came from Photoshop.

    While possible, this document was created entirely in Photoshop, it is also likely that it was created in another application such as InDesign, exported from here in PDF and then PDF etc. was opened in Photoshop that rasterizes the content and flattened into an image file with the resolution you have chosen when opening in PS and then saved as just an image in PDF format. The graphic designer who created this probably did this because they did not want to give you a print quality PDF that you can try to extract the elements of.

    You mentioned that you thought that the doc was in Adobe Illustrator (AI) HAVE is primarily a tool for creating vector allowing also to the pixel for inclusion based raster images (with a resolution of specific pixels) to be included in a document of AI if wanted.  Strictly speaking, vector objects do not have a resolution. They are based on mathematics,

    He said essentially, put a point to such & such X, coordinated, now, put an another punch to another X, Y coordinates, it takes account of the arc or angle between the two points and said to draw a straight line, or draw a curved line, etc. Since it is only the mathematical instructions. This can be as large as you want and the relationship between the 2 points and the arc of the curve or line will dictate how the extended line or curve will be redrawn enlarged.

    Vectors are 'independent of the resolution' you can draw a vector logo to 1 x 1 inches and enlarge it to 50 x 50 inches or even as important as a home and it will always print crisp and clean. Notice, that this applies only to vector content in your document; pixel content is blocked in the resolution, it was created in the.

    To inspect the elements in a PDF document using the object Inspector in Acrobat Pro. Since a PDF file can contain several different objects, you have to click exactly on each object to get information about the selected object. So if you had 10 photos in your PDF you must select each in turn and he would give you the size in pixels, resolution, color space and profile, etc if you have clicked on the text, it will identify the police. It is well named, an Inspector of the object rather than a Document Inspector. Try it yourself with the different PDF files that you may encounter. If for example, it gives you the exact same info (resolution, pixel dimensions etc.) bit matter when you click, then you're probably dealing with a simple image. If you get the dimension in different pixels, resolutions when you click in different areas, you're dealing with a PDF file that had separated the distinct elements.

    I don't see why I shouldn't be able to get a document that is located at 17.7 x 22.9 to 72 dpi up to one that is 8 x 11 at 300 ppi.

    In Photoshop, go to the Image, the Image Size menu. This will show the dimensions in pixels (width & height) at the top. If you don't interpolate (resample) Photoshop can only put the same number of pixels in different size documents. When you press it same number of pixels in a smaller resolution doc increases. When you place the same number of pixels in a larger doc and the resolution fails.

    Don't forget, that the resolution is PPI (Pixels Per Inch). If you do the math it starts to make sense.

    Below notes that each dialog box features the same EXACT pixel dimensions.

    In the first box, it shows the 1275 x 1650 pixels in a document of 17.708 22.917 x inches. This gives a resolution of 72 DPI.

    In the second box, I changed the size of the document to 8.5 x 11 inches and pixels of 1275 x 1650 even now increase the resolution to 150 DPI.

    In the third box, I changed the resolution to 300 DPI and the pixels of 1275 x 1650 even now decrease the size of the document to 4.25 x 5.5 inches.

        

    If you check the resampling, Photoshop will interpolate (resample) image to throw the pixels, or adding pixels, but there is no magic involved and the results are never as good as we could hope.

    Like Goldilocks and the 3 bears, some things are better when they are 'fair '.

  • To open a Pdf file on the second monitor

    Original title: two monitors and open files
    Hello!!

    I have now two monitors on my desktop and I want to know how I can open a PDF on the second monitor, and keep all my PDFs on the first monitor? I want to simply click in the file - on the first monitor - and the file opens automatically on the second monitor.

    Thank you

    M. Vilela

    Hello

    Try these steps and check if you are able to open the PDF file on the second monitor...
    a. open a PDF file. Now, UN-maximize the file.
    (b) move it to the other monitor.
    c. now, close the document without maximizing it on the new monitor.

    d. now attempt to open a PDF file.
    e. it should open on the second monitor.
    f. maximise, close the vial.
    g. now opens a new PDF on the new monitor, and it will be maximized when opened.

    Adobe will remember whether or not a document has been expanded and open PDF one another in the same way, but it will update the monitor to use when a document is closed so that not maximized.

    View the query in the adobe forum for help
    http://forums.Adobe.com/index.jspa

  • Is there a package from Adobe for a single user who would allow me to merge/combine PDF files, convert PDF to Word and I would use echosign?

    Is there a package from Adobe for a single user who would allow me to merge/combine PDF files, convert PDF to Word and I would use echosign?

    Hi mm12798893,

    For all these features, please see the service pack Adobe PDF or Acrobat DC subscription.

    See these KB doc for more information:

    https://www.Acrobat.com/en_US/landing/EXPORTPDF-pricing-b.html let us know if you need help.

    Kind regards

    Meenakshi

  • In Adobe Acrobat 10.0.0 comparing two pdf files, it automatically locks. Can you please share how to avoid this type of comparison file accidents?

    Hi all

    In Adobe Acrobat 10.0.0 comparing two pdf files, it automatically locks. Can you please share how to avoid this type of comparison file accidents? If anyone with the idea, please share it.

    Hi sathishk15640596,

    Follow this thread to reset the Acrobat preferences:- How to reset preference settings in format Acrobat.

    If you are on Windows OS, open Acrobat, go to the Help menu and repair the installation.

    I would like to know is what happening to the entire document or certain act.

    Please check with another account user as well as to reproduce the problem.

    Kind regards

    Christian

  • How can I display two PDF files next to each other?

    How can I display two PDF files next to each other?  In the older version of Acrobat Reader, I was able to open each PDF in a separate window and used all the time.

    Hi julians7844423,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Restart your system & now try to open PDF files.

    Let me know if it solves your problem.

    Kind regards
    Nicos

  • How to merge several pdf files into an editable word document?

    How to merge several pdf files into an editable word document?

    You will need either a subscription to the pack PDF to merge the files, then export to Word or you would need Adobe Acrobat (should not be confused with the free Adobe Acrobat Reader which can not do).

  • How to merge several PDF files into a PDF file?

    How to merge several PDF files into a PDF file? for example, I've scanned 3 pages of the same document on my computer and they come up on top of the computer as a separate PDF files, but they are 3 pages that should be in the same PDF file?

    Hi m.zaffar,

    In order to combine the PDF you can subscribe to Adobe PDF to combine files of service https://cloud.acrobat.com/combinepdf

    KB doc. for help Document Cloud Help | Adobe PDF package using.

    Or

    You can use the Acrobat free trial download Adobe Acrobat application | Acrobat Pro DC.

    KB doc. using Acrobat help. Combine or merge files into a single PDF file.

    Kind regards

    Nicos

  • How to merge 2 PDF files on iPad

    How to merge 2 PDF files on iPad?

    Hi shanebrianmurphy,

    Adobe PDF package (paid subscription service) offers the possibility to combine files.

    Document help Cloud | With the help of Adobe PDF Pack

    Alternatively, you can use Adobe Acrobat Pro (desktop app) to combine files.

    However, the reader app on iPad/iPhone has no support in-app to combine/merge PDF files.

    Sorry for the inconvenience.

Maybe you are looking for

  • Convert dnp3 modbus Protocol

    Hi all I am now having my device slave, who is a SALT 651 proctive relay, talk to the computer via Ethernet DNP3. I have a master model in LabVIEW to see the voltage and the frequency transmitted to the back of the relay. But right now I want to do t

  • GPS on Stream 8 5801WT?

    The hp 8 Stream model Tablet 5801WT there really on-board GPS? I want to use the maps here to navigate on a trip to Europe using the downloaded maps. I lose the point fixed gps 300 m about to my wifi connection in the preliminary trials around my hou

  • Can't install or uninstall Silverlight on Mac computer

    Original title: How do I get off my computer with silverlight and re install?  summer try to do for days now and it deeps saying a newer version already exists when silverlight is not found help all the netflix suddenly requires us to install silverl

  • SQL reporting services e-mail subscriptions - how to manage the "My subscriptions" page

    I have a number of subscriptions e-mail (42) listed on the "My subscriptions" page of SSRS (2008 r2).  They all go to the same people at the same time, so this list is not discern-able. Each line has the same appearance and if I find a certain subscr

  • Call a DLL in an integrated project

    Hello world I created a Subvi, which returns the recognized audio devices and readers who are searched in a specific way. For audio devices I use lvsound2.llb functions. When I call these functions as soon as it works fine, but when I change the conf