OutSystems Forge 日本語データベース

khtml2canvas

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2013-09-18 0.4.1r2 Miguel "Kelter" Antunes 8.0+ All All
このスクリプトを使用すると、ユーザーのブラウザで直接Webページやその一部のスクリーンショットを撮ることができます。
JavaScript HTMLレンダラー このスクリプトを使用すると、ウェブページやその一部の「スクリーンショット」をユーザーのブラウザで直接利用できます。スクリーンショットはDOMに基づいており、実際のスクリーンショットを作成しないため、実際の表現に対して100%正確ではない場合がありますが、ページ上で利用可能な情報に基づいてスクリーンショットを作成します。 どのように機能するのですか? スクリプトは、要素に適用されたDOMとさまざまなスタイルを読み込むことによって、現在のページをキャンバスイメージとしてレンダリングします。 イメージ全体がクライアントブラウザ上に作成されるため、サーバーからのレンダリングは不要です。しかし、ブラウザに大きく依存しているため、このライブラリはnodejで使用するのには適していません。ブラウザのコンテンツポリシーの制限も魔法のように回避されるわけではありません。そのため、クロスオリジンコンテンツをレンダリングするには、同じ原点にコンテンツを取得するプロキシが必要です。 スクリプトはまだ非常に実験的な状態なので、それをまだ実働環境で使用したり、アプリケーションを構築したりすることはお勧めしません。 ブラウザの互換性 スクリプトは次のブラウザでうまく動作するはずです: Firefox 3.5以降 グーグルクローム Opera 12+ IE9 + Safari 6+ サポートされるように各CSSプロパティを手動で構築する必要があるため、まだサポートされていない多数のプロパティがあります。 オリジナルのプロジェクトページ:niklasvh / html2canvas

[Overview]
The script allows you to take screenshots of webpages or parts of it, directly on the users browser.
[Detail]
JavaScript HTML renderer The script allows you to take "screenshots" of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page. How does it work? The script renders the current page as a canvas image, by reading the DOM and the different styles applied to the elements. It does not require any rendering from the server, as the whole image is created on the clients browser. However, as it is heavily dependent on the browser, this library is not suitable to be used in nodejs. It doesn't magically circumvent any browser content policy restrictions either, so rendering cross-origin content will require a proxy to get the content to the same origin. The script is still in a very experimental state, so I don't recommend using it in a production environment nor start building applications with it yet, as there will be still major changes made. Browser compatibility The script should work fine on the following browsers: Firefox 3.5+ Google Chrome Opera 12+ IE9+ Safari 6+ As each CSS property needs to be manually built to be supported, there are a number of properties that are not yet supported. Original project page: niklasvh/html2canvas
戻る