Skip to content

Conversation

@AvanRocks
Copy link

Fixed a typo that caused opts.outerMargin to be used in place of opts.bottomMargin when setting the bottom of the bounding box for pdfcrop

@AvanRocks AvanRocks changed the title fix bug where that causes bottom margin option (-b) to be ignored fix bug that causes bottom margin option (-b) to be ignored Dec 23, 2020
@AvanRocks
Copy link
Author

I added 2 more commits that fix another (related) bug. The bug was that pdfcrop was being passed the parameters for the bounding boxes in the wrong order. Instead of Left, Bottom, Right, Top (as mentioned by pdfcrop --help ), the options were being passed as Left, Top, Right, Bottom, which meant that Top and Bottom were being swapped.

@ChasingZenith
Copy link

Thank you for your bug fix. I also found this bug here @AvanRocks !
I think I will be better to rename maxB by maxT and minT by minB.
Please kindly accept this pull request. @jenom

@ChasingZenith
Copy link

Done in my New pull request #16.

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