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

[#1176] PDF Page Orientation based on Image Detection #1184

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

32299223
Copy link

Description

This feature allows users to have a portrait or landscape page depending on the dimensions of their image. This allows images to be much more visible with less whitespace surrounding it.

An example PDF using a portrait, landscape and square image without this feature:
An image of three portrait-oriented pages of a PDF file, where the middle page contains a landscape image that is significantly scaled down and surrounded by whitespace

The same PDF with the same images with this feature:
An image of three pages of a PDF file, where the middle page is landscape-oriented, thus having its image scaled up to the same quality as the other images in the PDF

Dependencies were also changed to different sources and versions so that the project can run on any Android Studio import. This can be reverted if there have been changes made to this, or perhaps something just happened to go wrong when I tried importing this project myself.

Implements #1176

Type of change

Just put an x in the [] which are valid.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • ./gradlew assembleDebug assembleRelease
  • ./gradlew checkstyle

I also had other people in my team (collaborators on the fork this branch has come from) test this implementation by running the application on their own devices.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Copy link

codeclimate bot commented Oct 20, 2024

Code Climate has analyzed commit 79a28d3 and detected 0 issues on this pull request.

View more on Code Climate.

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