mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocPage Organizer: Assemble documents
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user