For this types of questions, my advice to you is try comp.text.pdf.
Knowing how to embed an image XObject into a PDF file requires that you have
significant knowledge on the PDF file format.
JPEG is special, this is the only format which can be directly embedded into
a PDF file, using DCT encoding.
Your XObject should look *something* like:
<</Type/XObject/Subtype/Image/Name/X16
/Width X
/Height X
/ColorSpace/DeviceRGB/Filter/DCTDecode/BitsPerComponent X
/Length X
/Decode[0.0 1.0 0.0 1.0 0.0 1.0]
stream
[BINARY IMAGE STREAM]
endstream
endobj
You will have to declare usage of images in the ResourceDict->ProcSet
attribute,
it should look like this:
/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"AlexCDM" <Al*****@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com... Greetings;
I'm a (young) .NET developer and I have this problem: I'm building an
application (with C#) that creates PDF files. To display a JPEG image
within
the PDF I need to copy the data from the JPEG file to the PDF (intended as
a
text file); I've tryied with the FileStream class, but it won't work,
maybe
bacause, somehow, the binary data "changed" during the read/write process.
Is there any method to copy the data without changing it?
Thank you very much in advance