autodesk-forgeautodesk-viewercalibration

Saving PDF Calibration in Autodesk Forge Viewer


Does the Calibration measurements performed on the PDF file in Autodesk Forge Viewer can be saved along with the PDF, so that opening the PDF again can show the saved calibrations.

Thanks!


Solution

  • You can get the calibration factor with this function : var calibrationFactor = viewer.getExtension("Autodesk.Measure").calibrationTool.getCalibrationFactor()

    And then you can apply it using : viewer.getExtension("Autodesk.Measure").calibrationTool.setCalibrationFactor(calibrationFactor)