Merge issue : page numbering

hi all,
does anybody know how to add "total pages" after merging pdf documents
adding "page <?>" works fine
in other words , i need to add at the bottom of the merge document
"page <?> from <total pages>"
---- code sample ---
the code provide only page number
// Initialize PDFDocMerger
PDFDocMerger docMerger = new PDFDocMerger(inputStreams, outputStream);
// Calls several methods to specify Page Number
// Calling setPageNumberCoordinates() method is necessary toset Page Numbering
// Please refer to javadoc for more information
docMerger.setPageNumberCoordinates(300, 20);
// If this method is not called, then the default font"(Helvetica, 8)" is used.
docMerger.setPageNumberFontInfo("Courier", 8);
// If this method is not called, then the default initial value "(1, 1)" is
used.
docMerger.setPageNumberValue(1, 1);
// Merge PDF Documents and generates new PDF Document
docMerger.mergePDFDocs();
thanks
yuval

Hi,
Did you find any solution to your problem. Even I have the same requirement.
Regards,
saq

Similar Messages

  • Merging PDF / Page Numbers / Acrobat SDK V9  & LiveCycle

    Hello everyone,
    I use Adobe LiveCycle to create forms, Visual Studio 2005 and the Acrobat SDK for the application I'm programming to fill in these forms. The application fills in the forms and merges them with no issues.
    The problem I have is that these pages have page numbers in the upper right. I use the Page N of M object on these forms in LiveCycle. PDF page numbers are filled in correctly when filling in the forms, but when I merge PDFs, the pages keep their original page numbers. I've looked at the Windows - Interapplication Communications even using templates to no avail.
    How can I merge these pdf's and have my program renumber these pages correctly and how can insert pages anywhere I want in the merge document?
    Below is the code I use to merge the PDF's. It was posted in a forum.
    Sub MergePDF(ByVal ThePath As String, ByVal outFileName As String)
    On Error GoTo serror
    Dim dPDDocMerge As New Acrobat.AcroPDDoc
    Dim dPDDoc As New Acrobat.AcroPDDoc
    Dim strFiles() As String
    Dim numPage As Integer
    Dim TotalPage As Integer
    Dim objThisFile As IO.FileInfo 'get FileInfo object for file string
    strFiles = System.IO.Directory.GetFiles(ThePath) ' Read in the file names
    Dim b As Boolean ' mostly for testing purposes... could use it for error 'checking to make sure that a file is really added before deleleting it...
    For i As Integer = 0 To strFiles.Length - 1 ' run through all the files in 'the directory
    objThisFile = New IO.FileInfo(strFiles(i)) ' Get the extension
    If objThisFile.Extension = ".pdf" Then ' Only add in PDFs
    If dPDDocMerge.GetFileName = "" Then ' check if it's the first file
    dPDDocMerge = New Acrobat.AcroPDDoc
    b = dPDDocMerge.Open(strFiles(i)) ' open first file
    TotalPage = dPDDocMerge.GetNumPages
    Else
    dPDDoc = New Acrobat.AcroPDDoc
    b = dPDDoc.Open(strFiles(i)) ' open other files
    numPage = dPDDocMerge.GetNumPages ' get the page count
    TotalPage += numPage
    b = dPDDocMerge.InsertPages(numPage - 1, dPDDoc, 0, dPDDoc.GetNumPages, _ False) ' Insert
    End If
    End If
    Next
    'b = dPDDocMerge.Save(1, ThePath & "\" & outFileName) ' save file
    b = dPDDocMerge.Save(1, ThePath & "\" & "\MyTest.PDF") ' save file
    b = dPDDocMerge.Close()
    Exit Sub
    serror:
    MsgBox(ErrorToString)
    End Sub
    Thanks for any code or advice.

    You can't merge LiveCycle forms this way :(. LC forms are NOT standard PDF files and can't be processed in the same way.

  • Page Numbers Not Appearing in Data Merge Document?

    Hello, hopefully someone can help. I am pretty new to InDesign but learning a lot.  I am creating a member directory of about 200 pages (about 2800 records merged from .csv to InDesign 6). Everything is working fine with the merge, except generating the page numbers.  I tried adding page number at the bottom of the page to the master BEFORE merging. But if I do that, it greys out the "multiple records per page" option when trying to perform the Data Merge (using "Create merged Document").  So, I tried adding the page number to the A-master AFTER creating the merged document, but the page number is not appearing on any of the pages.  There must be a way to do this, can anyone help?
    (FYI - to generate the auto page numbers, I am going to the Type-Insert Special Character-Markers-Current Page Number, and placing that within a text field at the bottom of the page.  Thanks in advance. )

    Here is a screen shot.  I have placed it on the A-Master.  See Screenshot#1.  Screenshot #2 shows Page 70 with no page number (and no other pages have page numbers that I can see.  Thanks for your advice on fixing....
    Sorry, here is screenshot #2, (with personal details redacted but the records are there behind the grey boxes):

  • RoboHELP to PDF Page numbering issue

    HI,
    I am experiencing a problem related to page numbers in the pdf generated through the RoboHELP source files. Hereby I am giving some images of the initial pages of the PDF, in which I have clearly explained the issue. I have removed the content and images related to our project. Please let me know, how I can overcome this issue.
    NOTE: The page numbering issue was not there earlier.  I have imported two frame maker files. Then I was not able to generate a PDF. That particular FM file had a table. Read in the Adobe forum that some type of tables may affect the generation of PDF. Hence, I have deleted the FM files. Since then I am facing the page numbering issue.
    Here are the images with my explanation of the issue:
    The following is an image of the pdf. This is actually the fourth page of the pdf, but it is numbered as xiv.
    The next pae is numbered as xv. Again the numbering reverted back to xiv as shown in the following iamge.
    Immeditely after the TOC, the 1st page is numbered as 115.
    Again every 1st page of a chapter is starting as page number 115
    The 2nd page of every chapter is numbered as 126.
    The 3rd page of every chapter is numbered as 125.
    The fourth page again numbered as 126 followed by 125, which is continuing till end of the chapter.
    Please let me know how this issue can be solved.

    I am not sure what is causing this but can suggest a workaround. Instead of publishing direct to PDF, create a Word document only. That may have page numbering issues but there you should be able to correct them. Then publish your PDF from Word.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Page numbering issue on export to PDF

    I am using the Crystal Reports for Eclipse to export a report as a PDF. The report contains a grouping which has "reset page number after" set to true. The group name field is not displayed on the report. The problem that I am encountering is that the page number is not being reset. If I export the same report using Crystal Reports 2008, the page numbers are reset correctly. Also, if I display the group name field on the report, the page number also resets correctly when exported through CR for Eclipse. This issue did not occur when using the .jar files from Business Objects 11, it only started when we replaced the .jar files with CR for Eclipse. Is this an issue with CR for Eclipse or is there something I need to change in the report for this new version?

    Thank you. We have been able to work around the problem by displaying the group fileld on the report, but setting the font color to white so it cannot be seen by the end user.

  • Pages Merging from Multiple Numbers Tables

    I'm trying to merge data into a Pages document from a Numbers document.
    My Numbers document has 2 tables.
    When I select a location in my Pages document where I want some data from Numbers to appear, and then select the Link button in the Pages Inspector, and then select Choose, and then select Numbers Document in the "Select Mail Merge Source" window, only 1 of the 2 Tables inside Numbers is offered as a choice from which to merge data from Numbers.
    What do I have to do so that in the "Select Mail Merge Source" window, both Tables appear as choices from which to pull data?
    Thanks.
    Neil

    Here are some link that will give you information
    http://discussions.apple.com/thread.jspa?messageID=10161846&#10161846
    http://discussions.apple.com/thread.jspa?messageID=9788717&#9788717
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=142

  • Page Numbering when merging a document

    Please help!
    I am presently working a trial copy of CS3 and trying to figure if I will convert from PM7.
    I publish a 12 page newsletter each month with a merge of name and address. The merge works but the page numbers continue after the first set of pages.
    In other words p1-p12 is the first set and p13-p25 is the second and so on, but I want to retain the original page numbering of p1-p12 for each merged set.
    Can anyone guide me to get this to work?

    No Problem. I'm presuming you don't have a merge-in-print-stream workflow available, so you need to make, ultimately, a 6,000 page document (as I said, this is not the ideal solution). That's the way Data Merge works in ID.
    Create a twelve page facing-pages doc to start, and add the fields you need for mailing addresses to the first or last page, and the rest of your fixed content wherever it belongs. Since all of the content is static except for the address info, you can actually build the entire document on master pages, if you wish, using a different master for each page, but it's pretty much six of one, half-dozen of the other. The advantage to putting the fields on the master page is you can update the data file. DON'T ADD AUTO PAGE NUMBERS. Put real numbers on pages 1-12, and they'll repeat along with the rest of the stuff.
    With the document set up this way, execute the merge (you can test it by doing a limited number of records). You should get a document with all pages repeating, in order, and the merged addresses.
    In my test run the last page of one set was shown separately from the following first page of the next set in the pages panel, and if you open the panel menu and uncheck the "allow document pages to shuffle" option, they will stay that way. It makes no difference for printing, but it is more intuitive to keep them broken apart.
    To print, use Print Booklet, and set up as two-up perfect bound with a signature size of 12. You could also do this with a 4, 8, or 16 page newsletter with a corresponding signature size count. Set the page size to landscape tabloid in the print options, and check the preview. Should be good to go. Go fishing while you wait for it to spool those 6,000 pages.
    The good news is that the same 12-page base document should work with a commercial Xerox or other high volume copier/printer that has a data-merge module in the RIP (though you might have to do the imposition yourself, and there are scripts for that that work just fine), so you have to do the same work either way.
    Peter

  • Why doesn't mail merge in Pages reflect changes made to the numbers source document?

    When using mail merge in a Pages envelope document, changes made to its Numbers address source document are not reflected.  I have to create a whole new Pages envelope document and choose the Numbers address source document merge fields all over again.
    I never had any trouble doing this with Word and Exell!  
    What am I doing wrong?

    Denney,
    Mail Merge from Numbers works just as you are trying to use it.
    You create a Numbers document with the proper layout for merging.
    Enter the data in teh numbers document and Save it.
    You create a Pages Document to merge into and create the links to the Numbers document.
    You Edit > Mail Merge in Pages.
    To merge again from the Numbers document, make the necessary edits, Save the Numbers document and do the mail merge again in the Pages document that you created for that purpose. The only problem that normally arises is that we forget to Save the Numbers document after editing.
    Jerry

  • Script to merge data from Numbers into Pages document, export as PDF and send via email

    Hi,
    I am wondering if it would be possible to achieve the following with an applescript:
    1. Merge Names from Numbers into a multi-page Pages document.
    2. Export each page of the resulting document as a PDF
    3. Attach each of these PDFs to an email with specific text in the body of the email, setting the subject, the 'from' email address, as well as the 'to' email address from a field in the Numbers document.
    4. Optionally send the emails automatically.
    I would be glad to know if this is possible before I embark on trying to write such a script, and for any advice/script that would help me on my way.
    Thanks,
    Nick

    Thanks Bernard.  Sorry if my original post wasn't that clear.  I think you've pretty much got it in your paragraph starting "So, I think you're asking for", but will explain more in the hope that it will be clearer:
    I have a Numbers table with 2 columns: Name and Email.  I have say 50 people in this table and I need to email each person a version of a one page Pages document which would be identical except for their name.
    The Name field is the only field that needs to be merged into the Pages document (one time only).
    Once the merging has taken place the versions of the one page Pages document need to be exported as a PDF and attached to emails, one email from each person in the table in the Numbers document, with each email going to the email address corresponding to the name in the Numbers document.
    The text in the email would be identical except for the name again.  The text for the email body, subject as well as the 'from' field would be contained in the script (i.e. generated by the script).
    It would also be good to have the option of sending the emails automatically or manually, so that I could check that the emails that are generated are correct before sending.
    I hope that's clearer!
    Nick

  • How do I mail merge from multiple Numbers sheets into a single Pages doc?

    I am trying to mail merge in a Pages doc with more than one Numbers file as a source.
    I am unable to do this, because the target fields only reference a single Numbers sheet. Fields needed from other Numbers sheets to populate my Pages doc show up as 'untargeted' and the merge attempt fails.
    Can anyone help?
    Thanks!

    shefletch wrote:
    I am trying to mail merge in a Pages doc with more than one Numbers file as a source.
    I am unable to do this, because the target fields only reference a single Numbers sheet. Fields needed from other Numbers sheets to populate my Pages doc show up as 'untargeted' and the merge attempt fails.
    The User Guide is clear: we may merge from ONE Numbers table.
    Reorganize your datas so that they are available to the merge process from the first table of the first sheet of the used document.
    External references are your friends to do that.
    Yvan KOENIG (VALLAURIS, France) mercredi 9 septembre 2009 18:01:34

  • Page numbers after merging

    Hi,
    I have 2 documents that I am merging together using adobe SDK both have independent page numbers. Is there a way to re-distribute the page numbers so that it counts from 1 to however many pages are in the combined document rather than re-starting the number at the point where the documents were merged?

    What are the page numbers? Just regular on-page text that you would want the API to recognise and edit? Or something else?

  • Pages, Numbers, Keynote issue with WebDAV

    I am in need of your assistance as the new version of Keynote appears to be causing issues, and I am not sure where to go or what to do to report this.
    Here is the situation.
    We have a Sharepoint server running WebDAV services.  Our students use WebDAV capable applications on their iPads such as Pages, Numbers, Keynote, WebDAV NAV +, etc.   They create files using these apps on their iPads and then save them to their "WebDAV" folder on the SharePoint server.  This is necessary so that students may access their files via the iPad in our LMS and turn in assignments via a digital dropbox.  This has worked fine in the past until the update of Pages, Numbers, and Keynote.  In the past these apps on the iPad have always placed a single file on the server to which the students could go in and retrieve the file or send it to a digital dropbox in our LMS through a WebDAV connection between the LMS and the SharePoint server.
    With the update of these apps on the iPad to the newest version, Pages, Numbers, and Keynote now place a folder on the SharePoint server of which it contains the following items:  folder titled "Data", folder titled "Metadata", icon titled index.zip, icon titled preview-micro.jpg, icon titled preview-web.jpg, icon titled preview.jpg.
    The issue is that now with this being a folder, students are no longer able to retrieve the file nor are they able to go into the LMS and send the file to a digital dropbox as it is now a folder and not a packaged file.
    This is a serious setback to us as it renders Pages, Numbers, and Keynote useless since they can not use their iPads to retrieve or submit their assignments to a dropbox in an LMS or bring it back to the apps on the iPad. 
    As I said earlier, this worked perfectly fine prior to the new version of Pages, Keynote, and Numbers.
    I believe this to be a Pages, Numbers, Keynote issue as when I send the file from Keynote to the WebDAV folder as a PPT, everything works fine.  Kind of hard to get the staff to use Keynote when all they see is the "PowerPoint" verson works with no issues.  Also, this would be a poor work around for something that use to work in the past.
    Anyone else experience this or have suggestions?
    Thank you in advance.

    I'm not sure if this is exactly what your original post is about but I saw the comments under it talking about
    getting the same notification over and over again that dropbox files were updated, like it's in a loop and won't stop. I also am seeing the properties.plist, index.zip and preview-micro.jpg as the updated file names when I click on my little dropbox icon on the top of my desktop. I am on a Macbook Air OS X 10.9 (Maverick). I've been using dropbox for a while and this seems to have started after I upgraded to Maverick.
    I wrote to Dropbox and here is the process they had me follow to correct this problem, and it worked perfectly, so I thought I'd share (**the only step that I didn't do is step 4 because I couldn't find the dropboxhelpertools folder in my library):
    Thank you for contacting Dropbox Support!
    There appears to be a problem with the Dropbox software currently installed on your computer. I'm going to have you do a full reinstall and resync to attempt to fix the problem.First, make sure you save and quit ALL programs that access files in the Dropbox folder.
    Here are the steps:
    1. Download the newest version:
    - http://www.dropbox.com/install/
    2. Stop the Dropbox desktop application (if needed)
    - Click on the Dropbox icon.
    - Choose Quit/Stop/Exit
    3. Delete Dropbox meta-data folder:
    - To delete this folder open a Terminal (Located at /Applications/Utilities/Terminal for Mac OS)
    - Copy and paste the following lines into the Terminal and press RETURN:
    mv ~/.dropbox ~/.Trash/dropbox.old
    - This will move the folder to the Trash and make it visible.
    4. Delete the Dropbox Contextual Menu Item Plugin
    - Open the Finder and select Go to folder... from the Go menu (or press Shift-Command-G)
    - A dialog box should appear. Now copy and paste the following line into the box and press the return key:
    /Library/
    - Finally drag the DropboxHelperTools folder to the Trash and enter your Administrator password if prompted to complete this action.
    5. Reinstall the Dropbox desktop application
    - Open the Dropbox .dmg file and double click the Dropbox icon.
    - Dropbox should appear in your menu bar.
    - Relink your account.

  • Page numbering/imbedded font issue ~ converting from Word 2003?

    I am new to this forum, so please forgive me if this issue has been addressed 100 times already!
    I am preparing a novel for publication through Createspace (Amazon). Their requirements include that the fonts all be imbedded, and that page numbering begins with '1' on the first page of the story. When I convert my properly numbered word 2003 file to pdf, it comes out looking great, but the page numbers begin with 5 on first page of the story. So I have 2 questions:
    If the pages look okay in terms of font, does that mean that my fonts are correctly imbedded in the pdf?
    and
    Is there a way for me to control the page numbering so it begins with 1 on the first story page?
    Thanks in advance!

    I'm terribly sorry for the trouble. We are working to address the problem with page numbers in an upcoming release, but for now I recommend you try the conversion again using Adobe Acrobat desktop software. You could download a free 30 day trial if needed here:
    http://www.adobe.com/products/acrobatpro/tryout.html
    Kind Regards,
    Michelle

  • Acrobat XI page numbering issue

    After upgrading from acrobat 8.3 to acrobat XI page numbering takes 5 to 10 minutes per 80 page document. With acrobat 8.3 the same function took seconds. What can be done to improve this function. Any help would be greatly appreciated. We have tried saving the doc in the higher version first but that does not seem to matter. A doc created with the new version is fast but the old ones are very very slow. Creating all new docs is not a good option since we have 500 or so.

    Hi Jeff ,
    How exactly are you trying to add the page numbers?
    Do you want to add the page number for your reference ?
    By adding header and footer under the pages option in Tools pane you will get an option of adding page numbers.
    See that once and let us know how it goes.
    Regards
    Sukrit Dhingra

  • Page Numbering Issues

    Hi,
    I have almost completed my first document using Indesign 4.0.5. I am obviously new to the software and am having trouble understanding how the page numbering works. (I did a search on page numbering in the forum and nothing came up - could be something up with the search.)
    My document is an 8.5"x11" brochure with 18 pages. I would like to begin the page numbers after the table of contents page or at least have these as visible page numbers starting at page 1. I am using absolute page numbering and have created a master spread with page numbers. Right now my page 1 is cover, page 2 is back of cover, page 3 is TOC page, page 4 is beginning of document. How can I make page 4 show page 1 and have the following pages update as page 2, 3, 4, etc.?
    Sorry for the elementary question.
    Rob
    Adobe CS2 Standard
    Windows XP Pro
    4GB RAM

    >I realize that means page 1 will now be on the left which is not typical but without adding an additional page or calling the TOC page 1 there is no way around that.
    If you can't rearrange the prelims, adding a blank verso page is the standard fix. Having the rectos even will be seen by most people as your error.
    >I always thought that one should start page 1 after the TOC but I am seeing more documents of this size starting page one on the cover (not visible) and the TOC page being page 3.
    I suspect it's the result of more and more people with no knowledge of typography and book design "setting" their own books simply because they think that five minutes playing with a DTP app (or even Word) makes them just as good as those who spent years learning the trade. Covers traditionally were not numbered, and the prelims were numbered with roman numerals. This protects you from having to renumber the whole book if your TOC or other preliminary matter ends up taking up more room than you had estimated. And the prelims don't automatically end with the TOC - each publication has to be treated individually.

Maybe you are looking for

  • How to call a form from one form to another form with parameter..

    i'm having a from that will shows the info about the orders that the client has. and i want to show the information of the client. for that i have created one form and i want to call the form from my current form with the given client name as a param

  • From Tiger to Leopard. And back to Tiger...

    hi =) i was running tiger 10.4.10. i upgraded to leopard quite smoothly. then i installed the 10.5.1 update. all went downhill from there on. i always verify/repair permissions + check HD before and after each installation, in addition to running the

  • Can I have both Firefox 3.6 and 4.0 installed on my laptop

    Some of my old programs, ie Roboform do not work with the new Beta 4.0. However, I like the new program's download speed. Can I load both on me computer Microsoft XP Laptop

  • MuVo TX FM and Debian Linux Prob

    Hi everybody, I have bought a "MuVo TX FM" last week. I am using debian linux 3.0 r4 as operating system. Copying mp3's from linux to the player is fine. But after copying, when i turn on the player, it hangs when showing the message "MuVo TX FM" and

  • Startsap: Cannot write class prefetch list

    Hello, at startup from SAP on oracle 11.2.0.4 with a Java Only Netweaver 7.4 I have got a problem with the file "class_prefetch.lst". Error message: sidadm> startsap Checking SID Database setTrace: false WARNING: Cannot write class prefetch list; cla