mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
XFA: rendering of rectangle elements and borders
This commit is contained in:
@@ -1330,12 +1330,12 @@ void PDFAnnotationManager::drawPage(QPainter* painter,
|
||||
Q_UNUSED(compiledPage);
|
||||
Q_UNUSED(layoutGetter);
|
||||
|
||||
const PDFPage* page = m_document->getCatalog()->getPage(pageIndex);
|
||||
Q_ASSERT(page);
|
||||
|
||||
const PageAnnotations& annotations = getPageAnnotations(pageIndex);
|
||||
if (!annotations.isEmpty())
|
||||
{
|
||||
const PDFPage* page = m_document->getCatalog()->getPage(pageIndex);
|
||||
Q_ASSERT(page);
|
||||
|
||||
PDFRenderer::Features features = m_features;
|
||||
if (!features.testFlag(PDFRenderer::DisplayAnnotations))
|
||||
{
|
||||
@@ -1377,6 +1377,12 @@ void PDFAnnotationManager::drawPage(QPainter* painter,
|
||||
|
||||
m_fontCache->setCacheShrinkEnabled(&fontCacheLock, true);
|
||||
}
|
||||
|
||||
// Draw XFA form
|
||||
if (m_formManager)
|
||||
{
|
||||
m_formManager->drawXFAForm(pagePointToDevicePointMatrix, page, errors, painter);
|
||||
}
|
||||
}
|
||||
|
||||
void PDFAnnotationManager::drawAnnotation(const PageAnnotation& annotation,
|
||||
|
Reference in New Issue
Block a user