资源简介
免费开源.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.fr
文件 584600 2016-07-12 14:02 PdfiumViewer-master\packages\NUnit.2.6.4\lib\nunit.fr
文件 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\ex
....... 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个文件信息
相关资源
- 微服务设计中文完整版.pdf
- spring-boot使用培训.pdf
- ROS机器人项目开发11例en.pdf
- Principles of Optics 7th ed M.BornE.Wolf.pdf 光
- 《精通CSS:高级Web标准解决方案第3版
- [打印机维修完全学习手册].沈兆龙.扫
-
3ds Max/MAXsc
ript印象脚本动画制作基础 - 2014大学生个人网页作业成品免费
- _12181656.pdf
- 通信原理第七版樊昌信PDF答案
- 数据挖掘-概念与技术 第三版 Jiawei
- 深度学习框架PyTorch:入门与实践 PD
- 算法竞赛入门经典第二版pdf+源码+习题
- 算法概论.pdf
- 计算机组成结构化方法 第五5版中文
- 创业者ERP电子沙盘人机/人人模拟免费
- 学习opencv 中文版 pdf 带完整目录
- 《Spring实战 第四版 中文版 PDF》
- Excel商务应用与建模.pdf
- PDF转WORD软件
- OptiStruct&HyperStudy理论基础与工程应用
-
GNU Linux Rapid em
bedded Programming 无水印 - 蘑菇街开源的 IM 项目 TeamTalkiOS clien
- 图灵书籍(云计算核心技术剖析.pdf
- 微分几何-彭家贵.pdf
- 编程之美.pdf高清,大屏阅读无压力
- 业务连续性灾备解决方案 V200R001C50 操
- 图像工程上册:图像处理第3版PPT+PD
- 《人人都是产品经理》高清pdf文字版
- 定量遥感.pdf
评论
共有 条评论