Skip to content

feat: embed line crops in PDF exports - #10

Merged
estherg12 merged 1 commit into
estherg12:mainfrom
Prash2712:feat/pdf-line-image-preview
Sep 22, 2026
Merged

estherg12 merged 1 commit into
estherg12:mainfrom
Prash2712:feat/pdf-line-image-preview

Conversation

@Prash2712

@Prash2712 Prash2712 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #7

This update makes PDF exports easier to verify against the OCR source by embedding each generated line crop directly above its corresponding transcription.

The change keeps export_to_pdf() backwards compatible, scales images while preserving aspect ratio, handles page breaks, delays crop cleanup until PDF generation is complete, and validates the one-to-one relationship between transcript lines and image crops.

Regression tests cover image embedding, invalid line/image counts, end-to-end PDF generation, and temporary crop cleanup.

@estherg12
estherg12 merged commit fef88d8 into estherg12:main Sep 22, 2026
1 check passed
@estherg12

Copy link
Copy Markdown
Owner

Thank you very much for your time and collaboration!! Hope to see you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Include cropped image lines alongside text in PDF export

2 participants