On Friday, July 25, 2003, at 09:59 AM, Scott Cadillac wrote:
Hi Dale,
Content that is not text based, cannot be embedded in an HTML page.
It's like if you tried to do an @include for a GIF image in your HTML - it wouldn't work either. The webpage either has to reference the non-text content externally via the <IMG> tag, or with something like the <OBJECT> or <APPLET> tags.
Off the top of my shinny head, I don't think PDF works with the HTML <OBJECT> tag, so if you want to show the PDF surrounded by other HTML content then you have to use <FRAME> or <IFRAME> and call the PDF separately.
One of the main reasons this breaks, is because the HTTP Header for the content is missing, so the browser doesn't understand what the binary content is and therefore won't load the appropriate plug-in.
I have a short article I wrote awhile ago that describes how you can grab a PDF file from a secure location (using the File Action), and controls it's output - if that's what you are trying to do.
http://xml-extra.net/webpage.xmlx?node=38
Hope this helps. Cheers...
Scott Cadillac,
Witango.org - http://witango.org
403-281-6090 - [EMAIL PROTECTED]
--
Information for the Witango Developer Community
---------------------
XML-Extranet - http://xml-extra.net
403-281-6090 - [EMAIL PROTECTED]
--
Well-formed Development (for hire)
---------------------
-----Original Message-----
From: Dale Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 7:17 AM
To: Witango-Talk list
Subject: Witango-Talk: Any way to include a pdf file?
I am setting up a web page, and decided it would be neat if I could just use includes (in a table) rather than frames. This was because I wanted to load two frames on one link, and wanted to avoid Javascript.
Well, everything works VERY nicely except that one of the files is a PDF file and it loads as postscript (see below), rather than PDF...
I tried adding an encoding=none, but that didn't fix the problem...
%PDF-1.3 %Äåòåë§ó ÐÄÆ 2 0 obj << /Length 1 0 R /Filter /FlateDecode >> stream xœµ\Ksܸ¾ãWð¨¤Ö4ñ&rI6Nv³—ݲ¶ö’ËxDKÜÌCž±ìr~}$^Dƒ”†£XåòXÝøÐ/t7@
?U¿VŸ*ÓTTÐZ+^ Î*EE͸®N]õ{u¨huÞSS·”Kiª~Þ„ÿ™†h©ªí~ø½ä´ÒRÚ¡úí»3¶gË´4ùW˜†5E&9r• [ÁXŠ)2³j_Z+¦)ü¦•n«ˆfê–O~#÷ H6Õ¢8¤aòLóêÍÇߌmSÖœ,kžë°_42¶E4;FÍ!.Ù—v®¦êÉBxûþ¥²ºÝWo 5|®n?’›êOÕíÕ?o!´ÜªRFÖÚèŠU³†WV+ [YoéNÛîñóÓfWúêñ|vÏ›À€oÚÓêÇdŠ¶©97~ Be-¤VsSTéž7§`$b!7¼ - »5íÔp6Ü/J¨š*C¨ÖVº©x;«[`´?Q’1jšÓG#2ÉjMA5Îk£(ê!\eͬ¥ðldœÍñ5Cnys¬q2QÌI.3g1
!ÛQ˜åsªZZ«H6® †‚s’YszƉ93´QCI9eKëÖ´åuCµÿgv.KVcúvŸÒ8•*3Mr™1™3&”Ž¤ ˜“¼ýs¾ïvÝöó`Ó”ªÜÈì >!¶Ä¿ŸNˆÞ²lðà9‰É¬Äm"•øî¸ßô‡¿L€pÕÔ´±ÖÃJ7ÕÖ¬¥½0Ÿ†óSJ'ãmœ‚+] &ƒ’Ãä9-%¦
f ¿Nø4¬]Î2>°ò JÊ9Ó®ÇH#-0ªÚ“#2Ìh8dä6³3åF3ä—ŒQFâÍÚÀÖ2g”QPV[3FFbUq,®¢ÆŒLåŠLÜ9 ÇÖ¢‚\ÏE̘ÝÁÈ‚ëÆIÈï ~S ɹ‚ù C B›ZÚŒº[ûÓTÿ™Ï^TÕ°!Yƒiì2¤nRûL?,BáÏ?ý õI¶"W¦~hv ƒ’3