MuPDF 1.24.0 Documentation2 Common function arguments 8 2.3 Error handling 8 2.4 Multi-threading 11 2.5 Cloning the context 18 2.6 Coding Style 19 3 Using MuPDF WASM 21 3.1 Installing 21 3.2 Loading a Document #includefitz.h=""> #include #include int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); 0 码力 | 249 页 | 830.15 KB | 1 年前3
Go Context原理及其典型适用场景# Context原理及其适用场景 随手记 李帅(飞雪无情) ___ ¥ 随手记 👨👩👧👦 卡牛 📸 随管家 ___ ## 大纲 常见并发模式 ■ Context实现原理 ☑ TLS VS Context ☑ 典型适用场景 ## Channel func add(a,b int) <-chan int{ sum:=make(chan int) go ## Context ● 一个任务,需要多个goroutine完成 ● 一个请求,会触发好多个goroutine做不同的事情 ● 如果我们的任务终止了,请求取消了,这些正在运行的goroutine怎么办? ● 使用Context来简化这些操作 ## Context能做什么 ## ☑ 手动、定时、超时发出取消信号 ◆ 跨API传值 ☑ 控制生成Context树结构(Context链) func rootctx := context.Background() ctx, cancel := context.WithCancel(rootctx) go watch(ctx) go watch(ctx) time.Sleep(1 * time.Second) cancel() } func watch(ctx context.Context) { for0 码力 | 32 页 | 4.62 MB | 2 年前3
1.5 Go 业务开发中 Error & Context - 毛剑Go业务开发中Error&Context 毛剑 bilibili iammao@vip.qq.com 探探 Gopher China 2019 Agenda Error o Background o Handle Error o Best Practice • Context o Background o Context With API o Best Practice • Conclusion Error - Best Practice 集中处理错误:errorgroup 容易用错返回的context 扇出没有控制 业务代码容易panic type Group func WithContext(ctx context.Context) (*Group, context.Context) func (g *Group) Go(f func() error) func (g *Group) +Go(f func(ctx context.Context) error) +Wait() : error -do(f func(ctx context.Context) error) [functions] +WithCancel(ctx context.Context) : *Group +WithContext(ctx context.Context) : *Group var0 码力 | 26 页 | 10.58 MB | 1 月前3
DeepSeek-V4: Towards Highly Efficient Million-Token Context IntelligenceDeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence DeepSeek-AI research@deepseek.com Abstract We present a preview version of DeepSeek-V4 series, including two strong Mixture-of- parameters (49B activated) and DeepSeek-V4-Flash with 284B parameters (13B activated) both supporting a context length of one million tokens. DeepSeek-V4 series incorporate several key upgrades in architecture combines Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA) to improve long-context efficiency; (2) Manifold- Constrained Hyper-Connections (mHC) that enhance conventional residual0 码力 | 58 页 | 4.27 MB | 1 月前3
PyMuPDF 1.24.2 Documentation### 4.4 Problems after installation • On Windows ImportError: DLL load failed while importing _fitz. This has been occasionally seen if MSVCP140.dll is missing, and appears to be caused by a bug in directory is not the PyMuPDF/directory. Otherwise, confusingly, Python will attempt to import fitz from the local fitz/ directory, which will fail because it only contains source files. ### 4.7 Running tests to 1.24.2. ## THE BASICS ### 5.1 Opening a File To open a file, do the following: import Fitz doc = Fitz.open("a.pdf") # open a document ## Note: Taking it further See the list of supported0 码力 | 565 页 | 6.84 MB | 2 年前3
PyMuPDF 1.12.2 documentation## PyMuPDF Documentation • Introduction Note on the Name fitz License Covered Version ## • Installation Option 1: Install from Sources Step 1: Download PyMuPDF ■ Step 2: Download and Generate While PyMuPDF has been available since several years for an earlier version of MuPDF (v1.2, called fitz-python then), it was until only mid May 2015, that its creator and a few co-workers decided to elevate link handling and document or page creation. ## Note on the Name fitz The standard Python import statement for this library is import fitz. This has a historical reason: The original rendering library0 码力 | 387 页 | 2.70 MB | 2 年前3
MuPDF 1.25.0 Documentation2 Common function arguments 8 2.3 Error handling 8 2.4 Multi-threading 11 2.5 Cloning the context 18 2.6 Coding Style 19 3 Using MuPDF WASM 21 3.1 Installing 21 3.2 Loading a Document #includefitz.h=""> #include #include int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); 0 码力 | 259 页 | 1.11 MB | 1 年前3
MuPDF 1.23.0 Documentation2 Common function arguments 8 2.3 Error handling 8 2.4 Multi-threading 10 2.5 Cloning the context 18 2.6 Coding Style 18 3 Using MuPDF WASM 21 3.1 Installing 21 3.2 Loading a Document #includefitz.h=""> #include #include int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); 0 码力 | 245 页 | 817.74 KB | 1 年前3
MuPDF 1.22.0 Documentation2 Common function arguments 8 2.3 Error handling 8 2.4 Multi-threading 10 2.5 Cloning the context 18 2.6 Coding Style 18 3 MuPDF on the command line 21 3.1 mupdf-gl 21 3.2 muraster 24 #includefitz.h=""> #include #include int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); 0 码力 | 175 页 | 698.87 KB | 1 年前3
Spring Framework 1.2.2 Changelogmatch beans with factory method / "factory-bean" definition Package org.springframework.context * added "alwaysUseMessageFormat" property to AbstractMessageSource, enforcing MessageFormat core * fixed ClassPathResource to fall back to its ClassLoader if none specified and no thread context ClassLoader available * deprecated ResourcePatternResolver's "CLASSPATH_URL_PREFIX" scenarios (with database access) from Countries sample application * revised all XML application context definition files to use Spring 1.2 shortcut attributes as far as possible Package org.springframework0 码力 | 72 页 | 205.76 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
MuPDFC APIFitz ContextFitz libraryMuPDF modulesContextgoroutineTLS并发模式取消信号Errorerrgrouppkg/errorsCodesDeepSeek-V4Compressed Sparse Attention (CSA)Heavily Compressed Attention (HCA)hybrid attentionMixture-of-Experts (MoE)PyMuPDFOCR嵌入式文件文本提取注释PDF安装文档CAPIJavaScriptmutoolOpenGLC++ APIthird-party librariesbuilding the libraryinstallation构建APIPython绑定错误处理上下文克隆渐进式加载Spring FrameworkBeanFactoryAOPTransaction













