Ravi Gelli
asked on
How to convert memory stream to PDF file
Hi,
I am looking a small function, which is going to take 2 parameters and convert into pdf
1. Memory stream
2. File Name (PDF File Name with Directory)
In the function we have to read memory stream content and it needs to add/convert to pdf file using Delphi 6.0
Thanks and Regards,
Ravi G
I am looking a small function, which is going to take 2 parameters and convert into pdf
1. Memory stream
2. File Name (PDF File Name with Directory)
In the function we have to read memory stream content and it needs to add/convert to pdf file using Delphi 6.0
Thanks and Regards,
Ravi G
It depends on what is on MemoryStream ....
ASKER
Memory stream may contain image or text or both, In side the function we have to write the memory stream content into pdf file.
you can only convert a stream to pdf if it's a pdf stream
setting up a random adhoc memory stream and pointing it to a pdf won't work
printing a document to a pdf printer driver is probably your best alternative
setting up a random adhoc memory stream and pointing it to a pdf won't work
printing a document to a pdf printer driver is probably your best alternative
ASKER
Is there any third party components which supports the functionality.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Format your text and images into nice html and load into ms. For pdf - there are open source Synopse PDF engine and here is a blog article how to implement html to pdf ....