Link to home
Start Free TrialLog in
Avatar of Ravi Gelli
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
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

It depends on what is on MemoryStream ....
Avatar of Ravi Gelli
Ravi Gelli

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
Is there any third party components which supports the functionality.
ASKER CERTIFIED SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ....