Click here to Skip to main content
15,917,862 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have a column in my table named ImageApplicant of image datatype . I insert image that are stored in form of bytes in this column. I want to render content of this column as pdf. for this i loop through number of rows in my table and read byte array and create pdf. For each record in my table i am getting one pdf.
My problem is that now i want to render all images in SINGLE pdf( not a pdf for each record)
for that i have to merge content(byte array) of ImageApplicant column i dont know how to do that is there any best solution for that...
Posted

1 solution

You can find the answers over How to merge 2 or more byte items in array to one byte element[^].
ColinE wrote:
To achieve what you require, deserialize each byte array into a suitable PDF representation, than use a suitable API to merge the documents together.

Sergey Kudriavtsev wrote:
To implement the effect you want to achieve you'll need to use some 3rd party C# PDF library. You can find some links to open-source PDF libraries in answers to this SO question[^] or there[^].

[Updated]
Try to implement this solution by Sergey Kudriavtsev[^]

To merger pdfs, the best article to follow is Simple .NET PDF Merger[^].

Thanks...
 
Share this answer
 
v2
Comments
Pratika05 22-Sep-12 1:11am    
I think merging the documents together is time consuming so i want to render all bytes in single pdf but if its not possible than can u suggest me a suitable way to merge documents(pdfs)
Actually the link I have posted in my solution contains code how to merge the two images with byte array. I think you have not seen that.
Link to answer- Solution
I am also updating my solution with this and one more link to merger pdfs.

Thanks...
Check I have updated my solution and added two new links under "[Updated]"...

Hope it helps...
Thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900