Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser is skipping the first page #748

Open
datawench opened this issue Nov 22, 2024 · 0 comments
Open

Parser is skipping the first page #748

datawench opened this issue Nov 22, 2024 · 0 comments
Labels

Comments

@datawench
Copy link

  • PHP Version: 8.2.20
  • PDFParser Version: 2.11.0

Description:

I'm parsing the PDF which can be found here: https://oag.ca.gov/system/files/Maxar%20-%20Adult%20CA%20Sample%20Ltr_Redacted.pdf

The parser appears to be skipping the first page, and only extracting text from the last two.

PDF input

See link above.

Expected output & actual output

I would expect the output to start with "MAXAR SPACE SYSTEMS", or perhaps "I write on behalf of." Instead, this is what I get:

"not been delayed due to any law enforcement investigation. We are also taking additional actions as required..." with interspersed tabs.

Code

I'm using the simplest possible code:

$parser = new Parser();
$pdf = $parser->parseFile($filePath);
$text = $pdf->getText();
@k00ni k00ni added the bug label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants