11#include "public/fpdf_edit.h"
12#include "public/fpdf_formfill.h"
13#include "public/fpdfview.h"
14#include "v8/include/libplatform/libplatform.h"
15#include "v8/include/v8-array-buffer.h"
16#include "v8/include/v8-initialization.h"
17#include "v8/include/v8-isolate.h"
19int main(
int argc,
const char* argv[]) {
21 v8::V8::InitializeICUDefaultLocation(argv[0]);
22 v8::V8::InitializeExternalStartupData(argv[0]);
23 v8::Platform* platform = v8::platform::NewDefaultPlatform().release();
24 v8::V8::InitializePlatform(platform);
27 v8::Isolate::CreateParams params;
28 params.array_buffer_allocator =
static_cast<v8::ArrayBuffer::Allocator*>(
29 FPDF_GetArrayBufferAllocatorSharedInstance());
30 v8::Isolate* isolate = v8::Isolate::New(params);
33 FPDF_LIBRARY_CONFIG config;
34 memset(&config, 0,
sizeof(config));
36 config.m_pIsolate = isolate;
37 config.m_pPlatform = platform;
45 IPDF_JSPLATFORM jsplatform;
46 memset(&jsplatform, 0,
sizeof(jsplatform));
48 FPDF_FORMFILLINFO formfillinfo;
49 memset(&formfillinfo, 0,
sizeof(formfillinfo));
53 FPDF_FORMHANDLE form_handle =
74 v8::V8::ShutdownPlatform();
FPDF_EXPORT FPDF_PAGE FPDF_CALLCONV FPDFPage_New(FPDF_DOCUMENT document, int page_index, double width, double height)
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_CreateNewDocument()
FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary()
FPDF_EXPORT void FPDF_CALLCONV FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG *config)
FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseDocument(FPDF_DOCUMENT document)
FPDF_EXPORT void FPDF_CALLCONV FPDF_ClosePage(FPDF_PAGE page)
int main(int argc, const char *argv[])