onPdfChange(pdf.page, Number(v))}
+ title={t("import.pdf.scale")}
+ triggerClassName="tb-dd-mono"
+ options={[
+ ...((PDF_SCALES as readonly number[]).includes(pdf.scale)
+ ? []
+ : [{ value: String(pdf.scale), label: `1:${pdf.scale}` }]),
+ ...PDF_SCALES.map((n) => ({ value: String(n), label: `1:${n}` })),
+ ]}
+ />
+
+ setCustomScaleText(e.target.value)}
+ onBlur={applyCustomScale}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") applyCustomScale();
+ }}
+ />
+
+
+ {t("import.pdf.size", {
+ w: Math.round(pdf.widthPt * PT_TO_MM),
+ h: Math.round(pdf.heightPt * PT_TO_MM),
+ mw: ((pdf.widthPt * PT_TO_MM * pdf.scale) / 1000).toFixed(2),
+ mh: ((pdf.heightPt * PT_TO_MM * pdf.scale) / 1000).toFixed(2),
+ })}
+
+ {pdf.images > 0 && {t("import.pdf.images", { n: pdf.images })}
}
+ {t("import.pdf.note")}
+