1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
# Rust
/target/
**/*.rs.bk
*.pdb
# Cargo.lock - include for binaries, exclude for libraries
# For a library, uncomment the next line:
/Cargo.lock
# Python
__pycache__/
*.py
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.pytest_cache/
.coverage
.coverage.*
htmlcov/
.tox/
.nox/
.hypothesis/
*.cover
*.log
.mypy_cache/
.dmypy.json
dmypy.json
.pyre/
# Virtual environments
venv/
env/
ENV/
env.bak/
venv.bak/
.venv/
*_venv/
venv_*/
# PyO3/Maturin
*.whl
python/pdf_library.egg-info/
python/pdf_oxide.egg-info/
# WASM
pkg/
wasm-pack.log
# Generated wasm-bindgen output (build artifacts, not source)
examples/wasm_node/*.wasm
examples/wasm_node/*.js
examples/wasm_node/*.d.ts
# IDEs
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
Thumbs.db
*.code-workspace
# JetBrains IDEs
.idea/
*.iml
*.ipr
*.iws
.idea_modules/
# Vim
*.s
*.sw
s
ss
sw
# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Desktop.ini
# ML Models (large files - use Git LFS if needed)
models/*.onnx
models/*.pt
models/*.pth
models/*.h5
models/*.pb
# OCR model files
.models/
# ONNX Runtime cache
.ort/
.models/**/*.onnx
.models/**/*.tar
.models/**/inference.*
training/output/
training/data/raw/
# Keep model registry and documentation
!models/registry.json
!models/README.md
# Test fixtures (PDFs can be large)
tests/fixtures/large/
tests/fixtures/real/*.pdf
# Keep small test PDFs for CI
!tests/fixtures/simple.pdf
!tests/fixtures/hello_world.pdf
# Test datasets (exclude all downloaded PDFs for validation)
test_datasets/
!test_datasets/README.md
!test_datasets/SOURCES.md
# Benchmarking results
target/criterion/
benches/results/
benchmark_results/
benchmark_venv/
*.profdata
*.profraw
# Documentation builds
target/doc/
book/
# Temporary files
*.tmp
*.temp
tmp/
temp/
# Logs
*.log
logs/
# Environment files
.env
.env.local
.env.*.local
# Docker
.dockerignore
# CI/CD
.gitlab-ci-local/
# Coverage reports
tarpaulin-report.html
cobertura.xml
lcov.info
# Lock files for package managers
package-lock.json
yarn.lock
pnpm-lock.yaml
# Node modules (for WASM examples)
node_modules/
# Build artifacts
*.o
*.a
*.lib
*.dll
*.dylib
# Profiling
flamegraph.svg
perf.data
perf.data.old
# Label Studio exports (large annotation files)
training/dataset/*.json
!training/dataset/schema.json
# Jupyter notebooks checkpoints
.ipynb_checkpoints/
# Training checkpoints
checkpoints/
# Markdown exports (generated content for comparison)
markdown_exports/
# Export directories (generated data)
html_exports/
text_exports/
pdf_exports/
# Batch extraction output directories (generated by scripts/batch_extract_pdfs.sh)
/tmp/pdf_extraction_*/
# Claude Code
Claude.md
CLAUDE.md
# Stray stdout captures
stdout
# Debug/profiling example scripts (local development only)
examples/bench_*.rs
examples/debug_*.rs
examples/profile_*.rs
examples/deep_profile.rs
examples/dump_content.rs
examples/perf_target.rs
examples/phase_bench.rs
examples/space_spans.rs
examples/span_count.rs
examples/span_count2.rs
examples/content_stream_sizes.rs
examples/bottleneck_analysis.rs
examples/verify_text.rs
examples/xobject_investigation.rs
examples/test_issue*.rs
examples/test_irs_*.rs
examples/diagnose_*.rs
examples/trace_slow.rs
examples/verify_corpus.rs
examples/diagnose_slow_images.rs
examples/analyze_tables.rs
examples/inspect_char_codes.rs
examples/test_spacing_fix.rs
examples/test_pdf.rs
# Root-level temporary PDFs (local dev artifacts)
/*.pdf
# Generated planning and analysis documents (auto-generated during work)
PHASE_*.md
PLAN_*.md
CLEANUP_ROADMAP.md
WORD_BOUNDARY_ANALYSIS.md
examples/test_pdf.rs
# Temporary working documents (NOT for public repo)
COMPLETION_CHECKLIST.md
DEBUG_FINDINGS.md
DELIVERABLES_FIX_*.md
EXAMPLES_OF_ISSUES.md
EXECUTE_VALIDATION.txt
EXECUTIVE_SOLUTION_SUMMARY.md
GOLDEN_FILES_QUICK_START.md
GOLDEN_FILES_README.md
OCR_INTEGRATION_NOTES.md
PHASE3_*.md
QUALITY_REPORT.md
QUICK_START_FIX_*.md
VERIFICATION_REPORT_*.md
VISUAL_CHANGES_FIX_*.txt
INTELLIGENT_PROCESSOR_INTEGRATION.md
TEXTSOURCE_NAMING_RATIONALE.md
# Temporary directories
batch_analysis/
rust_out/
scanned_samples/
# Temporary test outputs
*_enhanced.md
*_formatted.md
*_unformatted.md
# Temporary analysis files
*.backup
*.bak
*.tmp_analysis
# Golden files for regression testing (generated, not committed)
tests/golden_files/
# Claude Code AI assistant configuration (internal development tool)
.claude/
# pdm-python
.pdm-python
# uv-python
.python-version
# rust_out
rust_out
scripts/workdir/
docs/workdir/
docs/planning/
# Fossil static analysis cache
.fossil/
# Local working PDFs and verification results
workdir_pdfs/
verifications/