fix PdfReader and PdfWriter, fix BUILDING_WASM_MODULE

This commit is contained in:
Kulikova Svetlana
2022-11-03 17:47:16 +03:00
parent e27a20f9ae
commit d70d4d50f0
20 changed files with 868 additions and 960 deletions

View File

@ -58,14 +58,12 @@
#include "Src/RendererOutputDev.h"
#include "Src/Adaptors.h"
#ifdef BUILDING_WASM_MODULE
#include "../DesktopEditor/graphics/pro/js/wasm/src/serialize.h"
#include "lib/xpdf/Outline.h"
#include "lib/xpdf/Link.h"
#include "lib/xpdf/TextOutputDev.h"
#include "lib/goo/GList.h"
#include <vector>
#endif
namespace PdfReader
{
@ -613,7 +611,6 @@ return 0;
return sRes;
}
#ifdef BUILDING_WASM_MODULE
void getBookmars(PDFDoc* pdfDoc, OutlineItem* pOutlineItem, NSWasm::CData& out, int level)
{
int nLengthTitle = pOutlineItem->getTitleLength();
@ -787,5 +784,4 @@ return 0;
return oLinks.Serialize();
}
#endif
}

View File

@ -103,10 +103,8 @@ namespace PdfReader
PDFDoc* GetPDFDocument();
void ChangeLength(DWORD nLength);
#ifdef BUILDING_WASM_MODULE
virtual BYTE* GetStructure();
virtual BYTE* GetLinks(int nPageIndex);
#endif
private:
CPdfReader_Private* m_pInternal;