mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Text layouts for every page
This commit is contained in:
@ -447,11 +447,6 @@ void PDFPrecompiledPageGenerator::setCompositionMode(QPainter::CompositionMode m
|
||||
m_precompiledPage->addSetCompositionMode(mode);
|
||||
}
|
||||
|
||||
void PDFPrecompiledPageGenerator::performOutputCharacter(const PDFTextCharacterInfo& info)
|
||||
{
|
||||
m_precompiledPage->addCharacter(info);
|
||||
}
|
||||
|
||||
void PDFPrecompiledPage::draw(QPainter* painter, const QRectF& cropBox, const QMatrix& pagePointToDevicePointMatrix, PDFRenderer::Features features) const
|
||||
{
|
||||
Q_ASSERT(painter);
|
||||
@ -605,16 +600,6 @@ void PDFPrecompiledPage::addSetCompositionMode(QPainter::CompositionMode composi
|
||||
m_compositionModes.push_back(compositionMode);
|
||||
}
|
||||
|
||||
void PDFPrecompiledPage::addCharacter(const PDFTextCharacterInfo& info)
|
||||
{
|
||||
m_textLayout.addCharacter(info);
|
||||
}
|
||||
|
||||
void PDFPrecompiledPage::createTextLayout()
|
||||
{
|
||||
m_textLayout.perform();
|
||||
}
|
||||
|
||||
void PDFPrecompiledPage::optimize()
|
||||
{
|
||||
m_instructions.shrink_to_fit();
|
||||
@ -624,7 +609,6 @@ void PDFPrecompiledPage::optimize()
|
||||
m_meshes.shrink_to_fit();
|
||||
m_matrices.shrink_to_fit();
|
||||
m_compositionModes.shrink_to_fit();
|
||||
m_textLayout.optimize();
|
||||
}
|
||||
|
||||
void PDFPrecompiledPage::finalize(qint64 compilingTimeNS, QList<PDFRenderError> errors)
|
||||
@ -667,8 +651,6 @@ void PDFPrecompiledPage::finalize(qint64 compilingTimeNS, QList<PDFRenderError>
|
||||
{
|
||||
m_memoryConsumptionEstimate += data.mesh.getMemoryConsumptionEstimate();
|
||||
}
|
||||
|
||||
m_memoryConsumptionEstimate += m_textLayout.getMemoryConsumptionEstimate();
|
||||
}
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user