[webkit-gtk] webkitgtk load pic and pdf file

Carlos Garcia Campos cgarcia at igalia.com
Fri Mar 20 03:47:40 PDT 2015


El vie, 20-03-2015 a las 18:29 +0800, green.4984 escribió:
> 
> hi all,

Hi,

>      Thanks for your reading, I am doing some work about using webkitwebview load with pic and pdf.

Could you provide the HTML contents?

>      It works fine when the url is point to pic, like jpg, I use webkit_web_resource_get_data. But when I do with the same method use the url of pdf, it get data length is 0.

Hmm, I guess that's because the PDF is handled by a plugin. It sounds
like a bug, could please file a bug report in bugs.webkit.org?

>       Is there any difference?

Yes, PDFs are handled by NPAPI plugins, while jpeg images are handled
directly by WebKit.

>  I know the webkit has the function to download uri directly, but it may takes some disk space.

Hmm, webkit_download_set_destination_stream() could be a good
addition :-)

>        Thanks anyway! have a good weekend.: )

What WebKitGTK+ version are you using, btw?


Regards, 
-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20150320/c713650d/attachment.sig>


More information about the webkit-gtk mailing list