How to Export Page to another document

For example I've got document with 'n' pages, I need to save each page to different documents. <br />This my simple code for each page. <br /><br />UIDList pageList(pTargetList->GetDataBase());<br />     do<br />     {<br />          UIDRef docRef = pTargetList->GetRef(0);<br /><br />          <br />          InterfacePtr<IPageList> pgLst(docRef, UseDefaultIID());<br />          if(!pgLst) break;<br />          int32 pageCount = pgLst->GetPageCount();<br />          <br />          IDataBase* db = pTargetList->GetDataBase();<br />          if(db == nil) break;<br />          PMString origName = FileUtils::SysFileToPMString(m_FullPath);<br /><br />          int32 succededPages=0;//lets us to determine if at least one page is successfully done with export<br />          for (int32 i = 0; i < pageCount; i++)<br />          {<br />               bool pageExportStatus=false;<br />               do<br />               {<br />                    UIDRef pageUIDRef(db, pgLst->GetNthPageUID(i));<br />                    if (pageUIDRef == UIDRef::gNull) break;<br /><br />                    PMString filePath = origName;<br />                    if(this->AdjustExportFileName(pageUIDRef,i,pageCount>1,filePath)==k Failure) break;<br />          <br />                    DocumentHelper docHelp(filePath);<br />                    IDFile docPath(filePath);<br />                    /*What to add to save each page <br />                      by <br />                    */<br />                    //docHelp.SaveDocument(docPath);<br /><br />                    <br /><br />               }while(false);<br />          }<br />     }while(false);

Thanks for kDuplicatePageCmdBoss ! And what about SaveAs, how to delete page.
Sorry for newbie question, but I can't find the way how to delete page ):

Similar Messages

  • How to setup a link that is of the type "Go to a page in another document"?

    Is there a direct way for a javascript to setup a link that is equivalent to the acrobat link type  you get when you add a link of the type “Go to a page in another document”?
    Tools-Advanced Editing-Link tool, make a box
    Check: Go to page view, Next (Create go to view dialog opens)
    Open second document and go to page
    Click “Create go to view dialog” to set up link
    Result is a link, when view by link properties, with an action of
    Go to a page in another document
    File: C:\My Documents\File2.pdf
    Page: 43
    Zoom level: Custom
    I have a java script in a setAction of a link that I think does the job:
    l.setAction("var otherDoc = app.openDoc('../Folder2/File2.pdf', this);otherDoc.pageNum = 1 - 1;");
    But is there a more direct way that actual sets up a “a link of the type Go to a page in another document” so if it's "advanced edited" its the same as the manual set links?
    I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
    John
    Code example in more detail:
    /* Insert document level JavaScript to set disclosed = true.
       This will run when the document is opened.*/
    this.addScript("setDisclosed", "this.disclosed = true;");
    // Search through the document for the word “Acrobat” and create a link around that word.
    for (var p = 0; p < this.numPages; p++)
        var numWords = this.getPageNumWords(p);
        for (var i=0; i<numWords; i++)
            var ckWord = this.getPageNthWord(p, i, true);
            if ( ckWord == "Acrobat")
                var q = this.getPageNthWordQuads(p, i);
                // Convert quads in default user space to rotated
                // User space used by Links.
                m = (new Matrix2D).fromRotated(this,p);
                mInv = m.invert()
                r = mInv.transform(q)
                r=r.toString()
                r = r.split(",");
                l = addLink(p, [r[4], r[5], r[2], r[3]]);
                l.borderColor = color.blue
                l.borderWidth = 1
                //l.setAction("this.getURL('http://www.adobe.com/');");
               l.setAction("var otherDoc = app.openDoc('../Folder2/File2.pdf', this);otherDoc.pageNum = 3 - 1;");
    Current Systems in use to create documents with links and view them:
    Windows XP SP3
    Word 2003 SP3
    Acrobat 9 pro version 9.4.4
    Or just to view them:
    Mac OS 10 Lion version 10.7.4
    Acrobat 9 pro version 9.5.1
    (note I have limited understanding of Mac’s)

    If you use buttons instead, it is possible to script adding the actions that you want. It involves creating a properly constructed FDF, saving it, and then importing it into the document. Buttons can be made to appear just like links. For more information, see: http://www.planetpdf.com/developer/article.asp?ContentID=6338

  • How can I add a link in a cell in pages to another document

    Hello I am new to this so be gentle with me
    Can anyone tell me if it is possible to add a link in a (table) cell in pages to another document on my Mac, so when I click on it, it will take me to the document
    Many Thanks
    Charles

    As far as I remember you couldn't do it in PAges 09 and Pages 5 has lost over 90 features that Pages 09 has so I would say no you can't. I can't test it right now. I had a quick look in the help (http://help.apple.com/pages/mac/5.0/?lang=en) and could find that you could link to another document from anywhere let alone a table cell.

  • Go to a page in another document

    How put i link to go to a page in another document on pdf?

    Create a link and select the "Custom link" option, click "Next",  select the "Options" tab, select "Go to page view", click the "Add: button, open the file to the page you want to link to, click the "Set link" button.

  • Hyperlink with an action 'Go to a page in another document' in IE browser.

    When the PDF Document is opened in IE, Clicking on a Hyperlink with an action 'Go to a page in another document' is not navigating to the proper destination page.
    This happens when the destination document is already opened in IE once and cached.

    Hi Vinayaka,
    I am unable to replicate this at my end. I am using Acrobat 11.0.10 on Windows 7 and IE11
    Below are the steps I followed :
    Create a link and select the "Custom link" option, click "Next",  select the "Options" tab, select "Go to page view", click the "Add: button, open the file to the page you want to link to, click the "Set link" button.
    Regards,
    Rave

  • How to copy a page to another document?

    In earlier versions of Acrobat Professional I could copy pages from one PDF to another simply by dragging over the thumbnail of the page to the other document's thumbnails.... Couldn't have been easier! I'm now using Acrobat 8 Professional and the thumbnails have been eliminated. An awkward floating panel called "Pages" performs some of the same functions, but it won't let me drag a thumbnail from the "Pages" panel to another document and Acrobat won't let me view two documents "Pages" windows at the same time.
    The "Help" function is rather helpless in solving this problem and I have studied the menus hoping to see a magic "copy page" command somewhere, but no.
    Adobe, if you are listening, why on earth wouild you change such a simple and wonderful function? And if you somehow made copying pages from one document to another easier, at least make it obvious as to how I would go about doing this!
    Any help would be appreciated!
    Thanks,
    -Mark

    I've discovered that when "Pages" is a free floating window there is no way to copy a page from one document to another using drag and drop. The solution is to select "Show Navigation Pane" and dock the "Pages" window in the pane. Only then did it let me see the pages from two documents at once and allow me to drag and drop pages from one document to another.
    Thanks!
    -Mark

  • Can no longer find "Go to a page in another document"

    please see attachment
    The screengrab is from an older version of Acrobat. I use the newest CC version.
    However, I can no longer find how to access "Go to another page in a document"
    under Execute menu items for button parameters.
    Have not used Acrobat since late January.
    maybe I forgot
    Thanks

    I get this.....

  • How to export and import a document library data to a new sharepoint farm

    Hi 
    i have a sharepoint 2010 farm and has one sharepoint web application
    in  this application  it has a document library  and this doc library has a 2000 folders and each folder has  2500 documents
    , here i how i export upto 500 folders from this doc library to a new sharepoint farm 
    adil

    if your both farm are on same version level then you can use export & import funcation if only Document library required.
    Perform export on source farm
    Export a site, list, or document library in SharePoint Server 2010
    copy the files to target farm and run the import.
    Import a list or document library in SharePoint Server 2010
    another way is backup the site collection from source and restore  it to destination.
    for backup: http://technet.microsoft.com/en-us/library/ee748617(v=office.14).aspxFor
    restore: http://technet.microsoft.com/en-us/library/ee748655(v=office.14).aspx
    there is always 3rd party tool options.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to insert page numbers in document

    How can I insert page numbers using Pages starting with the second page of the document?

    click where you want the numbers > Menu > Insert > Page Numbers
    At the end of the first page:
    Menu > Insert > Section Break
    Click in the 2nd page:
    Inspector > Layout > Section > Start at: 1 > uncheck Use previous headers and footers
    Peter

  • Why did Adobe remove link action "Go to a page in another document"???

    When linking documents, you used to be able to link to another document and tell Adobe which page to open on.  Example: I want to link document A to document B but I want document B to open on Page 2 instead of 1.  That option does not exists anymore under Actions, execute menu option.  It was very helpful and I would like it back.

    Yes but when I click Set Link it's only for the opened document. Not the document I need.  And when I try to edit the link, i only get option for name destination which doesn't work.  Below is what I am used to seeing which is not available anymore it appears:

  • [JS] [Win7] [CS5] Moving pages to another document

    Hi guys,
    I need to write a script for my company which merges 3 documents together by selecting the needed pages in two of three documents and moving them to the third document. Everything works fine and I am almost finished but I can't find a way to move pages between documents.
    I also thought about just copying everything on the needed pages but this doesn't work because every document has different master pages which are needed.
    Is somebody able to help me with the needed code to select some Pages and move them to the end of another document?
    Any help would be greatly appreciated.
    Statixx91

    Statixx91 wrote:
    Everything works fine and I am almost finished but I can't find a way to move pages between documents. I also thought about just copying everything on the needed pages but this doesn't work because every document has different master pages which are needed.
    With no pages moved and no pageItems covered - where is the point which you called "almost finish"?
    Example:
    (with 2 documents opened - last opened index = 0)
    var tarPage = app.documents[0].pages[0];
    app.documents[1].pages[0].duplicate(LocationOptions.AFTER, tarPage);
    It duplicates 1st page of 1st doc after 1st page od 2nd doc. Move() method work similar.
    In case of masterPages you can move them as well but this is an open gate to another story, I am afraid.
    Jarek

  • All of a sudden, I can't export Pages or Numbers documents to a PDF

    I've been able to export all of my pages and numbers documents to PDF with no issues.  Now, all of a sudden it's giving me an error message and saying that I can not.

    The icons wouldn't even show on the device if they were restricted. Try downloading an app on the computer and syncing it over onto the iPad to see if that makes it works. If not, I'd likely recommend restoring as it would look like a software issue with the device.

  • Impossible to find how to switch pages inside a document ?

    Hi,
    I'm turning crazy !
    I try to find how to switch the order of some pages inside my document like I did many times easily with Pages (iWork 08 & 09).
    Before you just need to click on a page in the sidebar page thumbnails and move it where you want.
    But in Pages for iCloud and the New Pages in Maverick I don't understand how to make this ?
    Can you help me please ?
    Regards
    Joachim

    Hi Jerry,
    Thank you for the comment.
    Yes, I did it.
    But, when you want to reorganize a course for example, it's not very fluent :-(
    Joachim

  • How to "go to a page in another document" without closing currently open document?

    I've created a form that used a button to jump to another pdf document. This second document is included in the first document as an attachment so that the whole package can be sent to people as one document.
    It works well but the problem is that when the button is selected the document that is already open is closed (albeit with a save document prompt).
    There seems to be no way to keep the existing document open whilst the second document (the linked document) is opened.
    Is there a solution to this?

    Go to the button's Properties and edit the "Go to a page view" action
    you've created. Edit the "Open In" option and set it to "New Window".

  • How to export page layout to epub?

    Alternatively, how can I convert a page layout document to a word processing document, which can be exported as an epub?
    Sorry this is brief but I'm not sure what other info would help in answering the questions. 

    @ Dale & Yvan:
    Thanks for your kind replies, both of which provided some further insight into Pages.
    However, my document is a 16-page monthly newsletter in booklet-sized format.  It contains not only the usual text boxes, but also photos, tables, tables that span several pages, and a variety of other objects.  I convert the finished product to a PDF file suitable for the print shop to print a couple of hundred copies.  The PDF also gets mailed to those who want it.  I am always looking for choices for our membership, which is why I considered exporting it to ePub format as well, since members are now looking at documents on their smartphones and tablets.
    @ Yvan:  Exporting it to Word format causes a lot of parts to go missing or misplaced.
    @ Dale:  I'm not sure if recreating it as a WP document would produce the desired end result, which is a commercially printed booklet.  I will certainly try to set up a template using the Apple template as a starting point. 
    Let me know if you can think of other tricks!  And thanks again.
    -Tod

Maybe you are looking for

  • How to call a variable in another class????

    if i have two classes in a package. From one class, how do i get the value of one of the variable in the other class. For example; Class A have a variable call totalNum which have a value initialise. Class B wan to get the value variable totalNum in

  • How can i move ipod onto a different icloud account pls

    i want to move ipod onto a different icloud account without losing any info on my iphone which is on the same icloud account

  • Performanc​e Issues with the Support Forum

    Thank you for visiting the new HP Consumer Support Forums. We know that the site is having intermittent performance issues. We are actively working on the issue and hope to have it resolved shortly.  See you on the boards. GarenT One of the HP Forum

  • Marketing attribute not assignable with language PL

    Hi *, I have detected a strange behaviour when maintaining "some/special" marketing attributes for BP in logon language PL. The affected attributes are configured as follows. Format                   No. Chars      Dec.Places      Meas. unit      Sin

  • Repeating Table Headers--Boxes grayed out

    I want the headers of some tables to repeat at the top of each page. (The tables have rows that can be added or deleted.) I think I know how this should be done: On Header Row settings, under "Project">"Pagination" the check boxes for "Include Header