...

Qpdfview что это за программа

QPdfView Class

QPdfView is a PDF viewer widget that offers a user experience similar to many common PDF viewer applications, with two modes. In the MultiPage mode, it supports flicking through the pages in the entire document, with narrow gaps between the page images. In the SinglePage mode, it shows one page at a time.

Member Type Documentation

enum class QPdfView:: PageMode

This enum describes the overall behavior of the PDF viewer:

Constant Value Description
QPdfView::PageMode::SinglePage 0 Show one page at a time.
QPdfView::PageMode::MultiPage 1 Allow scrolling through all pages in the document.

enum class QPdfView:: ZoomMode

This enum describes the magnification behavior of the PDF viewer:

Constant Value Description
QPdfView::ZoomMode::Custom 0 Use zoomFactor only.
QPdfView::ZoomMode::FitToWidth 1 Automatically choose a zoom factor so that the width of the page fits in the view.
QPdfView::ZoomMode::FitInView 2 Automatically choose a zoom factor so that the entire page fits in the view.

Property Documentation

document : QPdfDocument *

This property holds the document to be viewed.

Access functions:

QPdfDocument * document () const
void setDocument (QPdfDocument *document)

Notifier signal:

void documentChanged (QPdfDocument *document)

documentMargins : QMargins

This property holds the margins around the page view.

Access functions:

QMargins documentMargins () const
void setDocumentMargins (QMargins margins)

Notifier signal:

void documentMarginsChanged (QMargins documentMargins)

pageMode : PageMode

This property holds whether to show one page at a time, or all pages in the document. The default is SinglePage .

Access functions:

QPdfView::PageMode pageMode () const
void setPageMode (QPdfView::PageMode mode)

Notifier signal:

void pageModeChanged (QPdfView::PageMode pageMode)

pageSpacing : int

This property holds the size of the padding between pages in the MultiPage mode.

Access functions:

int pageSpacing () const
void setPageSpacing (int spacing)

Notifier signal:

void pageSpacingChanged (int pageSpacing)

zoomFactor : qreal

This property holds the ratio of pixels to points. The default is 1 , meaning one point (1/72 of an inch) equals 1 logical pixel.

Access functions:

qreal zoomFactor () const
void setZoomFactor (qreal factor)

Notifier signal:

void zoomFactorChanged (qreal zoomFactor)

zoomMode : ZoomMode

This property indicates whether to use a custom size for the page(s), or zoom them to fit to the view. The default is CustomZoom .

Access functions:

QPdfView::ZoomMode zoomMode () const
void setZoomMode (QPdfView::ZoomMode mode)

Notifier signal:

void zoomModeChanged (QPdfView::ZoomMode zoomMode)

Member Function Documentation

[explicit] QPdfView:: QPdfView ( QWidget *parent)

Constructs a PDF viewer with parent widget parent.

[virtual] QPdfView:: ~QPdfView ()

Destroys the PDF viewer.

QPdfPageNavigator *QPdfView:: pageNavigator () const

This accessor returns the navigation stack that will handle back/forward navigation.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

qpdfview

qpdfview — простое и лёгкое C++ / QT графическое приложение предназначенное для просмотра файлов в формате PDF (Portable Document Format).

qpdfview проста в использовании, обладает удобным пользовательским интерфейсом и имеет все функции для комфортного просмотра PDF документов и имеет минимальные требования к системным ресурсам.

qpdfview практически не имеет настроек, для работы приложение использует библиотеку для рендеринга PDF-файлов Poppler (форк Xpdf, разрабатываемый в рамках проекта Freedesktop.org).

qpdfview показывает превью страниц (миниатюры), оглавление (если есть в документе), поддерживает создание закладок (для каждого документа можно добавить любое количество закладок), поддерживается показ презентаций и поиск по тексту.

qpdfview разрабатывался как приложение аналогичное по функциональным возможностям Evince (универсальное Gnome приложение для просмотра документов), но при этом не имеющее зависимостей от библиотек GNOME.

qpdfview

qpdfview is a light-weight document viewer capable of opening for PDF, PostScript and DjVu e-books and documents. No other file formats are supported. It is written using the Qt toolkit with very few other dependencies. It is lightweight and fast yet feature-rich and very usable. qpdfviews biggest limitation is its disturbing lack of support for common e-book formats like ePub, the comic book formats .cbr and .cbz and most others.

Contents

  • 1 Features and Usability
  • 2 Verdict and Conclusion
  • 3 Links
  • 4 Alternatives
  • 5 Notes

Features and Usability [ edit ]

Qpdfview-0.4.18.png

qpdfview 0.4.18 with a .pdf of the book 1984 open.

qpdfview has the basic features a document reader should have covered but there is nothing extra. It supports zooming pages to the windows width or fixed sizes. The menu has an option for trimming margins for pages (also available with hotkey ctrl + ⇧ Shift + u ) which is a nice touch. Pages can be rotated in case the original is upside down or sideways.

Individual pages can be bookmarked using labels.

qpdfview supports annotations, or markers, using text’ and highlighting. The highlight function is not text-aware, you can draw a square highlighting something on the page but highlighting a single sentence spanning multiple lines would be a choir.

qpdfview is fast, there is no delay when switching between pages or scrolling — even on very old hardware.

Pressing f11 enables full-screen viewing.

qpdfview has a rather small memory footprint. It fills about 200 MB with an average PDF file open and it does not grow more than 10-20 MB in size when a PDF is explored by scrolling through to the end and back.

qpdfview supports opening multiple documents in tabs within the same window.

There is no text-to-speech support, you would have to use some external screen reader software to have the text read out. Okular is one of the few alternatives which does have built-in text-to-speech support.

Verdict and Conclusion [ edit ]

qpdfview is a very nice document viewer for the few document formats it supports. It is light, easy to use and it works well on both new and very old hardware.

qpdfview does lack some of the more advanced features okular has like drawing on pages. Those are not really required if you just want to read a book.

qpdfviews biggest weakness, which really is quite significant, is the total lack of support for every document format other than PDF, PS and DjVu. That limitation is implied by the name qpdfview so it should be expected. Still, it severely limits qpdfviews usefulness. It is no general-purpose document viewer capable of opening everything you throw at it. okular is a better alternative if that is what you are looking for. If you just need a light-weight document reader capable of opening PDF, PS and DjVu document then qpdfview is a solid choice.

Links [ edit ]

qpdfviews homepage is at Canonicals Launchpad at launchpad.net/qpdfview.

Alternatives [ edit ]

Worthwhile free software document readers:

Program framework supported file formats memory footprint [1]
apvlv GTK PDF and «UMD» 260MB
GNOME Document Viewer GTK/GNOME PDF, PostScript, DjVu, XPS, DVi and comic book archives. No ePub support. 400MB
Okular Qt/KDE All of them. PDF, Postscript, DjVu, CHM, XPS, ePub, comic book archives and many more configurable, insane (4.5GB+) by default, 300MB on «Low»
qpdfview Qt PDF, PS, DjVu. That’s it. No ePub, no comic formats. about 220MB
Zathura girara Plugins for PDF, PS, DjVu, comic book archives about 700MB

Notes [ edit ]

  1. ↑ Memory use after opening a .pdf e-book version of 1984 and scrolling to the end and back. Actual use will vary depending on what document you open; these values are mostly useful for comparing one reader with another.

При подготовке материала использовались источники:
https://doc.qt.io/qt-6/qpdfview.html
https://zenway.ru/page/qpdfview
https://linuxreviews.org/Qpdfview

Оцените статью