chromium/chrome/services/printing/public/mojom/pdf_render_settings.mojom

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module printing.mojom;

import "ui/gfx/geometry/mojom/geometry.mojom";

// Corresponds to `printing::PdfRenderSettings` in
// printing/pdf_render_settings.h.
struct PdfRenderSettings {
  enum Mode {
    NORMAL = 0,
    // Modes below are Windows only.
    [EnableIf=is_win]
    TEXTONLY,
    [EnableIf=is_win]
    POSTSCRIPT_LEVEL2,
    [EnableIf=is_win]
    POSTSCRIPT_LEVEL3,
    [EnableIf=is_win]
    EMF_WITH_REDUCED_RASTERIZATION,
    [EnableIf=is_win]
    POSTSCRIPT_LEVEL3_WITH_TYPE42_FONTS,
  };

  gfx.mojom.Rect area;
  gfx.mojom.Point offsets;
  gfx.mojom.Size dpi;
  bool autorotate;
  bool use_color;
  Mode mode;
};