mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Bugfix: Wrong translation and clip box in case of 270° rotation
This commit is contained in:
@ -42,7 +42,7 @@ PDFPainter::PDFPainter(QPainter* painter,
|
||||
|
||||
if (features.testFlag(PDFRenderer::ClipToCropBox))
|
||||
{
|
||||
QRectF cropBox = page->getRotatedCropBox();
|
||||
QRectF cropBox = page->getCropBox();
|
||||
if (cropBox.isValid())
|
||||
{
|
||||
QPainterPath path;
|
||||
@ -366,4 +366,7 @@ bool PDFPainter::canSetBlendMode(BlendMode mode) const
|
||||
return std::all_of(m_transparencyGroupDataStack.cbegin(), m_transparencyGroupDataStack.cend(), [](const PDFTransparencyGroupPainterData& group) { return group.blendMode == BlendMode::Normal || group.blendMode == BlendMode::Compatible; });
|
||||
}
|
||||
|
||||
// TODO: Check all graphic state parameter dictionaries, warn about missing ones
|
||||
// TODO: Recompile libraries in MSVC 2019
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user