HTML5 は、WHATWG および W3C が HTML4 に代わる次世代の HTML として策定を進めている仕様であり、HTML5 およびその周辺技術の利用により、Web サイト閲覧者 (以下、ユーザ) のブラウザ内でのデータ格納、クライアントとサーバ間での双方向通信、位置情報の取得など、従来の HTML4 よりも柔軟かつ利便性の高い Web サイトの構築が可能となっています。利便性が向上する一方で、それらの新技術が攻撃者に悪用された際にユーザが受ける影響に関して、十分に検証や周知がされているとは言えず、セキュリティ対策がされないまま普及が進むことが危惧されています。 JPCERT/CCでは、HTML5 を利用した安全な Web アプリケーション開発のための技術書やガイドラインのベースとなる体系的な資料の提供を目的として、懸念されるセキュリティ問題を抽出した上で検討を加え、それらの問題
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyse site usage, and assist in our marketing efforts. View our Privacy Policy for more information or manage your cookie preferences. When you visit websites, they may store or retrieve data in your browser. This storage is often necessary for the basic functionality of the website.
A common and difficult problem acquiring data is extracting tables from a PDF. Previously, I described how to extract the text from a PDF with PDF.js, a PDF rendering library made by Mozilla Labs. The rendering process requires an HTML canvas object, and then draws each object (character, line, rectangle, etc) on it. The easiest way to get a list of these is to to intercept all the calls PDF.js ma
こんにちは、ishida(@kojiisd)です。 今回はPDFを全てjavascriptで表示、操作するプロダクト「PDF.js」を使ってみます。 PDF.jsはHTML5でレンダリングするプラグイン不要のスクリプトになっています。 つまり、PDF.jsを使えばAdobeなどのプラグインを使わずにPDFが利用できるようになるのです。 概要の説明はITMediaがわかりやすいですね。 PDF.jsの入手 まずはPDF.jsを手に入れましょう。githubから入手が可能です。 ちなみにpdf.js自体はgithubにもおいてありません。曰く、自分でmakeしろ、とのこと。 それでもサンプルで置かれているhelloworldのindex.htmlに記述されている通り、 各種jsを読み込めば実施可能です。 PDFを使ったページを作成する いよいよ、このpdf.jsを利用してWebページ上でPDF
以前から、縦幅基準に1ページまるごと収めても十分読めるほどディスプレイが大きいのであれば、PDFビューアのページ遷移は水平方向にスクロールすべきだと思ってたんですね。 画面が広いとこういうの無駄だよね。 じゃあこうすればいいんじゃね? 画面を縦にするって手もありますが、こういう風に横に並べると複数ページにまたいで確認できるのもメリット。ワイド液晶なら3ページぐらい表示できちゃうかも。 しかし… しかし既存のPDFビューアで水平方向にスクロールできるものは見当たらず、またPDFビューアを1から作るほどのスキルはないのでどうしたものか。 で、そういえばJavaScriptで実装されたPDFビューアがあったな、ということを思い出しました。 mozilla/pdf.js @ GitHub お、JavaScriptなら俺でも改造できるかも?ということで、水平方向にスクロールできるPDFビューアを作っ
► 2017 (2) ► January (2) ► 2016 (10) ► August (1) ► April (3) ► February (4) ► January (2) ► 2015 (36) ► December (2) ► October (2) ► September (2) ► August (4) ► July (5) ► June (5) ► May (1) ► April (6) ► March (4) ► February (4) ► January (1) ► 2014 (34) ► December (1) ► October (1) ► September (2) ► August (4) ► July (1) ► June (1) ► May (5) ► April (4) ► March (7) ► February (6) ► January (2)
PDF.js is a JavaScript library for rendering PDF files in the browser without using native code plugins. It works by parsing PDF files and converting the drawing commands into an intermediate representation, then executing those commands on a canvas to display the PDF content. One challenge is that PDF processing can freeze the UI, so it uses web workers to do processing in a background thread.
2012年1月10日追記 github に移行準備しています。Essential JavaScript Design Patterns 1.1がリリースされました。(03/09追記)Essential JavaScript And jQuery Design Patterns (Addy Osmaniさん著) の日本語訳です (原文の HTML 版はこちら)。ライセンスは原文と同じCreative Commons Attribution-NonCommercial-ShareAlike 3.0 です。翻訳開始の予定ではブログで公開してゆきます。今後 pdf を用意する予定です (2011/02/23時点)。このチュートリアルで推薦されているオライリーの「JavaScriptパターン」の日本語訳は今年の02/16に発売されました。 序文はじめに「パターンな」テスト、プロトパターンと3つのルー
Main IndexObjectseventhandlerFunctionsStatementsConstantsOperators Welcome to the DevGuru JavaScript Quick Reference guide. This is an extensive reference source that explains and gives comprehensive, working examples of code in a definitive manner for the JavaScript language (and hence, for the ECMAScript and JScript languages). All elements of the language are covered, including the events, func
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く