• 大小: 46.76MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-05
  • 语言: 其他
  • 标签: 免费  开源  pdf  

资源简介

免费开源.net的pdf操作控件 博客说明 https://blog.csdn.net/auguster110/article/details/80314430

资源截图

代码片段和文件信息

// Copyright (c) 2015 Pieter van Ginkel. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include “../../public/fpdfview.h“
#include “../../v8/include/v8.h“
#include “../../v8/include/libplatform/libplatform.h“

extern “C“
{
DLLEXPORT void STDCALL FPDF_AddRef();
DLLEXPORT void STDCALL FPDF_Release();
}

class RefCounter
{
private:
CRITICAL_SECTION cs;
int refCount;
v8::Platform* platform;

public:
RefCounter()
{
::InitializeCriticalSection(&cs);
refCount = 0;
platform = NULL;
}

~RefCounter()
{
::DeleteCriticalSection(&cs);
}

void Enter()
{
::EnterCriticalSection(&cs);
}

void Leave()
{
::LeaveCriticalSection(&cs);
}

void AddRef()
{
::EnterCriticalSection(&cs);

if (refCount == 0)
{
v8::V8::InitializeICU();
platform = v8::platform::CreateDefaultPlatform();
v8::V8::InitializePlatform(platform);
v8::V8::Initialize();

FPDF_InitLibrary();
}

refCount++;

::LeaveCriticalSection(&cs);
}

void Release()
{
::EnterCriticalSection(&cs);

refCount--;

if (refCount == 0)
{
FPDF_DestroyLibrary();
v8::V8::ShutdownPlatform();
delete platform;
}

::LeaveCriticalSection(&cs);
}
};

static RefCounter refCounter;


DLLEXPORT void STDCALL FPDF_AddRef()
{
refCounter.AddRef();
}

DLLEXPORT void STDCALL FPDF_Release()
{
refCounter.Release();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......        92  2016-06-17 17:08  PdfiumViewer-master\.gitignore

    .......      1407  2016-06-17 17:08  PdfiumViewer-master\Contrib\pdfiumviewer.cpp

    .......    558080  2016-06-17 17:08  PdfiumViewer-master\Libraries\NuGet\NuGet.exe

    .......  11092992  2016-06-17 17:08  PdfiumViewer-master\Libraries\Pdfium\Windows XP compatible\x64\pdfium.dll

    .......   9252864  2016-06-17 17:08  PdfiumViewer-master\Libraries\Pdfium\Windows XP compatible\x86\pdfium.dll

    .......  11655680  2016-06-17 17:08  PdfiumViewer-master\Libraries\Pdfium\x64\pdfium.dll

    .......   9350656  2016-06-17 17:08  PdfiumViewer-master\Libraries\Pdfium\x86\pdfium.dll

    .......     11358  2016-06-17 17:08  PdfiumViewer-master\LICENSE

    .......        75  2016-06-17 17:08  PdfiumViewer-master\LICENSE PDFium

     文件     151552  2016-07-12 14:02  PdfiumViewer-master\packages\NUnit.2.6.4\lib\nunit.framework.dll

     文件     584600  2016-07-12 14:02  PdfiumViewer-master\packages\NUnit.2.6.4\lib\nunit.framework.xml

     文件       1131  2016-07-12 14:02  PdfiumViewer-master\packages\NUnit.2.6.4\license.txt

     文件      99004  2016-07-12 14:02  PdfiumViewer-master\packages\NUnit.2.6.4\NUnit.2.6.4.nupkg

    .......      2855  2016-06-17 17:08  PdfiumViewer-master\PDFium License\LICENSE

    .......      1482  2016-06-17 17:08  PdfiumViewer-master\PDFium License\LICENSE.strongtalk

    .......      1527  2016-06-17 17:08  PdfiumViewer-master\PDFium License\LICENSE.v8

    .......      2062  2016-06-17 17:08  PdfiumViewer-master\PDFium License\LICENSE.valgrind

    .......        34  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\.gitignore

     文件       4608  2016-07-13 14:34  PdfiumViewer-master\PdfiumViewer\bin\Debug\nl\PdfiumViewer.resources.dll

     文件     105984  2016-07-13 14:34  PdfiumViewer-master\PdfiumViewer\bin\Debug\PdfiumViewer.dll

     文件     220672  2016-07-13 14:34  PdfiumViewer-master\PdfiumViewer\bin\Debug\PdfiumViewer.pdb

     文件   11655680  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\bin\Debug\x64\pdfium.dll

     文件    9350656  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\bin\Debug\x86\pdfium.dll

    .......     24739  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\CustomScrollControl.cs

     文件       1088  2016-07-12 14:15  PdfiumViewer-master\PdfiumViewer\expression.cs

    .......      1562  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\HitTest.cs

    .......       596  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\Key.snk

    .......       200  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\MouseWheelMode.cs

    .......     10745  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\NativeMethods.cs

    .......     32167  2016-06-17 17:08  PdfiumViewer-master\PdfiumViewer\NativeMethods.Pdfium.cs

............此处省略229个文件信息

评论

共有 条评论