#include "pdf/pdfium/pdfium_ocr.h"
#include <math.h>
#include <stddef.h>
#include <algorithm>
#include "base/check.h"
#include "base/check_op.h"
#include "base/logging.h"
#include "printing/units.h"
#include "third_party/pdfium/public/cpp/fpdf_scopers.h"
#include "third_party/pdfium/public/fpdf_edit.h"
#include "third_party/pdfium/public/fpdfview.h"
#include "third_party/skia/include/core/SkAlphaType.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColorType.h"
#include "third_party/skia/include/core/SkImageInfo.h"
#include "third_party/skia/include/core/SkPixmap.h"
namespace chrome_pdf {
namespace {
constexpr float kMaxNeededDPI = …;
constexpr float kMaxNeededPixelToPointRatio = …;
}
gfx::SizeF GetImageSize(FPDF_PAGEOBJECT page_object) { … }
SkBitmap GetImageForOcr(FPDF_DOCUMENT doc,
FPDF_PAGE page,
FPDF_PAGEOBJECT page_object) { … }
}