i am developing an vb.net web applications in which user submits some PDF documents in database. i am storing information related to document in the database and saving the pdf file in server only.
i want to merge all the documents of the that user to merge into one pdf file and show tot he user by clicking a button.
is this way directly saves combine file in the system because i want to combine all the documents and combined pdf gets open in browser then if the user wants then they can save the combined document from the browser. ..documents which need to be combined
name, their names and details r stored in the database but the document pdf files is stored in the server ......
Mustu
Member
3 Points
9 Posts
Merge Multiple PDF files from database into one PDF files in one click
Jul 19, 2012 10:07 AM|LINK
Hi everyone,
i am developing an vb.net web applications in which user submits some PDF documents in database. i am storing information related to document in the database and saving the pdf file in server only.
i want to merge all the documents of the that user to merge into one pdf file and show tot he user by clicking a button.
please help , its urgent !!!!
Ken Tucker
All-Star
16797 Points
2608 Posts
MVP
Re: Merge Multiple PDF files from database into one PDF files in one click
Jul 19, 2012 10:23 AM|LINK
You can use ITextSharp for this
http://www.dotnetspider.com/resources/36210-Merge-PDF-File-using-itextsharp-library.aspx
Space Coast .Net User Group
Mustu
Member
3 Points
9 Posts
Re: Merge Multiple PDF files from database into one PDF files in one click
Jul 30, 2012 09:04 AM|LINK
is this way directly saves combine file in the system because i want to combine all the documents and combined pdf gets open in browser then if the user wants then they can save the combined document from the browser. ..documents which need to be combined name, their names and details r stored in the database but the document pdf files is stored in the server ......
Mustu
Member
3 Points
9 Posts
Re: Merge Multiple PDF files from database into one PDF files in one click
Aug 01, 2012 09:23 AM|LINK
I got it working ...Thank you very much for ur help !!!!!
Mustu
Member
3 Points
9 Posts
Re: Merge Multiple PDF files from database into one PDF files in one click
Aug 02, 2012 07:56 AM|LINK
can u please tell me how to open pdf file in new tab ....am using this way but its giving me error
strdesPath = Server.MapPath("~\Documents\") +"hhh.pdf"
CPDF_Merge.MergeFiles(strdesPath, strFilePath, count - 1)
bytes = objWebClient.DownloadData(strdesPath)
Response.Clear()
Response.BufferOutput = True
Response.AddHeader("Content-disposition", "attachment; filename=" +hhh.pdf)
Response.ContentType = "application/pdf"
Response.BinaryWrite(bytes)
Response.Flush()
Response.End()