how do you read a pdf file?
[1/6] from: bry::itnisk::com at: 29-Oct-2002 18:41
Am checking Read with different items over the internet, I'm using view
pro and I only seem to be able to get ahold of text files, I get errors
if I try to read, open, size? Modified? on gif, pdf, and jpg files so
far.
Have tried Read with various refinements, inclusive binary
I don't think this is a code error as I am just writing the single liner
read/binary http://www.xml.com/images/logo_tagline.jpg
or
read/binary http://www.mediamaxx.biz/pdfeksempler/demo.pdf
or
read/binary http://www.mediamaxx.biz/images/logoani.gif
so it must be some sort of settings error.
[2/6] from: chalz:earthlink at: 29-Oct-2002 13:51
I'm using REBOL/Core on Windows 98SE, and it seems to be working, sort of.
Here are my results:
> Am checking Read with different items over the internet, I'm using view
> pro and I only seem to be able to get ahold of text files, I get errors
<<quoted lines omitted: 3>>
> I don't think this is a code error as I am just writing the single liner
> read/binary http://www.xml.com/images/logo_tagline.jpg
== #{
FFD8FFE000104A46494600010201004800480000FFED022850686F746F73686F
7020332E30003842494D040400000000000D1C0200000200021C02780001...
> read/binary http://www.mediamaxx.biz/pdfeksempler/demo.pdf
== #{
255044462D312E330A25AAABACAD0A342030206F626A0A3C3C202F5479706520
2F496E666F0A2F50726F64756365722028464F5020302E32302E3429203E...
> read/binary http://www.mediamaxx.biz/images/logoani.gif
== #{
4749463839618A022A00C41F00EFB305CACAC9FBFBFA959595665528AEAEAEFD
EBB72B2D33505050727272886C20FFC100E6E6E5AB8417C69710FCC527DE...
>> size? http://www.xml.com/images/logo_tagline.jpg
connecting to: www.xml.com
== 14954
>> modified? http://www.mediamaxx.biz/pdfeksempler/demo.pdf
connecting to: www.mediamaxx.biz
== 25-Jul-2002/16:19:49
Sounds, then, like a settings error. What kinds of results do you end up with?
[3/6] from: bry:itnisk at: 29-Oct-2002 20:40
Whoa, getting your email I fired up Rebol again and now they all work.
Hmm, I think what happened was at one point during the last Rebol
session I was fiddling with the Proxy settings, they messed up, then I
reset them and things seemed to be going well again, no idea why some
things were working but others just quit. The error I had was Access
Error cannot access open-proto
That is of course dependant on my memory but I believe it said that.
So thanks for emailing just as I was gonna head home, and causing me to
get lost inside Rebol for another 20 minutes or so :)
By the by if I do the following:
Read http://
I get
<html>
<head>
<script language="JavaScript">
var thisUrl=document.URL.toString();
document.write('<meta http-equiv="refresh" content="0;
url=Redirect.asp?url=' + thisUrl + '">');
</script>
</head>
</html>
this is not my homepage or anything, I suppose it must be a resource
file from some Microsoft app, anyone know which one? I swear I have seen
that code before :)
[4/6] from: al:bri:xtra at: 30-Oct-2002 16:20
> By the by if I do the following:
> Read http://
<<quoted lines omitted: 9>>
> </html>
> this is not my homepage or anything, I suppose it must be a resource file
from some Microsoft app, anyone know which one? I swear I have seen that
code before :)
It might be your ISP's mail web site?
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[5/6] from: chalz:earthlink at: 29-Oct-2002 23:19
> That is of course dependant on my memory but I believe it said that.
> So thanks for emailing just as I was gonna head home, and causing me to
> get lost inside Rebol for another 20 minutes or so :)
:) Glad to be of service! Hehe. Not that I actually DID anything..
> By the by if I do the following:
> Read http://
<<quoted lines omitted: 11>>
> file from some Microsoft app, anyone know which one? I swear I have seen
> that code before :)
No idea. I do that and get:
print read http://
connecting to: mail.earthlink.net
<html><head>
etcetcetc. Perhaps it's just the only server that's been specified in REBOL's
settings, so that's what it uses. *shrugs*
--Charles
[6/6] from: anton:lexicon at: 31-Oct-2002 22:19
That's interesting, this is me on win2k, on:
REBOL/View 1.2.8.3.1 3-Aug-2002 beta
REBOL/View 1.2.1.3.1 21-Jun-2001
whilst not connected to the net:
>> read http://
** Access Error: Cannot connect to smtp.lexicon.net
** Where: open-proto
** Near: read http://
But this on REBOL/Base 2.6.0.3.1
>> read http://
** Access Error: Invalid port spec: http://
** Near: read http://
That seems more reasonable.
Anton.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted