inserting an image in an RTF file
From: John (john_at_nospam.org)
Date: 09/25/04
- Next message: Bruno Storz: "flyers with PHP and PDF"
- Previous message: Ohmster: "Add two onload links to a php page?"
- Next in thread: Janwillem Borleffs: "Re: inserting an image in an RTF file"
- Reply: Janwillem Borleffs: "Re: inserting an image in an RTF file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Sep 2004 12:30:01 +0200
Hi all,
I'm generating RTF files on the fly.
Thanks to the msdn rtf spec
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/
html/rtfspec.asp), I could format my rtf.
Still, I can't find the way to display images in the rtf file !
This is what I tried :
$fp = @fopen("logo.jpg", "rb") ;
$ImageContent = @fread($fp, @filesize("logo.jpg") ) ;
echo "{\*\shppict {\pict \jpegblip $ImageContent}}" ;
When I open the rtf file in word I've got an error message : "Memory or not
enough disk space to end the operation".
Do you have any idea/solution ?
Thank you in advance,
-- john
- Next message: Bruno Storz: "flyers with PHP and PDF"
- Previous message: Ohmster: "Add two onload links to a php page?"
- Next in thread: Janwillem Borleffs: "Re: inserting an image in an RTF file"
- Reply: Janwillem Borleffs: "Re: inserting an image in an RTF file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|