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 :sick:
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? :confused:
please help me.
thank you!
-cal
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
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.
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?
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.
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...
Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal
bumped for the day.
still need some help..
Re: NEED HELP/IDEA: Merge multiple word/pdf documents into a single proposal
bumped again...
seems like nobody know about this?
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:
Dim oPDF As Acrobat.CAcroPDDoc
Dim oTemp As Acrobat.CAcroPDDoc
Dim nPagesTo As Long
Dim nPagesFrom As Long
oPDF = CreateObject("AcroExch.PDDoc")
oPDF.Open("C:\sample.PDF")
nPagesTo = oPDF.GetNumPages
oTemp = CreateObject("AcroExch.PDDoc")
oTemp.Open("C:\sample2.PDF")
nPagesFrom = oTemp.GetNumPages
oPDF.InsertPages(nPagesTo - 1, oTemp, 0, nPagesFrom, True)
oPDF.Save(Acrobat.PDSaveFlags.PDSaveFull, "C:\sample3.PDF")
oPDF.Close()
oPDF = Nothing
oTemp.Close()
oTemp = Nothing
where, as you can see....in this example, we mix sample.pdf and sample2.pdf into sample3.pdf.... :thumb:
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
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
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! =)
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