
Stay up to date with the latest marketing, sales and service tips and news.
この記事は 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 対応や複数ページの画像出力に向けた作業は現在進行中ですが、正式リリースの予定は現時点では未定となっています。
Stay up to date with the latest marketing, sales and service tips and news.
Download the latest release here: www.qt.io/download.
Qt 5.12 was developed with a strong focus on quality and is a long-term-supported (LTS) release that will be supported for 3 years.
Find webinars, use cases, tutorials, videos & more at resources.qt.io
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