mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
PdfFile using
This commit is contained in:
@ -20,7 +20,7 @@ include($$CORE_ROOT_DIR/Common/base.pri)
|
||||
include($$CORE_ROOT_DIR/Common/3dParty/icu/icu.pri)
|
||||
include(../../freetype.pri)
|
||||
|
||||
ADD_DEPENDENCY(UnicodeConverter, kernel, PdfWriter, HtmlRenderer)
|
||||
ADD_DEPENDENCY(UnicodeConverter, kernel, PdfFile, HtmlRenderer)
|
||||
|
||||
INCLUDEPATH += \
|
||||
$$CORE_ROOT_DIR/DesktopEditor/agg-2.4/include \
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
#include "../../../../pro/officedrawingfile.h"
|
||||
#include "../../../../../../XpsFile/XpsFile.h"
|
||||
#include "../../../../../../DjVuFile/DjVu.h"
|
||||
#include "../../../../../../PdfReader/PdfReader.h"
|
||||
#include "../../../../../../PdfFile/PdfFile.h"
|
||||
#include "../../../../../../HtmlRenderer/include/HTMLRendererText.h"
|
||||
|
||||
class CGraphicsFileDrawing
|
||||
@ -45,7 +45,7 @@ public:
|
||||
{
|
||||
nType = _nType;
|
||||
if (nType == 0)
|
||||
pReader = new PdfReader::CPdfReader(pApplicationFonts);
|
||||
pReader = new CPdfFile(pApplicationFonts, 1);
|
||||
else if (nType == 1)
|
||||
pReader = new CDjVuFile(pApplicationFonts);
|
||||
else if (nType == 2)
|
||||
@ -66,7 +66,7 @@ public:
|
||||
return -1;
|
||||
if (nType == 0)
|
||||
// диапозон ошибки от 0 до 10
|
||||
return ((PdfReader::CPdfReader*)pReader)->GetError();
|
||||
return ((CPdfFile*)pReader)->GetError();
|
||||
return 0; // errNone
|
||||
}
|
||||
int GetPagesCount()
|
||||
|
||||
Reference in New Issue
Block a user