mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Text to speech engine implementation
This commit is contained in:
@ -272,7 +272,7 @@ using PDFTextFlows = std::vector<PDFTextFlow>;
|
||||
|
||||
/// This class represents a portion of continuous text on the page. It can
|
||||
/// consists of multiple blocks (which follow reading order).
|
||||
class PDFTextFlow
|
||||
class PDFFORQTLIBSHARED_EXPORT PDFTextFlow
|
||||
{
|
||||
public:
|
||||
|
||||
@ -294,6 +294,9 @@ public:
|
||||
/// \param expression Regular expression to be matched
|
||||
PDFFindResults find(const QRegularExpression& expression) const;
|
||||
|
||||
/// Returns whole text for this text flow
|
||||
QString getText() const { return m_text; }
|
||||
|
||||
/// Returns text form character pointers
|
||||
/// \param begin Begin character
|
||||
/// \param end End character
|
||||
@ -327,7 +330,7 @@ private:
|
||||
|
||||
/// Text layout of single page. Can handle various fonts, various angles of lines
|
||||
/// and vertically oriented text. It performs the "docstrum" algorithm.
|
||||
class PDFTextLayout
|
||||
class PDFFORQTLIBSHARED_EXPORT PDFTextLayout
|
||||
{
|
||||
public:
|
||||
explicit PDFTextLayout();
|
||||
@ -498,4 +501,6 @@ private:
|
||||
|
||||
} // namespace pdf
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(pdf::PDFTextFlow::FlowFlags)
|
||||
|
||||
#endif // PDFTEXTLAYOUT_H
|
||||
|
Reference in New Issue
Block a user