LibreOffice Module vcl (master) 1
PdfConfig.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 */
10
11#include <pdf/PdfConfig.hxx>
12#include <cstdlib>
13
14#include <vcl/svapp.hxx>
15#include <vcl/outdev.hxx>
16
17namespace vcl::pdf
18{
21{
22 // If an overriding default is set, use it.
23 const char* envar = ::getenv("PDFIMPORT_RESOLUTION_DPI");
24 if (envar)
25 {
26 const double dpi = atof(envar);
27 if (dpi > 0)
28 return dpi;
29 }
30
31 // Fallback to a sensible default.
33}
34}
35
36/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static OutputDevice * GetDefaultDevice()
Get the default "device" (in this case the default window).
Definition: svapp.cxx:1043
SAL_DLLPRIVATE sal_Int32 GetDPIX() const
Get the output device's DPI x-axis value.
Definition: outdev.hxx:385
double getDefaultPdfResolutionDpi()
Get the default PDF rendering resolution in DPI.
Definition: PdfConfig.cxx:20