mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocPage Organizer: create document manipulator
This commit is contained in:
@@ -120,6 +120,7 @@ struct PDFTranslationContext
|
||||
constexpr PDFReal PDF_POINT_TO_INCH = 1.0 / 72.0;
|
||||
constexpr PDFReal PDF_INCH_TO_MM = 25.4; // [mm / inch]
|
||||
constexpr PDFReal PDF_POINT_TO_MM = PDF_POINT_TO_INCH * PDF_INCH_TO_MM;
|
||||
constexpr PDFReal PDF_MM_TO_POINT = 1.0 / PDF_POINT_TO_MM;
|
||||
|
||||
/// This is default "DPI", but in milimeters, so the name is DPMM (device pixel per milimeter)
|
||||
constexpr PDFReal PDF_DEFAULT_DPMM = 96.0 / PDF_INCH_TO_MM;
|
||||
@@ -129,6 +130,11 @@ constexpr PDFReal convertPDFPointToMM(PDFReal point)
|
||||
return point * PDF_POINT_TO_MM;
|
||||
}
|
||||
|
||||
constexpr PDFReal convertMMToPDFPoint(PDFReal point)
|
||||
{
|
||||
return point * PDF_MM_TO_POINT;
|
||||
}
|
||||
|
||||
class PDFBoolGuard final
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user