mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
(iOS) Made the PDF converter build
This commit is contained in:
parent
f3e2c837f2
commit
d6546e2164
|
@ -32,7 +32,7 @@
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
int ConvertPDF::processFile(
|
int ConvertPDF::processFile(
|
||||||
const std::wstring path, const std::wstring mode, int pageNum, int width, int height)
|
const std::wstring path, const std::wstring mode, int pageNum, int width, int height)
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__) || defined(__IOS__)
|
||||||
int ConvertPDF::processFile(const std::string path,
|
int ConvertPDF::processFile(const std::string path,
|
||||||
const std::string mode,
|
const std::string mode,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
|
@ -120,7 +120,7 @@ int ConvertPDF::processFile(
|
||||||
pageInfo.emplace_back(pageRow);
|
pageInfo.emplace_back(pageRow);
|
||||||
}
|
}
|
||||||
for (auto& row : pageInfo) {
|
for (auto& row : pageInfo) {
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__) || defined(__IOS__)
|
||||||
result.append(row).append("\n");
|
result.append(row).append("\n");
|
||||||
#else
|
#else
|
||||||
std::cout << row << std::endl;
|
std::cout << row << std::endl;
|
||||||
|
@ -176,7 +176,7 @@ int ConvertPDF::processFile(
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__) || defined(__IOS__)
|
||||||
result.insert(0, std::move(image.data()), width * height * 4);
|
result.insert(0, std::move(image.data()), width * height * 4);
|
||||||
#else
|
#else
|
||||||
// Necessary as the image data stream may contain null characters.
|
// Necessary as the image data stream may contain null characters.
|
||||||
|
|
|
@ -19,7 +19,7 @@ public:
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
static int processFile(
|
static int processFile(
|
||||||
const std::wstring path, const std::wstring mode, int pageNum, int width, int height);
|
const std::wstring path, const std::wstring mode, int pageNum, int width, int height);
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__) || defined(__IOS__)
|
||||||
__attribute__((visibility("default"))) static int processFile(const std::string path,
|
__attribute__((visibility("default"))) static int processFile(const std::string path,
|
||||||
const std::string mode,
|
const std::string mode,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
|
|
Loading…
Reference in a new issue