{"id":48805722,"url":"https://github.com/bbqsrc/pdf-strings","last_synced_at":"2026-04-14T05:03:34.871Z","repository":{"id":320959911,"uuid":"1083903022","full_name":"bbqsrc/pdf-strings","owner":"bbqsrc","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-19T17:41:51.000Z","size":517,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-02T07:50:57.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbqsrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["bbqsrc"],"custom":"https://necessary.nu"}},"created_at":"2025-10-26T23:34:09.000Z","updated_at":"2025-11-19T17:41:55.000Z","dependencies_parsed_at":"2025-10-27T01:34:49.930Z","dependency_job_id":null,"html_url":"https://github.com/bbqsrc/pdf-strings","commit_stats":null,"previous_names":["bbqsrc/pdf-strings"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bbqsrc/pdf-strings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fpdf-strings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fpdf-strings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fpdf-strings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fpdf-strings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbqsrc","download_url":"https://codeload.github.com/bbqsrc/pdf-strings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fpdf-strings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31782743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-14T05:02:52.608Z","updated_at":"2026-04-14T05:03:34.862Z","avatar_url":"https://github.com/bbqsrc.png","language":"Rust","funding_links":["https://github.com/sponsors/bbqsrc","https://necessary.nu"],"categories":[],"sub_categories":[],"readme":"## pdf-extract\n\n\u003c!-- [![Build Status](https://github.com/bbqsrc/pdf-extract/actions/workflows/rust.yml/badge.svg)](https://github.com/bbqsrc/pdf-strings/actions) --\u003e\n[![crates.io](https://img.shields.io/crates/v/pdf-strings.svg)](https://crates.io/crates/pdf-strings)\n[![Documentation](https://docs.rs/pdf-extract/badge.svg)](https://docs.rs/pdf-strings)\n\nExtract text from PDFs with position data.\n\n## Usage\n\n```rust\n// Simple extraction\nlet output = pdf_strings::from_path(\"file.pdf\")?;\nprintln!(\"{}\", output);  // Plain text\n\n// With password\nlet output = pdf_strings::PdfExtractor::builder()\n    .password(\"secret\")\n    .build()\n    .from_path(\"encrypted.pdf\")?;\n\n// Preserve spatial layout\nprintln!(\"{}\", output.to_string_pretty());\n\n// Access structured data with bounding boxes\nfor line in output.lines() {\n    for span in line {\n        println!(\"{} at {:?}\", span.text, span.bbox);\n    }\n}\n```\n\n## Features\n\n- Plain text extraction\n- Spatial layout preservation\n- Bounding box coordinates for every text span\n- Font encoding resolution (ToUnicode, Type1, TrueType, CID, Type3)\n- Password-protected PDF support\n- Handles complex fonts, rotated text, and multi-column layouts\n\n## API\n\nThree output formats:\n- `to_string()` - Plain text\n- `to_string_pretty()` - Character grid rendering that preserves spatial layout\n- `lines()` - Structured data with `TextSpan` objects containing text, bounding boxes, and font sizes\n\n## Acknowledgements\n\nThis is a fork of [pdf-extract](https://github.com/jrmuizel/pdf-extract). Thanks for laying the groundwork, PDFs are ... something else.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqsrc%2Fpdf-strings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbqsrc%2Fpdf-strings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqsrc%2Fpdf-strings/lists"}