XFA: rendering of rectangle elements and borders

This commit is contained in:
Jakub Melka
2021-11-20 18:42:25 +01:00
parent 6b7e839618
commit aab5c41e12
5 changed files with 465 additions and 5 deletions

View File

@ -20,6 +20,7 @@
#include "pdfglobal.h"
#include "pdfdocument.h"
#include "pdfexception.h"
#include <memory>
@ -37,6 +38,16 @@ public:
void setDocument(const PDFModifiedDocument& document, PDFForm* form);
/// Draws XFA form
/// \param pagePointToDevicePointMatrix Page point to device point matrix
/// \param page Page
/// \param errors Error list (for reporting rendering errors)
/// \param painter Painter
void draw(const QMatrix& pagePointToDevicePointMatrix,
const PDFPage* page,
QList<PDFRenderError>& errors,
QPainter* painter);
private:
std::unique_ptr<PDFXFAEngineImpl> m_impl;
};