Results 1 to 13 of 13

Thread: NEED HELP: Merge multiple word/pdf documents into a single proposal [SELF RESOLVED]

  1. #1

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Resolved NEED HELP: Merge multiple word/pdf documents into a single proposal [SELF RESOLVED]

    Dear guys,

    I'm currently on the last phase of my quote software that i'm writing for my internship...

    my boss asked me so that the program will able to choose multiple documents that the customer requested during quote (term of sales, payment method, machine drawing, etc) into a single proposal

    there are a lot of documents.....approximately, 10 or more....the idea is to put them as radio button......and the sales people can select which documents the customer request.....when the guy click OK (say, 6 out of 10 selected), i need to merge them into a single document (pdf or doc)....

    then, the salesman will be able to send it as an attachment trough email....

    is this whole idea possible to do?

    please help me.

    thank you!

    -cal
    Last edited by zen_master; Jul 19th, 2005 at 11:22 AM.

  2. #2

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    bumped. no idea? no suggestion?

    if it's not possible.......(at least in my knowledge right now), i've to let my boss know and find another solution/approach

  3. #3
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    get Adobe Acrobat 7.0 and it can create a single pdf from multiple types of documents.
    "The dark side clouds everything. Impossible to see the future is."

  4. #4

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal



    i need to control it from my program VB.NET.....

    can i control adobe acrobat using codes?

  5. #5
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    no you can't control it vb.net.

    I've download the trial version of this .net library http://www.o2sol.com/pdf4net/products.htm , but have not tested it.
    "The dark side clouds everything. Impossible to see the future is."

  6. #6

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    ck.....this sucked.

    i've done some research also...they're offering free trial of pdfmaker DLL..

    if that's the only way, anybody here got any experience about it? maybe a suggestin which product?

    in that case......if that's really working, then i'll contact the department to buy em...

  7. #7

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    bumped for the day.

    still need some help..

  8. #8

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    bumped again...

    seems like nobody know about this?

  9. #9

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal

    hehehe..

    seems like people around here don't have much of an idea about this....but, luckily, i found out how to do it....it's quite simple, actually..

    u need to install adobe acrobat professional...and then, add reference of "Acrobat" into your project...

    then, the code...is simply:

    VB Code:
    1. Dim oPDF As Acrobat.CAcroPDDoc
    2.         Dim oTemp As Acrobat.CAcroPDDoc
    3.  
    4.         Dim nPagesTo As Long
    5.         Dim nPagesFrom As Long
    6.        
    7.         oPDF = CreateObject("AcroExch.PDDoc")
    8.         oPDF.Open("C:\sample.PDF")
    9.         nPagesTo = oPDF.GetNumPages
    10.  
    11.         oTemp = CreateObject("AcroExch.PDDoc")
    12.         oTemp.Open("C:\sample2.PDF")
    13.         nPagesFrom = oTemp.GetNumPages
    14.  
    15.         oPDF.InsertPages(nPagesTo - 1, oTemp, 0, nPagesFrom, True)
    16.         oPDF.Save(Acrobat.PDSaveFlags.PDSaveFull, "C:\sample3.PDF")
    17.  
    18.         oPDF.Close()
    19.         oPDF = Nothing
    20.         oTemp.Close()
    21.         oTemp = Nothing

    where, as you can see....in this example, we mix sample.pdf and sample2.pdf into sample3.pdf....

  10. #10
    New Member
    Join Date
    Dec 2002
    Location
    Melbourne
    Posts
    10

    Re: NEED HELP: Merge multiple word/pdf documents into a single proposal [SELF RESOLVED]

    Hi Zen_Master

    I am having the same requirement as urs (converting docs to PDF and merge them). I installed Acrobat 7.0 professional and started using APIs provided.

    I have successfully converted other docs to PDF. But now the merging seems to be a problem. I am doing the same as you. The error I am getting when it executes InsertPages method.

    Error description is 'Object doesn't support this property or method : 'InsertPages'.

    The object browser in VB 6.0, Visual Studio.NET 2003 displays this method as a public part of AcroPDDoc class. I tried VB 6.0, VB.NET and VBScript. But I am getting same error again and again.

    Please help me if you were across this issue.

    Many Thanks
    Jigar

  11. #11
    New Member
    Join Date
    Dec 2002
    Location
    Melbourne
    Posts
    10

    Re: NEED HELP: Merge multiple word/pdf documents into a single proposal [SELF RESOLVED]

    Solved..

    The problem with 2 different version installed on the same machine. Wrong reference was getting inserted.

    Cheers
    Jigar

  12. #12

    Thread Starter
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: NEED HELP: Merge multiple word/pdf documents into a single proposal [SELF RESOLVED]

    yo!

    sorry...i didn't check out this thread for a while...

    it's good that you solved it! =)

  13. #13
    New Member
    Join Date
    Oct 2005
    Posts
    1

    Re: NEED HELP: Merge multiple word/pdf documents into a single proposal [SELF RESOLVED]

    Hello JD SURAT,

    Can you please post an example regarding how did you convert a doc file into pdf using adobe API.

    Thanks,
    Johnny

    Quote Originally Posted by jd_surat
    Hi Zen_Master

    I am having the same requirement as urs (converting docs to PDF and merge them). I installed Acrobat 7.0 professional and started using APIs provided.

    I have successfully converted other docs to PDF. But now the merging seems to be a problem. I am doing the same as you. The error I am getting when it executes InsertPages method.

    Error description is 'Object doesn't support this property or method : 'InsertPages'.

    The object browser in VB 6.0, Visual Studio.NET 2003 displays this method as a public part of AcroPDDoc class. I tried VB 6.0, VB.NET and VBScript. But I am getting same error again and again.

    Please help me if you were across this issue.

    Many Thanks
    Jigar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width