Skip to content

fix(api/native/pdf): get title with proper encoding - #2125

Merged
mogery merged 1 commit into
mainfrom
mogery/eng-3464-utf-16-pdf-title-parsed-as-utf-8
Sep 9, 2025
Merged

mogery merged 1 commit into
mainfrom
mogery/eng-3464-utf-16-pdf-title-parsed-as-utf-8

Conversation

@mogery

@mogery mogery commented Sep 9, 2025

Copy link
Copy Markdown
Member

Thank you @borowis for spotting this.


Summary by cubic

Fix PDF title decoding to handle UTF‑16 and PDFDocEncoding correctly, preventing garbled titles in metadata. Addresses ENG-3464.

  • Bug Fixes
    • Use lopdf::decode_text_string for Title instead of lossy UTF‑8 conversion.
    • Trim whitespace only, as decoding handles nulls.

@mogery
mogery merged commit 1afbbd5 into main Sep 9, 2025
4 of 13 checks passed

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

duyyudus pushed a commit to duyyudus/firecrawl that referenced this pull request Sep 12, 2025
jerbao pushed a commit to jerbao/firecrawl-custom that referenced this pull request Aug 22, 2026
zeekay pushed a commit to Dream-AI-4444/firecrawl that referenced this pull request Sep 10, 2026
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.

1 participant