mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Graphic state operator (gs)
This commit is contained in:
@ -96,7 +96,7 @@ public:
|
||||
/// then it is converted to real number.
|
||||
/// \param object Object, can be an indirect reference to object (it is dereferenced)
|
||||
/// \param defaultValue Default value
|
||||
PDFReal readNumber(const PDFObject& object, PDFInteger defaultValue) const;
|
||||
PDFReal readNumber(const PDFObject& object, PDFReal defaultValue) const;
|
||||
|
||||
/// Reads a text string from the object, if it is possible.
|
||||
/// \param object Object, can be an indirect reference to object (it is dereferenced)
|
||||
@ -186,6 +186,12 @@ public:
|
||||
/// \param defaultValue Default value
|
||||
PDFInteger readIntegerFromDictionary(const PDFDictionary* dictionary, const char* key, PDFInteger defaultValue) const;
|
||||
|
||||
/// Reads number array from dictionary. Reads all values. If some value is not
|
||||
/// real number (or integer number), empty array is returned. Empty array is also returned,
|
||||
/// if \p object is invalid.
|
||||
/// \param object Object containing array of numbers
|
||||
std::vector<PDFReal> readNumberArray(const PDFObject& object) const;
|
||||
|
||||
private:
|
||||
const PDFDocument* m_document;
|
||||
};
|
||||
|
Reference in New Issue
Block a user