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

chore: update documentation #758

Closed

Conversation

vitormattos
Copy link
Contributor

Follow up of issue #427 using the suggested code at issue #472.

Notes:
Have PDF files that the pdfparser can't get the MediaBox, as fallback to get the page dimension is possible to use the BBox (Bounding Box).

The Bounding Box could not have the real dimension of a page put is a solution to have a value that could be the page dimension at cases that isn't possible to found the MediaBox.

Type of pull request

  • Bug fix (involves code and configuration changes)
  • New feature (involves code and configuration changes)
  • Documentation update
  • Something else

About

Checklist for code / configuration changes

See [CONTRIBUTING.md] for all essential information about contributing.

@vitormattos vitormattos force-pushed the chore/427/update-documentation branch from 90ce3bc to 2edc3ac Compare January 24, 2025 01:02
Follow up of issue smalot#427 using the suggested code at issue smalot#472.

Notes:
Have PDF files that the pdfparser can't get the MediaBox, as fallback to
get the page dimension is possible to use the BBox (Bounding Box).

The Bounding Box could not have the real dimension of a page put is a
solution to have a value that could be the page dimension at cases that
isn't possible to found the MediaBox.

The BBox only was found at the first page, maybe would be good to check
if have a best way to get the page dimensions only using the MediaBox
and solving the issue that hide this information.

Signed-off-by: Vitor Mattos <vitor@php.rio>
@k00ni
Copy link
Collaborator

k00ni commented Jan 28, 2025

Thank you for this PR.

I re-run all the tests but they keep failing. Would you mind having a closer look?

@vitormattos
Copy link
Contributor Author

vitormattos commented Jan 28, 2025

I made more tests from my side and identified that the workaround didn't solved the edge case. I think that would be best close this PR and don't merge for now. The BBox don't return the page size at all cases.

I think that have a problem at parse when identify the MediaBox but this is too complex to me at this moment to identify what's happening.

@k00ni
Copy link
Collaborator

k00ni commented Jan 29, 2025

Alright, but thanks anyway.

@k00ni k00ni closed this Jan 29, 2025
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.

2 participants