DocPage Organizer: Assemble documents

This commit is contained in:
Jakub Melka
2021-07-24 17:57:11 +02:00
parent b644ea48e3
commit b38bbf8468
11 changed files with 499 additions and 9 deletions

View File

@ -207,6 +207,23 @@ PDFObject PDFPage::getOutputIntents(const PDFObjectStorage* storage) const
return getObjectFromPageDictionary(storage, "OutputIntents");
}
QSizeF PDFPage::getRotatedSize(const QSizeF& size, PageRotation rotation)
{
switch (rotation)
{
case PageRotation::None:
case PageRotation::Rotate180:
// Preserve rotation
break;
case PageRotation::Rotate90:
case PageRotation::Rotate270:
return size.transposed();
}
return size;
}
QRectF PDFPage::getRotatedBox(const QRectF& rect, PageRotation rotation)
{
switch (rotation)