A representation of a PDF document. 更多...
import 语句: | import QtQuick.Pdf 5.15 |
Since: | Qt 5.15 |
PdfDocument provides access to PDF document meta-information. It is not necessary for rendering, as it is enough to use an Image with source set to the URL of the PDF.
: |
This property holds the name of the person who created the document.
This property holds the date and time the document was created.
If the document was converted to PDF from another format, this property holds the name of the software that created the original document.
This property holds a translated string representation of the current error, if any.
另请参阅 status .
This property holds the keywords associated with the document.
This property holds the height of the tallest page in the document, in points.
This property holds the width of the widest page in the document, in points.
This property holds the date and time the document was most recently modified.
This property holds the number of pages the PDF contains.
This property holds the document password. If the passwordRequired() signal is emitted, the UI should prompt the user and then set this property so that document opening can continue.
If the document was converted to PDF from another format, this property holds the name of the software that converted it to PDF.
This property holds a URL pointing to the PDF file to be loaded.
注意: At this time, only local filesystem URLs are supported.
This property tells the current status of the document. The possible values are:
常量 | 描述 |
---|---|
PdfDocument.Null
|
The initial status after the document has been created or after it has been closed. |
PdfDocument.Loading
|
The status after load() has been called and before the document is fully loaded. |
PdfDocument.Ready
|
The status when the document is fully loaded and its data can be accessed. |
PdfDocument.Unloading
|
The status after close() has been called on an open document. At this point the document is still valid and all its data can be accessed. |
PdfDocument.Error
|
加载后的状态,若加载失败。 |
This property holds the subject of the document.
This property holds the document's title. A typical viewer UI can bind this to the
Window.title
特性。
This signal is emitted when the PDF requires a password in order to open. The UI in a typical PDF viewer should prompt the user for the password and then set the password property when the user has provided it.
注意:
相应处理程序是
onPasswordRequired
.
Returns the size of the given page in points.