Fwd: pdf files http_open
Josef Fydl <[email protected]> Tue, 13 May 2014 22:22:47 -0400
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
I can not attached, but this is the code
open('byswi.pdf', write, S),http_open('http://www.whitehouse.gov/sites/default/files/docs/wh_now_is_the_time_full.pdf', In, []),
copy_stream_data(In, S),close(In),close(S).
And you can enter http://www.whitehouse.gov/sites/default/files/docs/wh_now_is_the_time_full.pdf'
and save
Begin forwarded message:
> From: Josef Fydl <[email protected]>
> Subject: pdf files http_open
> Date: May 13, 2014 at 9:41:52 PM EDT
> To: [email protected]
>
> I have SWI-Prolog (Multi-threaded, 64 bits, Version 6.6.5 and I discovered problem
>
> in bringing down pdf files
> call is http_open(A, In, [status_code(Code),timeout(100)] )
> where A is URL like http://www.whitehouse.gov/sites/default/files/jobs_act.pdf
> it brings the file,which is not convertible by pdftotext it gives the lots of
> Syntax Error: Embedded font file may be invalid
> Syntax Error: Embedded font file may be invalid
> Syntax Error: Embedded font file may be invalid
> Syntax Error: Embedded font file may be invalid
> Syntax Error: Embedded font file may be invalid
> However if I bring the same URL by browser and save it is convertible
> I discovered it today, but remember
> that it worked in 6.2
> I am sending this without attachments, since they are over 100K
-------------- next part --------------
HTML attachment scrubbed and removed