mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Bugfix: Draw form fields
This commit is contained in:
@ -958,7 +958,8 @@ QImage PDFDrawWidgetProxy::drawThumbnailImage(PDFInteger pageIndex, int pixelSiz
|
||||
if (compiledPage && compiledPage->isValid())
|
||||
{
|
||||
// Rasterize the image.
|
||||
image = m_rasterizer->render(pageIndex, page, compiledPage, imageSize, m_features, m_widget->getAnnotationManager(), PageRotation::None);
|
||||
PDFCMSPointer cms = getCMSManager()->getCurrentCMS();
|
||||
image = m_rasterizer->render(pageIndex, page, compiledPage, imageSize, m_features, m_widget->getAnnotationManager(), cms.data(), PageRotation::None);
|
||||
}
|
||||
|
||||
if (image.isNull())
|
||||
|
@ -534,9 +534,10 @@ void PDFWidgetAnnotationManager::drawPage(QPainter* painter,
|
||||
const PDFPrecompiledPage* compiledPage,
|
||||
PDFTextLayoutGetter& layoutGetter,
|
||||
const QTransform& pagePointToDevicePointMatrix,
|
||||
const PDFColorConvertor& convertor,
|
||||
QList<PDFRenderError>& errors) const
|
||||
{
|
||||
BaseClass::drawPage(painter, pageIndex, compiledPage, layoutGetter, pagePointToDevicePointMatrix, errors);
|
||||
BaseClass::drawPage(painter, pageIndex, compiledPage, layoutGetter, pagePointToDevicePointMatrix, convertor, errors);
|
||||
}
|
||||
|
||||
} // namespace pdf
|
||||
|
@ -55,6 +55,7 @@ public:
|
||||
const PDFPrecompiledPage* compiledPage,
|
||||
PDFTextLayoutGetter& layoutGetter,
|
||||
const QTransform& pagePointToDevicePointMatrix,
|
||||
const PDFColorConvertor& convertor,
|
||||
QList<PDFRenderError>& errors) const override;
|
||||
|
||||
/// Returns tooltip generated from annotation
|
||||
|
@ -701,7 +701,7 @@ void PDFWidgetFormManager::updateFormWidgetEditors()
|
||||
setFocusToEditor(nullptr);
|
||||
clearEditors();
|
||||
|
||||
for (PDFFormWidget widget : getWidgets())
|
||||
for (const PDFFormWidget& widget : getWidgets())
|
||||
{
|
||||
const PDFFormField* formField = widget.getParent();
|
||||
switch (formField->getFieldType())
|
||||
|
Reference in New Issue
Block a user