Inserting a pdf page to a document using a button

I am trying to figure out how to use javascript in a button. I have created a pdf that has a button that says Add Page. Basically what I want it to do is to add another page to the document when i click it. I have used the javascript console and know how to insert pages that way but for some reason that same code doesn't work in the button javascript. This is the code I have been using in the console
this.insertPages({nPage:this.numPages-1,
   cPath:"InsertExampleSource.pdf"});
Whenever I put it in the button though and try it, nothing happens
Also this pdf has a bunch of text fields that happen to have the variables as ones in the documents.
What code would i write to change the rename these variable names using the same button.
Thanks

Sorry I'm new to scripting and Acrobat so I need a little guidance on what are SpawnTemplates and where would I find them and the other templates
Thanks

Similar Messages

  • How do I scan multiple pages into one document using the CanoScan LiDE 200?

    How do I scan multiple pages into one document using the CanoScan LiDE 200?
    I can't seem to find a way to get them to scan continuously, or a way to stitch them together afterwards.

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()

    I am trying to find whether each page in PDF document is color or monochrome.
    For doing this I am rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()
    Once after rendering the PDF page, I am using GetPixel() to read each pixel value to decide about color or Monochrome.
    Problem:
    When I read the pixel to decide about the page color or monochorme, in some XP machines it is showing the PDF page as color and in some PC it is showing it as Monochrome.  Color quality in both the system is kept as 32 Bit.
    After this I tried copying the PDF page directly into clipboard and then take the clipboard image to decide about color and monochorme, but even this also behaves in the similar way.
    Question:
    Why rendering the PDF page to Bitmap object using DrawEx() or CopyToClipboard() is behaving differently in each machines.
    If required I will send my sample project.
    With regards,
    Rajeshrv.

    In SDK documentation, there is no methods are defined for getting the color of the page.  In color spaces and color values, we can set the color for drawing operations. A method AVPageViewSetColor is used for setting the color. 
    But there is no methods defined for getting the color in the page.  Please let me know , is there any alternative way.
    Thanks in advance.

  • I have a MacBook Pro and can't print pdf files or word documents using my HP Wireless Photosmart Printer.  It will print files from the internet.  Any suggestions or ideas will be greatly appreciated.  Thank you.

    I have a MacBook Pro and can't print pdf files or word documents using my HP Wireless Photosmart Printer.  It will print files from the internet.  Any suggestions or ideas will be greatly appreciated.  Thank you.

    Hello, SoonerAnesthetist. 
    Thank you for visiting Apple Support Communities.
    Here is an article that I would recommend going through when experiencing this issue.
    OS X Mavericks: Solve printing problems
    http://support.apple.com/kb/PH14142
    Cheers,
    Jason H.

  • I am trying to convert a PDF to a Word document using Acrobat Pro 9 but am unable to find "Content to edit" under tools.  Do I need a newer version?

    I am trying to convert a PDF to a Word document using Acrobat Pro 9 but am unable to find "Content to edit" under tools.  Do I need a newer version?

    Acrobat 9 Pro (not Standard) can export ("convert") PDF to Word, RTF, or other text formats.
    Click-path:  File - Export
    Take your pick.
    With install of Acrobat 9 the Help PDF is installed also.
    From the this PDF's Bookmarks expand Chapter 5's bookmark and select "Convert PDFs to Word".
    Be well...

  • Inserting & Extracting PDF Pages

    How do I insert or extract pages in Acrobat 9 if I created the form using LiveCycle Designer ES?
    I can't remove the documents restrictions. Please help, I have clue, thanks

    Hi,
    When you create a form in LC Designer, it the XFA form so that Acrobat/Reader can open and interact with the form. However this XFA form is completely different from a form developed in Acrobat (AcroForm) or any other standard/flat PDF.
    When you open an XFA form in Acrobat you cannot do some of the standard Acrobat functions. This isn't a hidden restriction that you can turn off - it is juat the way it is.
    So in Acrobat you cannot insert pages into the XFA form, using the Document / Insert pages menu. However you can develop a button on your form in LC designer, to insert a page at runtime.
    In relation to exporting a page from your XFA form, you can use the File / Export menu to export to an image file (eg JPEG). In addition you can print the form to PDF using Acrobat.
    In summary:
    Extract - either export to JPEG and deal with the image files OR print form to PDF.
    Good luck,
    Niall 

  • How to insert a new page to word document

    Does anybody knows how i can insert  a new page to the opened word document ?
    I am searching for the documentation for the activex word functions and i have no idea where i can find it ?
    I am using LabWindows CVI 8.5.

    Hello Boris!
    You can use the WordRpt_NewPage function to add a new page into an opened word document.
    Here is some documentation about this function: http://zone.ni.com/reference/en-XX/help/370051Y-01​/toolslib/functionreference/cviwordrpt_newpage/
    You'll also find useful hints on how to use it in the sample program that ships with CVI: <samples>\activex\word\wordrpt.prj.
    Best regards!
    - Johannes

  • How to insert a landscape page in a document

    How can I insert a landscape page in a pages document with portrait pages?
    I have been trying to figure this out for some time now.
    Thank you

    No!
    Don't you pay attention to what fruhulda says?
    Peter

  • Can i insert doc/pdf/excel file to table using the INSERT query ?

    Hi,
    can i insert doc or pdf file to table by using INSERT query like we can insert char/numeric values by using INSERT query. But how how can i pass my word file that is placed at some location of my file system ?Is this possible ?

    EdStevens wrote:
    user12222356 wrote:
    Hi,
    can i insert doc or pdf file to table by using INSERT query like we can insert char/numeric values by using INSERT query. But how how can i pass my word file that is placed at some location of my file system ?Is this possible ?I've never worked with blobs, so don't know if this is the best way or not, but at least it is a starting point.
    (Hint: It was the first hit that came up when I googled "how to insert blob into oracle table")
    http://arjudba.blogspot.com/2008/06/how-to-insert-blob-dataimage-video-into.html
    Did not understood this very first statement:
    1)Create Directory Where BLOB resides.
    create or replace directory temp as '/oradata2';what is its purpose?

  • Adobe Acrobat XI Pro - Copy Paste PDF Page to PPT Slide using VBA

    Hi,
    Please find the requirement -
    Need to read a pdf file (pdf file may contains 10-15 pages) from powerpoint (using VBA), go to a particular pdf page, copy the entire page and paste on the ppt slide. Can anyone share the vba code for this. Thanks.
    Regards,
    Prasanta

    Can you do it without VBA? I can't see anything designed to make this work except screen shots, which are nothing to do with Acrobat specifically.

  • How do I print a converted PDF to MS Word document (no option button appears on Adobe Export Screen)

    I've been unable to print a converted document.

    Hello Joann,
    Adobe Reader XI is not capable to creating Fillable PDF forms.
    You need to use Acrobat for it. Please refer to following link:
    http://www.adobe.com/in/products/acrobatpro.html
    Now, for creating the PDF form from a Word file, please look at following video:
    How to create new PDF forms from existing documents | Learn Acrobat XI | Adobe TV
    Regards,
    Anoop

  • .pdf file renaming when emailing using regular button

    Acrobate 8.0
    I have created a form which is to be emailed in .pdf form and then submitted using a regular button set to mailto (#58 posting).
    My problem is that when emailed the form takes on the original file name and I would like to have it take on a new name. The name can be in any naming convection.
    Any help is appreciated!

    You can create a Print Plugin Automator workflow that applies the Quartz filter to reduce the file size.
    When Automator opens, choose the Print Plugin option, add Apply Quartz Filter to PDF files, and then add a Move Finder items, Open Finder Items. Save the workflow and it will appear in the PDF menu.
    If you don't add the Move or Open action, you won't see the file. It creates a temp file that you must save. Somewhere on the Leopard Automator forums I have a post that has an Applescript to save the file.
    The Move action works well when you want to save the file in a standard location. You can change the Options on the Move Action to show when it runs so that you can pick the destination.
    If you use the Open action, you can then save as from the menu to save as you wish.
    I tested it with a word doc and cut an 11.8 MB file down to 303KB.

  • Muse page content "jumps" when using menu button

    I Created a simple portfolio website in Adobe Muse. Two pages (projects and contact) and for both using the same underlaying stramien page (don't know the English word for that). I added a menu widget to navigate between the two pages. Works fine, but whenever I use the menu button the page content (text and/or pictures) make a little vertical jump before they are in their right position. Obviously this little "jump" is not like it is supposed to be. The website is not yet published or online, cause it's not finished yet, but the problem occurs when I preview what I've made so far.
    What could be the cause of this problem and how can I repair it ??
    Alexander

    are you using Chrome?
    try loading my page, www.stacystechpubs.com using Chrome.
    Then you see a bar of menu items across the page (home, who am I, terms,...) try clicking on one, then the next one, then the next one. You'll see the box 'Stacy's Tech Publications' jumps when you click on a link.
    If you still aren't sure what I mean I need to take a screen capture video and upload it.

  • How to create and insert muliple PDF pages to a single file

    Greeting to everyone.
    I use Acrobat 8 Standard to create PDF files, usually by PRINTING TO PDF from a CAD file(Vectorworks) or web pages on the net.
    I know how to create single pages and I know how to combine them into a single PDF file by using the Document - Insert Pages command.
    My question is: When creating a PDF file(e.g from my CAD program), can I print and insert instantly, rather than going through 2 steps.
    Thank you in advance for your suggestions.
    Sidug

    No. Future questions concerning Acrobat belongs in the Acrobat forum.
    This forum is for dealing with Reader issues. Users of free Reader
    aren't that familiar with the commercial Acrobat Standard, Pro or
    Extended programs.
    Mike

  • Inserting a pdf file in mysql database using jdbc

    hi guys,
    i'm developing an application, where i have to upload the documents and store it in the database.
    i'm using mysql db. using the jdbc statements i have stored the contents of the pdf file. But, i'm unable to read the content, it's looks like junk values. and when i retrieved using the stream objects. it looks like the same.
    i'm able to store and retrieve the text based and image files.
    is it possible to store pdf and word documents in the database columns directly??
    any ideas are appreciated.
    thanks in advance,
    -bala

    This may help[
    Table example
    DROP TABLE IF EXISTS `employeephoto`;
    CREATE TABLE `employeephoto` (
    `Employee_ID` varchar(15) NOT NULL default '',
    `Binary_Photo` mediumblob NOT NULL,
    `LastUser` varchar(100) NOT NULL default '',
    `LastMod` datetime NOT NULL default '0000-00-00 00:00:00',
    `Created` datetime NOT NULL default '0000-00-00 00:00:00',
    PRIMARY KEY (`Employee_ID`)
    ) TYPE=MyISAM;
    Save photo as jpeg to database
    public static void saveMySqlPhoto(String empID, ImageIcon icon) {
      try {
        Image image = icon.getImage();
        BufferedImage bImage = new BufferedImage(image.getWidth(null),image.getHeight(null),BufferedImage.TYPE_INT_RGB);
        Graphics bg = bImage.getGraphics();
        bg.drawImage(image,0,0,null);
        bg.dispose();
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ImageIO.write(bImage,"jpeg",out);
        byte[] buf = out.toByteArray();
        // setup stream for blob
        ByteArrayInputStream inStream = new ByteArrayInputStream(buf);
        // get or create a connection here
        Connection photoConnection = startup.connectionPool.getConnection();
        sqlStatement = "insert into employeephoto (Employee_ID,Binary_Photo,LastUser,LastMod,Created) values ('"+empID+"', ?, '"+startup.User+"', NOW(), NOW())";
        ps = photoConnection.prepareStatement(sqlStatement);
        ps.setBinaryStream(1,inStream,inStream.available());
        ps.executeUpdate();
        // release or close connection here
        startup.connectionPool.releaseConnection(photoConnection);
      catch (Exception exc) {
        // process error
    }Retrieve photo from database
    public static ImageIcon getMySqlPhoto(String employeeID){
      ImageIcon dPhoto = null;
      // get or create a connection here
      Connection photoConnection = connectionPool.getConnection();
      String sqlStatement = "select Binary_Photo from employeephoto where Employee_ID = '"+employeeID+"'";
      try {
        ResultSet rs = photoConnection.createStatement().executeQuery(sqlStatement);
        if (rs.next()){
          Blob image = rs.getBlob("Binary_Photo");
          // setup the streams
          InputStream input = image.getBinaryStream();
          ByteArrayOutputStream output = new ByteArrayOutputStream();
          // set read buffer size
          byte[] rb = new byte[1024];
          int ch = 0;
          // process blob
          while ((ch=input.read(rb)) != -1){
            output.write(rb, 0, ch);
          byte[] b = output.toByteArray();
          input.close();
          output.close();
          // load final buffer
          dPhoto = new ImageIcon(b);
        rs.close();
      catch (Exception exc) {
        // do error processing
      // release or close connection here
      connectionPool.releaseConnection(photoConnection);
      return dPhoto;
    public byte[] toByteArray(int width, int height, BufferedImage imageBuff) throws java.io.IOException{
      BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
      bi.getGraphics().drawImage(imageBuff, 0, 0, null);
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
      JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
      param.setQuality(1.0f, false);
      encoder.setJPEGEncodeParam(param);
      encoder.encode(bi);
      return out.toByteArray();
    }rykk

Maybe you are looking for