QtLabs に PDF モジュールを追加しました
February 24, 2017 by 鈴木 佑 | Comments
この記事は The Qt Blog の New QtLabs PDF module を翻訳したものです。
執筆: Shawn Rutledge, 2017年1月30日
弊社の二人のエンジニアが一昨年のハッカソンでオープンソースの PDF レンダリングエンジンで Chromium でも PDF の表示に使われている PDFium の Qt ラッパーを作りました。その後いくつかの修正や改善がなされ、今回ようやく LGPLv3 ライセンスの元で公開するところまで持ってこれました。
QPdfDocument は PDF の1ページを QImage に変換するためのクラスで、ブックマーク用にQPdfBookmarkModel というクラスも用意しました。ウィジットで作った PDF ビューアーのサンプルも中に含まれています。
試される際には、以下の手順でお願いします:
git clone git://code.qt.io/qt-labs/qtpdf
cd qtpdf
git submodule update --init --recursive
qmake
make
cd examples/pdf/pdfviewer
qmake
make
./pdfviewer /path/to/my/file.pdf
QtQuick の PDF 対応や複数ページの画像出力に向けた作業は現在進行中ですが、正式リリースの予定は現時点では未定となっています。
Blog Topics:
Comments
Subscribe to our newsletter
Subscribe Newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
We're Hiring
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu