sayanee / angularjs-pdf

:page_facing_up: An AngularJS directive <ng-pdf> to display PDF files with PDFJS
http://sayan.ee/angularjs-pdf/
MIT License
494 stars 248 forks source link

This patch adds an attribute that, combined with `scale='page-fit'`, #189

Closed simobasso closed 7 years ago

simobasso commented 7 years ago

allows to fit the contents inside of the page both with respects to the width and with respect to the height. Think of it as using background-size='contain' rather than the default behavior of background-size='cover' that scale='page-fit' triggers.

thanks to @lesteenman, original author of this commit.

close #128 and close #127

codecov-io commented 7 years ago

Codecov Report

Merging #189 into master will decrease coverage by 0.06%. The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #189      +/-   ##
=========================================
- Coverage   69.46%   69.4%   -0.07%     
=========================================
  Files           2       2              
  Lines         131     134       +3     
  Branches       29      30       +1     
=========================================
+ Hits           91      93       +2     
- Misses         40      41       +1
Impacted Files Coverage Δ
src/angular-pdf.directive.js 69.17% <66.66%> (-0.06%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ea8056c...babece6. Read the comment docs.