Commit b48efdd
authored
refactor: make dpi explicit on convert_pdf_to_image for dedup with unstructured (#501)
## Summary
- Make `dpi` an explicit parameter (default 200) on
`convert_pdf_to_image` instead of reading
`inference_config.PDF_RENDER_DPI` internally
- Enables unstructured to import and call this function directly,
eliminating the duplicate `_render_pdf_pages` implementation
- No behavior change — both internal callers already pass `dpi`
explicitly
## Changelog
```
## 1.6.2
### Enhancement
- Make `dpi` an explicit parameter on `convert_pdf_to_image` (default 200) instead of reading from config internally, enabling unstructured to use this as the single source of truth for PDF rendering
```
## Depends on / blocks
- Blocks Unstructured-IO/unstructured#4315 (dedup of PDF rendering)
- Blocks Unstructured-IO/core-product#1480 (version bump)1 parent 333c6d7 commit b48efdd
4 files changed
Lines changed: 11 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 119 | | |
125 | 120 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | | - | |
| 414 | + | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | | - | |
423 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| |||
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | | - | |
434 | | - | |
435 | 434 | | |
436 | 435 | | |
437 | 436 | | |
| |||
0 commit comments